A "swift-ring-builder *.builder rebalance" issue
Hi everyone.
I'm trying to build a little Swift Infrastructure from this tutorial : http://
Actually i have 3 VMs:
- Proxy Node
- Authentication Node
- Storage Node with : 4 logical partitions : /dev/sda5, /dev/sda6, /dev/sda7, /dev/sda8
In the 7th step of how configuring a Proxy Node, i added the ressources this way :
swift-ring-builder account.builder create 18 3 1
swift-ring-builder account.builder add z1-192.
swift-ring-builder account.builder add z1-192.
swift-ring-builder account.builder add z1-192.
swift-ring-builder account.builder add z1-192.
swift-ring-builder container.builder create 18 3 1
swift-ring-builder container.builder add z1-192.
swift-ring-builder container.builder add z1-192.
swift-ring-builder container.builder add z1-192.
swift-ring-builder container.builder add z1-192.
swift-ring-builder object.builder create 18 3 1
swift-ring-builder object.builder add z1-192.
swift-ring-builder object.builder add z1-192.
swift-ring-builder object.builder add z1-192.
swift-ring-builder object.builder add z1-192.
Here is the result :
# swift-ring-builder object.builder
object.builder, build version 4
262144 partitions, 3 replicas, 1 zones, 4 devices, 100.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices: id zone ip address port name weight partitions balance meta
0 1 192.168.1.18 6021 sda5 100.00 0 -100.00
1 1 192.168.1.18 6022 sda6 100.00 0 -100.00
2 1 192.168.1.18 6023 sda7 100.00 0 -100.00
3 1 192.168.1.18 6024 sda8 100.00 0 -100.00
# swift-ring-builder container.builder
container.builder, build version 4
262144 partitions, 3 replicas, 1 zones, 4 devices, 100.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices: id zone ip address port name weight partitions balance meta
0 1 192.168.1.18 6011 sda5 100.00 0 -100.00
1 1 192.168.1.18 6012 sda6 100.00 0 -100.00
2 1 192.168.1.18 6013 sda7 100.00 0 -100.00
3 1 192.168.1.18 6014 sda8 100.00 0 -100.00
# swift-ring-builder account.builder
account.builder, build version 4
262144 partitions, 3 replicas, 1 zones, 4 devices, 100.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices: id zone ip address port name weight partitions balance meta
0 1 192.168.1.18 6001 sda5 100.00 0 -100.00
1 1 192.168.1.18 6002 sda6 100.00 0 -100.00
2 1 192.168.1.18 6003 sda7 100.00 0 -100.00
3 1 192.168.1.18 6004 sda8 100.00 0 -100.00
But when i try to rebalance the ring, i got those errors :
# swift-ring-builder account.builder rebalance
Traceback (most recent call last):
File "/usr/bin/
Commands.
File "/usr/bin/
parts, balance = builder.rebalance()
File "/usr/lib/
self.
File "/usr/lib/
while available_
IndexError: list index out of range
# swift-ring-builder container.builder rebalance
Traceback (most recent call last):
File "/usr/bin/
Commands.
File "/usr/bin/
parts, balance = builder.rebalance()
File "/usr/lib/
self.
File "/usr/lib/
while available_
IndexError: list index out of range
# swift-ring-builder object.builder rebalance
Traceback (most recent call last):
File "/usr/bin/
Commands.
File "/usr/bin/
parts, balance = builder.rebalance()
File "/usr/lib/
self.
File "/usr/lib/
while available_
IndexError: list index out of range
Does anyone know why i can't rebalance the ring please?
Thanks.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- zen
- Solved:
- Last query:
- Last reply: