[Openstack] [Swift] How to add new regions/zones into a swift cluster?

Alexandr Porunov alexandr.porunov at gmail.com
Thu May 19 11:27:37 UTC 2016


Thank you for help!

It's work!

Sincerely,
Alexandr

On Thu, May 19, 2016 at 1:47 PM, Kota TSUYUZAKI <
tsuyuzaki.kota at lab.ntt.co.jp> wrote:

> Hello Alexandr,
>
> As the error message described, region and zone take an integer value[1]
> so probably you should set the value like as:
>
> swift-ring-builder account.builder add --region 1 --zone 1 --ip
> 192.168.57.51 --port 6002 --device d1 --weight 100
>
> Although you need to keep your own map like "region 1 means USA and zone 1
> means NewYork" by yourself.
>
> Best,
> Kota
>
> 1:
> https://github.com/openstack/swift/blob/master/swift/common/ring/utils.py#L559-L562
> (2016/05/19 19:13), Alexandr Porunov wrote:
> > Hello everyone!
> >
> > I am trying to install swift without others products but I have problem
> > with adding drives to the swift ring.
> > I use this command:
> > swift-ring-builder account.builder add --region USA --zone New_York --ip
> > 192.168.57.51 --port 6002 --device d1 --weight 100
> >
> > It shows me:
> > "Usage: swift-ring-builder [options]. swift-ring-builder: error: option
> > --region: invalid integer value: 'USA'".
> >
> > What's wrong with a name of the region? How can I add new regions/zones
> > into swift? Please help me
> >
> > Best regards,
> > Alexandr
> >
> >
> >
> > _______________________________________________
> > Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> > Post to     : openstack at lists.openstack.org
> > Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> >
>
>
>
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160519/5c51acff/attachment.html>


More information about the Openstack mailing list