api: Introduce microversion 2.89 adjusting os-volume_attachments
This microversion adds attachment_id and bdm_uuid as stored in the
underlying bdm record while also removing the duplicate id field from
the responses of ``GET /servers/{server_id}/os-volume_attachments`` and
``GET /servers/{server_id}/os-volume_attachments/{volume_id}``.
To accomidate this within the _translate_attachment_summary_view helper
is folded into _translate_attachment_detail_view with the remaining
caller in the now deprecated os-volumes API now replaced with a static
dictionary.
Blueprint: add-attachmentid-to-responses-of-the-os-volume-attachments-api
Change-Id: I977c3fd9bbb1e1d42e6979222137e7366d2815e8
This commit is contained in:
@@ -1776,6 +1776,13 @@ associate_host:
|
||||
in: body
|
||||
required: true
|
||||
type: string
|
||||
attachment_bdm_id_resp:
|
||||
description: |
|
||||
The UUID of the block device mapping record in Nova for the attachment.
|
||||
in: body
|
||||
required: false
|
||||
type: string
|
||||
min_version: 2.89
|
||||
attachment_device_put_req:
|
||||
description: |
|
||||
Name of the device in the attachment object, such as, ``/dev/vdb``.
|
||||
@@ -1796,12 +1803,6 @@ attachment_id_put_req:
|
||||
required: false
|
||||
type: string
|
||||
min_version: 2.85
|
||||
attachment_id_required:
|
||||
description: |
|
||||
The UUID of the attachment.
|
||||
in: body
|
||||
required: true
|
||||
type: string
|
||||
attachment_id_resp:
|
||||
description: |
|
||||
The UUID of the attachment.
|
||||
@@ -1821,6 +1822,13 @@ attachment_server_id_resp:
|
||||
in: body
|
||||
required: false
|
||||
type: string
|
||||
attachment_volume_id_resp:
|
||||
description: |
|
||||
The UUID of the associated volume attachment in Cinder.
|
||||
in: body
|
||||
required: false
|
||||
type: string
|
||||
min_version: 2.89
|
||||
attachment_volumeId_resp:
|
||||
description: |
|
||||
The UUID of the attached volume.
|
||||
@@ -7368,6 +7376,13 @@ volume:
|
||||
in: body
|
||||
required: true
|
||||
type: object
|
||||
volume_attachment_id_resp:
|
||||
description: |
|
||||
The volumeId of the attachment.
|
||||
in: body
|
||||
required: false
|
||||
type: string
|
||||
max_version: 2.88
|
||||
volume_id:
|
||||
description: |
|
||||
The source volume ID.
|
||||
|
||||
Reference in New Issue
Block a user