I usually see this error when there are not enough zones to satisfy the number of replicas in the ring.  <div><br></div><div>When you created the ring, your create command ended with three numbers.  The second number is the number of replicas.  You need at least as many zones as there are replicas.</div>
<div><br></div><div>Mark<br><br><div class="gmail_quote">On Tue, Sep 20, 2011 at 9:08 AM, Khaled Ben Bahri <span dir="ltr"><<a href="mailto:khaled-bbk@hotmail.com">khaled-bbk@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




<div><div dir="ltr">
Hi,<br><br>I am following intructions described at : <a href="http://swift.openstack.org/1.2/howto_installmultinode.html" target="_blank">http://swift.openstack.org/1.2/howto_installmultinode.html</a>  in order to install openstack swift<br>
<br>when I reach the step of rebalancing ring ( at the end of configuring the proxy node) , after adding entries to rings,<br>and when I execute the command : <br><pre>swift-ring-builder account.builder rebalance</pre><br>
I have this error :<br><br><br>Traceback (most recent call last):<br>  File "/usr/bin/swift-ring-builder", line 571, in <module><br>    Commands.__dict__.get(command, Commands.unknown)()<br>  File "/usr/bin/swift-ring-builder", line 443, in rebalance<br>
    parts, balance = builder.rebalance()<br>  File "/usr/lib/pymodules/python2.6/swift/common/ring/builder.py", line 200, in rebalance<br>    self._initial_balance()<br>  File "/usr/lib/pymodules/python2.6/swift/common/ring/builder.py", line 351, in _initial_balance<br>
    while available_devs[index]['zone'] in other_zones:<br>IndexError: list index out of range<br><br><br><br>can any one help me please to solve this problem<br><br>best regards<br><font color="#888888">Khaled<br>
                                          </font></div></div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div>