[Bug 1119248] Re: [SRU] nova does not set container_format when snapshotting instance with ref image deleted

Edward Hope-Morley 1119248 at bugs.launchpad.net
Wed Feb 20 10:04:27 UTC 2013


The following merge request has been approved.

https://code.launchpad.net/~hopem/nova/precise-updates-sru-
lp1119248/+merge/148663

This has been tested on Precise Essex.

Closing this bug.

** Changed in: nova (Ubuntu)
     Assignee: (unassigned) => Edward Hope-Morley (hopem)

** Changed in: nova (Ubuntu)
       Status: Triaged => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1119248

Title:
  [SRU] nova does not set container_format when snapshotting instance
  with ref image deleted

Status in “nova” package in Ubuntu:
  In Progress

Bug description:
  This bug affects release: 12.04 LTS Precise

  Affected package:
  https://launchpad.net/ubuntu/precise/+source/nova/2012.1.3+stable-20120827
  -4d2a4afe-0ubuntu1.1

  Precise currenlty runs Openstack Essex.

  A fix for this bug was added to Openstack Folsom and backported to
  Essex but 12.04 does not yet include this fix so we are patching the
  current release to include this fix.

  [Impact]

   * User has images stuck in "Queued" status in Glance. This is cuased
  by created snapshots of instances that have had their base image
  deleted. The user is using Essex.

   * The bug has been fixed in Folsom

   * The fix ensures that the container_format field is always set to a
  legitimate value i.e. at least 'bare', since Glance expects it to be
  set to non-None/NULL.

  [Test Case]

    This issue can be easily reproduced with the following steps:

      1. Add image 'image1' to glance
      2. Create VM 'vm1' using 'image1'
      3. Create snapshot 'snap1' of 'vm1'
      4. Create VM 'vm2' from 'snap1'
      5. Delete snapshot image 'snap1'
      6. Create snapshot 'snap2' of 'vm2'

     If you do 'nova image-list' you will see the image for 'snap2' is
  stuck in the SAVING state (which translates to 'QUEUED' in Glance). If
  you then go to Glance server and look in the glance/registry.log you
  will see that the image update failed becauise the container_format is
  not set.

  [Regression Potential]

   * not likely.

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



More information about the Ubuntu-sponsors mailing list