← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1628875] [NEW] Missing rollback logic when image creating for volume based instance

 

Public bug reported:

In the code of create image for volume based instance
http://git.openstack.org/cgit/openstack/nova/tree/nova/compute/api.py#n2610,
there isn't rollback code when create volume snaphost or create image
failed. For example, both cinder and glance have quota for the number of
volume snapshot and the number of image metadata, so there have a chance
to failed on quota. But the code won't rollbacked already created volume
snapshot.

** Affects: nova
     Importance: Medium
     Assignee: Alex Xu (xuhj)
         Status: Confirmed

** Description changed:

- In the code of create image for volume based instance, there isn't
- rollback code when create volume snaphost or create image failed. For
- example, both cinder and glance have quota for the number of volume
- snapshot and the number of image metadata, so there have a chance to
- failed on quota. But the code won't rollbacked already created volume
+ In the code of create image for volume based instance
+ http://git.openstack.org/cgit/openstack/nova/tree/nova/compute/api.py#n2610,
+ there isn't rollback code when create volume snaphost or create image
+ failed. For example, both cinder and glance have quota for the number of
+ volume snapshot and the number of image metadata, so there have a chance
+ to failed on quota. But the code won't rollbacked already created volume
  snapshot.

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

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

** Changed in: nova
     Assignee: (unassigned) => Alex Xu (xuhj)

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

Title:
  Missing rollback logic when image creating for volume based instance

Status in OpenStack Compute (nova):
  Confirmed

Bug description:
  In the code of create image for volume based instance
  http://git.openstack.org/cgit/openstack/nova/tree/nova/compute/api.py#n2610,
  there isn't rollback code when create volume snaphost or create image
  failed. For example, both cinder and glance have quota for the number
  of volume snapshot and the number of image metadata, so there have a
  chance to failed on quota. But the code won't rollbacked already
  created volume snapshot.

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