swift/swift/cli
Christian Schwede 9c8c7e8a55 Rebalance with min_part_seconds_left > 0
As described in bug #1558754 a rebalance after removing a device fails
if min_part_seconds_left > 0, despite the note that a rebalance should
remove partitions from removed devices on the next run.

This patch skips the early exit, and lets the builder itself handling
the rebalance. Partitions that shouldn't move now are still not moved
(except for removed devices), and there is still a warning if no
partition has been moved due to the fact that min_part_hours did not yet
pass.

A small test has been added to ensure rebalancing after removing a
device works without using the --force option (tests fails on current
master). Another test ensures that a rebalance after a recent change
(for example increasing a device's weight) does not move partitions and
still reports the former warning message.

Closes-Bug: 1558754
Change-Id: I083022d066338cbe6234bab491c7a8e8e0a7b517
2017-02-14 11:21:21 +01:00
..
__init__.py Add some tests for bin/swift-recon 2014-01-31 15:34:37 +00:00
form_signature.py Replace python print operator with print function (pep H233, py33) 2015-07-16 18:36:52 +05:30
info.py Merge "Moved ipv4 & ipv6 validations to the common utils" 2016-07-29 21:25:16 +00:00
recon.py Call swift-recon with more than one server type 2016-05-31 17:35:29 +02:00
ring_builder_analyzer.py make print python3 compatible 2016-06-29 07:44:01 +00:00
ringbuilder.py Rebalance with min_part_seconds_left > 0 2017-02-14 11:21:21 +01:00