openstack-python-openstackc.../openstackclient/volume
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
..
v1 pre-commit: Migrate bandit to ruff 2024-09-12 18:08:23 +01:00
v2 pre-commit: Migrate bandit to ruff 2024-09-12 18:08:23 +01:00
v3 Fix: extend in-use volumes check 2024-12-09 19:01:22 +05:30
__init__.py Remove copyright from empty files 2014-01-20 17:28:13 +04:00
client.py pre-commit: Migrate from black to ruff format 2024-08-29 15:55:39 +01:00