← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1039002] Re: Test for duplicate device in attach volume not being checked in API

 

This is fixed:

☁ vishvananda@devstack:~/devstack (master)$ nova volume-attach foo 24387e4c-f171-40d8-8ceb-07506a6e1c6a /dev/vdb
ERROR: The supplied device path (/dev/vdb) is in use. (HTTP 400) (Request-ID: req-7818afcf-3a56-4d3d-b9ae-4d3287444373)

** Changed in: nova
       Status: New => Invalid

-- 
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/1039002

Title:
  Test for duplicate device in attach volume not being checked in API

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  The following command sequence:

  $nova volume-attach 1234 12 /dev/vdc

  $nova volume-attach 1234  22 /dev/vdc

  will successfully attach the first volume.

  The second request will fail in the volume driver rather than catching
  the error  at the API level. To the user it will appear that the
  command succeeded but the volume status remains (returns to)
  "available".

  I have written a fix to check at the API level  "device name already
  used by the instance".  Code to follow.

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