[Openstack] [Swift] How to get a list of devices from the ring in Java / Bash?

Alexandr Porunov alexandr.porunov at gmail.com
Fri Jan 27 19:21:45 UTC 2017


I need to get a list / array of devices in Java or Bash. Is it possible to
get? Are there any API or something like that?

I know we can obtain a list with the next command:
swift-ring-builder object.builder

But it return a string with the list of devices which are quite hard to
parse. In the documentation there is an example how to get a list of
devices with python:
devices = list(self._iter_devs())

But it doesn't show which library to use to get a list of devices and how
to use that library.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20170127/35f26681/attachment.html>

More information about the Openstack mailing list