-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
21 changed files
with
334 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
doc/api_samples/os-volumes/v2.89/attach-volume-to-server-req.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"volumeAttachment": { | ||
"volumeId": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113", | ||
"tag": "foo", | ||
"delete_on_termination": true | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
doc/api_samples/os-volumes/v2.89/attach-volume-to-server-resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"volumeAttachment": { | ||
"delete_on_termination": true, | ||
"device": "/dev/sdb", | ||
"id": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113", | ||
"serverId": "7ebed2ce-85b3-40b5-84ae-8cc725c37ed2", | ||
"tag": "foo", | ||
"volumeId": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113" | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
doc/api_samples/os-volumes/v2.89/list-volume-attachments-resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"volumeAttachments": [ | ||
{ | ||
"attachment_id": "979ce4f8-033a-409d-85e6-6b5c0f6a6302", | ||
"delete_on_termination": false, | ||
"device": "/dev/sdc", | ||
"serverId": "7696780b-3f53-4688-ab25-019bfcbbd806", | ||
"tag": null, | ||
"volumeId": "227cc671-f30b-4488-96fd-7d0bf13648d8", | ||
"bdm_uuid": "c088db45-92b8-49e8-81e2-a1b77a144b3b" | ||
}, | ||
{ | ||
"attachment_id": "c5684109-0311-4fca-9814-350e46ab7d2a", | ||
"delete_on_termination": true, | ||
"device": "/dev/sdb", | ||
"serverId": "7696780b-3f53-4688-ab25-019bfcbbd806", | ||
"tag": "foo", | ||
"volumeId": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113", | ||
"bdm_uuid": "1aa24536-6fb5-426c-8894-d627f39aa48b" | ||
} | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
doc/api_samples/os-volumes/v2.89/update-volume-attachment-delete-flag-req.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"volumeAttachment": { | ||
"volumeId": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113", | ||
"id": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113", | ||
"serverId": "fddf0901-8caf-42c9-b496-133c570b171b", | ||
"device": "/dev/sdb", | ||
"tag": "foo", | ||
"delete_on_termination": true | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
doc/api_samples/os-volumes/v2.89/volume-attachment-detail-resp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"volumeAttachment": { | ||
"attachment_id": "721a5c82-5ebc-4c6a-8339-3d33d8d027ed", | ||
"delete_on_termination": true, | ||
"device": "/dev/sdb", | ||
"serverId": "7ebed2ce-85b3-40b5-84ae-8cc725c37ed2", | ||
"tag": "foo", | ||
"volumeId": "a07f71dc-8151-4e7d-a0cc-cd24a3f11113", | ||
"bdm_uuid": "c088db45-92b8-49e8-81e2-a1b77a144b3b" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...tional/api_sample_tests/api_samples/os-volumes/v2.89/attach-volume-to-server-req.json.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"volumeAttachment": { | ||
"volumeId": "%(volume_id)s", | ||
"tag": "%(tag)s", | ||
"delete_on_termination": true | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...ional/api_sample_tests/api_samples/os-volumes/v2.89/attach-volume-to-server-resp.json.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"volumeAttachment": { | ||
"device": "%(device)s", | ||
"id": "%(volume_id)s", | ||
"serverId": "%(uuid)s", | ||
"tag": "%(tag)s", | ||
"volumeId": "%(volume_id)s", | ||
"delete_on_termination": true | ||
} | ||
} |
Oops, something went wrong.