Ask Your Question

Is there any API/command which gives me all the swift zones and region information?

asked 2015-05-11 16:16:55 -0500

Aarti gravatar image

Is there any API/command which gives me all the swift zones and region information? Also is there is any API/command to list all the swift nodes in a cluster and services running on each.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-05-11 23:36:13 -0500

uts9 gravatar image

updated 2015-05-11 23:37:51 -0500


swift-ring-builder <account file>


swift-ring-builder /etc/swift/account.builder

In case of API, you have to invoke account/container/objects APIs separately.

edit flag offensive delete link more


Thanks. I do see output from swift-ring-builder. Do we have any similar command to get information about all the object-storage nodes (proxy and storage) and services running on each.

Aarti gravatar imageAarti ( 2015-05-12 13:17:16 -0500 )edit

Swift itself does not maintain any kind of run-time registry of services. So you either need to piece together a script with ssh that runs "swift-init status", or get some kind of monitoring agents. In real life people just run recon instead.

zaitcev gravatar imagezaitcev ( 2015-05-13 11:46:29 -0500 )edit

I tried the swift-init all status but it returned saying "No object-server running" etc whereas when I do a ps-eaf I see all of these running. What might be the reason?

Aarti gravatar imageAarti ( 2015-05-15 00:34:02 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-05-11 16:16:55 -0500

Seen: 160 times

Last updated: May 11 '15