← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1629952] [NEW] Volume is not unreserved when shelved_offloaded volume attach fails

 

Public bug reported:

This code attaches a volume to a shelved offloaded instance:

https://github.com/openstack/nova/blob/b3d58ed718db91015582cf759a7c8af1874ef093/nova/compute/api.py#L3416

But it doesn't unreserve the volume if that fails in the exception
block. This could happen if the os-attach call to cinder failed. And if
that happens, then the volume is stuck in 'attaching' state and the
admin has to reset the state on it to make it available again.

** Affects: nova
     Importance: Medium
     Assignee: Matt Riedemann (mriedem)
         Status: Triaged


** Tags: api compute shelve volumes

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

Title:
  Volume is not unreserved when shelved_offloaded volume attach fails

Status in OpenStack Compute (nova):
  Triaged

Bug description:
  This code attaches a volume to a shelved offloaded instance:

  https://github.com/openstack/nova/blob/b3d58ed718db91015582cf759a7c8af1874ef093/nova/compute/api.py#L3416

  But it doesn't unreserve the volume if that fails in the exception
  block. This could happen if the os-attach call to cinder failed. And
  if that happens, then the volume is stuck in 'attaching' state and the
  admin has to reset the state on it to make it available again.

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