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

Kota TSUYUZAKI tsuyuzaki.kota at lab.ntt.co.jp
Thu May 19 10:47:30 UTC 2016


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
> 








More information about the Openstack mailing list