openstack-python-openstackc.../openstackclient
Rajat Dhasmana c657047d7e volume list: Don't call nova if no volume is attached
Currently 'openstack volume list' calls nova to resolve server UUIDs
to server names. This is not required if:
1. no volume is attached to an instance
2. no volume exists in deployment

This patch fixes this by checking volume statuses and, if any volume has
status 'in-use', we will call nova to resolve server names.
Note that we don't check for 'reserved', 'attaching', 'detaching'
states since those are transition states and doesn't guarantee that
the volume is actually attached to the instance.

Change-Id: Ic4d89db69244d3fba44d4b69c79b3e7632ee3d53
2023-12-06 17:39:03 +05:30
..
api Blacken openstackclient.api 2023-05-10 10:51:30 +01:00
common Add pagination helpers 2023-11-03 23:16:18 +00:00
compute Merge "compute: Add 'server create --server-group' option" 2023-12-05 18:43:15 +00:00
identity Allow multiple --remove-tag in project set 2023-06-08 18:22:48 +10:00
image Merge "Adds command `image metadef object delete`" 2023-11-22 11:05:26 +00:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Merge "tests: Enable logging fixture" 2023-12-05 18:43:13 +00:00
object Add pagination helpers 2023-11-03 23:16:18 +00:00
tests Merge "compute: Add 'server create --server-group' option" 2023-12-05 18:43:15 +00:00
volume volume list: Don't call nova if no volume is attached 2023-12-06 17:39:03 +05:30
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py Blacken everything else 2023-05-10 10:51:30 +01:00