Unable to rebalance after removing Node

Asked by jortizv

Hello, I have a test environment, I was testing adding and removing new nodes. I removed a zone and when I try to rebalance I get the following warning:

No partitions could be reassigned.
Either none need to be or none can be due to min_part_hours [1].

I waited over an hour and retried rebalance, and it just wont do it...
however it did work for object.builder only
so when I get verify (swift-ring-builder container.builder) it still shows the zone that I want to remove, and it won't remove it until rebalance.

my set up it as follow:

Devices: id zone ip address port name weight partitions balance meta
0 1 192.168.1.187 6001 sdb1 100.00 262144 0.00
1 2 192.168.1.188 6001 sdb1 100.00 262144 0.00
2 3 192.168.1.189 6001 sdb1 100.00 262144 0.00
3 4 192.168.1.207 6001 sdb1 0.00 0 0.00

I am trying to get rid of zone 4... btw there is no error's in the Syslog

Any help on this would be appreciated.. thank you..

J

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
jortizv
Solved:
Last query:
Last reply:
Revision history for this message
jortizv (jortizv) said :
#1

Well, I figured out myself without deleting and starting over...

I modified the script located /usr/bin/swift-ring-builder

and commented out the following lines

# if not parts:
# print 'No partitions could be reassigned.'
# print 'Either none need to be or none can be due to ' \
# 'min_part_hours [%s].' % builder.min_part_hours
# exit(EXIT_WARNING)

then it let me execute swift-ring-builder container.builder
which allowed me to remove the zone 4 which I was not able to do before..... :-)

I am writing this in case someone come across the same issue.