Swift installation

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Swift installation

Mize, Donald
All,

I got through the swift installation, creating the 'ring' using the ring builder utility, then verifying it as below, but when I rebalance, I get the error below that.

root at xnode8:/etc/swift# swift-ring-builder account.builder
account.builder, build version 1
262144 partitions, 3 replicas, 1 zones, 1 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        10.1.1.9  6002      sda6 100.00          0 -100.00

root at xnode8:/etc/swift# swift-ring-builder account.builder rebalance
Traceback (most recent call last):
  File "/usr/bin/swift-ring-builder", line 616, in <module>
    Commands.__dict__.get(command, Commands.unknown)()
  File "/usr/bin/swift-ring-builder", line 477, in rebalance
    parts, balance = builder.rebalance()
  File "/usr/lib/pymodules/python2.7/swift/common/ring/builder.py", line 243, in rebalance
    self._initial_balance()
  File "/usr/lib/pymodules/python2.7/swift/common/ring/builder.py", line 394, in _initial_balance
    while available_devs[index]['zone'] in other_zones:
IndexError: list index out of range

What am I not doing for the setup?

Thanks!
Don
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20110817/e718caaf/attachment-0001.html>

Reply | Threaded
Open this post in threaded view
|

Swift installation

Mize, Donald
Nevermind, I figured it out!

From: openstack-operators-bounces at lists.openstack.org [mailto:openstack-operators-bounces at lists.openstack.org] On Behalf Of Mize, Donald
Sent: Wednesday, August 17, 2011 3:07 PM
To: openstack-operators at lists.openstack.org
Subject: [Openstack-operators] Swift installation

All,

I got through the swift installation, creating the 'ring' using the ring builder utility, then verifying it as below, but when I rebalance, I get the error below that.

root at xnode8:/etc/swift# swift-ring-builder account.builder
account.builder, build version 1
262144 partitions, 3 replicas, 1 zones, 1 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        10.1.1.9  6002      sda6 100.00          0 -100.00

root at xnode8:/etc/swift# swift-ring-builder account.builder rebalance
Traceback (most recent call last):
  File "/usr/bin/swift-ring-builder", line 616, in <module>
    Commands.__dict__.get(command, Commands.unknown)()
  File "/usr/bin/swift-ring-builder", line 477, in rebalance
    parts, balance = builder.rebalance()
  File "/usr/lib/pymodules/python2.7/swift/common/ring/builder.py", line 243, in rebalance
    self._initial_balance()
  File "/usr/lib/pymodules/python2.7/swift/common/ring/builder.py", line 394, in _initial_balance
    while available_devs[index]['zone'] in other_zones:
IndexError: list index out of range

What am I not doing for the setup?

Thanks!
Don
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20110817/c5344e72/attachment.html>