cinder/cinder/api/schemas
whoami-rajat 32f1145b7d Remove multiatttach request parameter
The initial cinder design[1][2][3] allowed users to create mutliattach
volumes by spcifying the ``multiattach`` parameter in the request
body of volume create operation (``--allow-multiattach`` option in
cinderclient).

This functionality changed in Queens with the introduction of
microversion 3.50[4] where we used volume types to store
the multiattach capabilities. Any volume created with a multiattach
volume type will be a multiattach volume[5].

While implementing the new functionality, we had to keep backward
compatibility with the *old way* of creating multiattach volumes.
We deprecated the ``multiattach`` (``--allow-multiattach`` on cinderclient
side) parameter in the queens release[6][7].
We also removed the support of the ``--allow-multiattach`` optional
parameter from cinderclient in the train release[8] but the API
side never removed the compatibility code to disallow functionality
of creating multiattach volumes by using the ``multiattach``
parameter (instead of a multiattach volume type).

This patch removes the support of providing the ``multiattach``
parameter in the request body of a volume create operation and will
fail with a BadRequest exception stating the reason of failure
and how it can be fixed.

[1] https://blueprints.launchpad.net/cinder/+spec/multi-attach-volume
[2] https://review.opendev.org/c/openstack/cinder/+/85847/
[3] https://review.opendev.org/c/openstack/python-cinderclient/+/85856
[4] f1bfd9790d
[5] https://docs.openstack.org/cinder/latest/admin/volume-multiattach.html#how-to-create-a-multiattach-volume
[6] 94dbf5cce2
[7] adb141a262
[8] 3c1b417959

Depends-On: https://review.opendev.org/c/openstack/tempest/+/875372
Closes-Bug: 2008259

Change-Id: I0ece6e279048abcc04b3674108290a80eca6bd62
2023-03-06 08:58:59 +00:00
..
__init__.py V3 jsonschema validation: base schema framework 2017-11-17 16:01:03 +05:30
admin_actions.py V3 jsonschema validation: admin_actions 2018-05-29 11:51:32 +05:30
attachments.py Fix: Schema validation for attachment create API 2021-06-16 11:26:21 -04:00
backups.py Support cross AZ backups 2018-02-23 11:35:42 +01:00
clusters.py V3 jsonschema validation: Clusters 2018-03-23 13:17:56 +05:30
default_types.py Default type overrides 2020-09-16 14:05:31 +00:00
group_snapshots.py Fix: validation error if the optional parameter's value is None 2018-01-09 03:43:47 -05:00
group_specs.py V3 jsonschema validation: Group type specs 2017-12-12 14:48:42 +05:30
group_types.py Fix combination of parameters for update APIs 2018-01-18 14:19:13 +05:30
groups.py V3 json schema validation: generic volume groups 2018-05-08 18:07:28 +05:30
qos_specs.py V3 jsonschema validation: qos-specs 2018-03-13 14:18:17 +05:30
quota_classes.py V3 jsonschema validation: Quota classes 2018-04-27 08:39:56 +05:30
quotas.py V3 jsonschema validation: Quotas 2018-04-27 08:21:51 +05:30
scheduler_hints.py V3 jsonschema validation: scheduler_hints 2018-05-23 11:58:59 +05:30
services.py API validation: Use cinder_host for services checks 2021-03-13 21:55:57 +00:00
snapshot_actions.py V3 jsonschema validation: snapshot_actions 2018-04-10 14:23:56 +05:30
snapshot_manage.py Fix BadRequest for 'ref' as string value 2018-01-17 12:14:27 +05:30
snapshots.py V2/V3 jsonschema validation: snapshots 2018-01-02 09:22:20 +05:30
types_extra_specs.py V3 jsonschema validation: types_extra_specs 2018-03-20 14:14:36 +05:30
volume_actions.py Support volume re-image 2022-02-24 15:23:38 +05:30
volume_image_metadata.py V3 jsonschema validation: volume_image_metadata 2018-03-14 15:21:38 +05:30
volume_manage.py API validation: Add cinder_host type to support ipv6 in manage 2021-03-11 10:32:13 -05:00
volume_metadata.py V3 jsonschema validation: Volume metadata 2017-12-08 12:40:01 +05:30
volume_transfer.py Transfer snapshots with volumes 2018-07-19 09:42:43 +08:00
volume_type_access.py volume_type_access: don't validate project_id as a uuid 2022-11-16 18:49:14 -06:00
volume_type_encryption.py Allow extra parameters in volume_type_encryption 2018-08-08 15:17:03 -05:00
volume_types.py Add volume type name and description check when update volume type 2019-10-11 15:56:10 +08:00
volumes.py Remove multiatttach request parameter 2023-03-06 08:58:59 +00:00
workers.py V3 json schema validation: workers 2018-04-16 09:54:36 +05:30