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

Bug #1262038 reported by Lee Li
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Opinion
Wishlist
Unassigned

Bug Description

There is the delete_on_termination option for attaching volume when creating a server but not for an existing server. So when delete the server may be two cases although the delete_on_termination option is true, one the attached volume can be deleted, the other is not.

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"
    }
}

Lee Li (lilinguo)
Changed in nova:
assignee: nobody → Lee Li (lilinguo)
Revision history for this message
Andrew Laski (alaski) wrote :

I've heard of other users wanting similar options. Also, the ability to modify the delete_on_termination field after the instance is created. But this isn't a bug, it would be a feature and therefore need to follow the process at https://wiki.openstack.org/wiki/Blueprints#Nova.

Changed in nova:
importance: Undecided → Wishlist
status: New → Confirmed
Changed in nova:
assignee: Lee Li (lilinguo) → nobody
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

This wishlist bug has been open a year without any activity. I'm going to move it to "Opinion / Wishlist", which is an easily-obtainable queue of older requests that have come on.

Changed in nova:
status: Confirmed → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.