← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1262038] [NEW] There is the delete_on_termination option for attaching volume when creating a server but not for an existing server

 

Public bug reported:

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

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: attach nova volume

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1262038

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

Status in OpenStack Compute (Nova):
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1262038/+subscriptions


Follow ups

References