openstack-python-openstackc.../openstackclient/volume/v2
Johannes Kulik 60a0e379a4 volume: Support same_host, different_host hint as list
When creating a volume, the scheduler hints can be supplied as strings.
The "same_host" and "different_host" hints can also be supplied as a
list if affinity/anti-affinity to multiple volumes is requested [0]

The previously-used `KeyValueAction` only supplies strings as values - the
last one if multiple --hint contain the same key. An alternative already
used in `CreateServer` would be `KeyValueAppendAction`, but only a subset of
the scheduler hints accept lists, so we cannot use that in general.

Therefore, we create `KeyValueHintAction`. It contains both a
`KeyValueAction` and a `KeyValueAppendAction` object and calls the
appropriate action based on the beginning of the given values as defined
in `APPEND_KEYS`.

[0] d96b705774/cinder/api/schemas/scheduler_hints.py (L31-L65)

Change-Id: Ida7f4662dc9fea24510758541fd4f2622b73bf31
2023-10-31 09:22:25 +01:00
..
__init__.py Add support for volume v2 API 2015-05-30 11:26:14 -07:00
backup_record.py Blacken openstackclient.volume 2023-05-10 10:51:30 +01:00
consistency_group.py Blacken openstackclient.volume 2023-05-10 10:51:30 +01:00
consistency_group_snapshot.py Blacken openstackclient.volume 2023-05-10 10:51:30 +01:00
qos_specs.py volume: Add 'volume qos set --no-property' option 2023-05-17 16:50:16 +01:00
service.py Blacken openstackclient.volume 2023-05-10 10:51:30 +01:00
volume.py volume: Support same_host, different_host hint as list 2023-10-31 09:22:25 +01:00
volume_backend.py Blacken openstackclient.volume 2023-05-10 10:51:30 +01:00
volume_backup.py Add is_incremental to ListVolumeBackup 2023-09-19 22:10:04 +02:00
volume_host.py Blacken openstackclient.volume 2023-05-10 10:51:30 +01:00
volume_snapshot.py Blacken openstackclient.volume 2023-05-10 10:51:30 +01:00
volume_transfer_request.py Blacken openstackclient.volume 2023-05-10 10:51:30 +01:00
volume_type.py volume: Make better use of argparse 2023-05-17 16:38:56 +01:00