Bug 1041223 - [RFE][nova]: add delete_on_termination option for attaching volume to an existing server
Summary: [RFE][nova]: add delete_on_termination option for attaching volume to an exis...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: RFEs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 6.0 (Juno)
Assignee: RHOS Maint
QA Contact:
URL: https://blueprints.launchpad.net/nova...
Whiteboard: upstream_milestone_none upstream_stat...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-12 13:59 UTC by RHOS Integration
Modified: 2022-08-17 13:28 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-19 16:52:31 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-4509 0 None None None 2022-08-17 13:28:15 UTC

Description RHOS Integration 2013-12-12 13:59:44 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/nova/+spec/add-delete-on-termination-option.

Description:

There is the delete_on_termination option for attaching volume when creating a server but not for an existing server.

Attach a volume when creating a server, the API contains 'block_device_mapping', such as:
"block_device_mapping": [
            {
                "volume_id": "<VOLUME_ID>",
                "device_name": "/dev/vdc",
                "delete_on_termination": "true"
            }
]

It can contain 'delete_on_termination' option.

But attach a volume to existing server, there is no option 'delete_on_termination', the POST data likes:
{
    "volumeAttachment":{
    "volumeId":"<VOLUME_ID>",
    "device":"/dev/sdb"
    }
}

Specification URL (additional information):

None


Note You need to log in before you can comment on or make changes to this bug.