openstack-python-openstackc.../openstackclient
Rajat Dhasmana 03933e9a73 Fix: extend in-use volumes check
Currently we have 2 issues with extending volumes checks:

1. We don't specify explicitly that MV 3.42 needs to be passed for
in-use volumes
2. Any state of volume (error, attaching, detaching etc) can pass
this check by specifying MV 3.42

The fundamentally correct approach to these checks should be:

1. Only allow 'available' and 'in-use' volumes to be extended
2. Check MV 3.42 or greater is specified in case of 'in-use' volumes
otherwise fail

This approach is implemented in the patch.

Change-Id: I45ab9af953f7d060379f48ca429eaea7cfe857cc
2024-12-09 19:01:22 +05:30
..
api pre-commit: Migrate pyupgrade to ruff 2024-09-12 18:08:23 +01:00
common common: Use correct argument for volume limits 2024-11-05 17:07:49 +00:00
compute Replace deprecated datetime.utcnow() 2024-11-13 15:48:59 +00:00
identity Fix ignored --user-domain in role assignment list 2024-10-29 21:20:07 +09:00
image pre-commit: Migrate pyupgrade to ruff 2024-09-12 18:08:23 +01:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Merge "Add "trusted" attribute to the "port"" 2024-11-08 17:32:37 +00:00
object trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
releasenotes/notes Show Created At column for volume backups 2024-05-19 22:17:06 +02:00
tests Merge "Show Created At column for volume backups in v3" 2024-11-20 16:38:57 +00:00
volume Fix: extend in-use volumes check 2024-12-09 19:01:22 +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 pre-commit: Migrate pyupgrade to ruff 2024-09-12 18:08:23 +01:00