← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1341738] [NEW] Multiple delete_on_terminate volumes may not get deleted

 

Public bug reported:

There's no catching of exceptions in _cleanup_volumes in
compute/manager.py so a raised exception will short circuit cleaning up
later volumes.

    def _cleanup_volumes(self, context, instance_uuid, bdms):
        for bdm in bdms:
            LOG.debug("terminating bdm %s", bdm,
                      instance_uuid=instance_uuid)
            if bdm.volume_id and bdm.delete_on_termination:
                self.volume_api.delete(context, bdm.volume_id)

** Affects: nova
     Importance: Low
         Status: New

** Changed in: nova
   Importance: Undecided => Low

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

Title:
  Multiple delete_on_terminate volumes may not get deleted

Status in OpenStack Compute (Nova):
  New

Bug description:
  There's no catching of exceptions in _cleanup_volumes in
  compute/manager.py so a raised exception will short circuit cleaning
  up later volumes.

      def _cleanup_volumes(self, context, instance_uuid, bdms):
          for bdm in bdms:
              LOG.debug("terminating bdm %s", bdm,
                        instance_uuid=instance_uuid)
              if bdm.volume_id and bdm.delete_on_termination:
                  self.volume_api.delete(context, bdm.volume_id)

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


Follow ups

References