Comment 3 for bug 1646450

Revision history for this message
Julie Pichon (jpichon) wrote :

In my case it looks like some IPs got added wrongly to the swift rings when I hit bug 1645267.

# swift-ring-builder container.builder search --region 1
Devices: id region zone ip address port replication ip replication port name weight partitions balance meta
             0 1 1 192.0.2.1 6001 192.0.2.1 6001 1 1.00 131072 0.00
             1 1 1 192.168.24.1 6001 192.168.24.1 6001 1 1.00 131072 0.00

Running the following commands from /etc/swift helped me get past the problem and finally delete the container:

# swift-ring-builder account.builder remove 192.168.24.1
# swift-ring-builder container.builder remove 192.168.24.1
# swift-ring-builder object.builder remove 192.168.24.1

# swift-ring-builder container.builder rebalance 42
# swift-ring-builder object.builder rebalance 42
# swift-ring-builder account.builder rebalance 42

(Looking at the help for swift-ring-builder maybe 42 isn't actually needed? I'm not sure what it does.)