← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1427056] [NEW] shelved_image_id is deleted before completing unshelving instance on compute node

 

Public bug reported:

Steps to reproduce:

1. Boot an instance from image.
2. Call Shelve instance, instance becomes SHELVED_OFFLOADED state.
3. Call unshelve instance.
   3.1 nova-conductor calls RPC.Cast to nova-compute
   If some failure happens in nova-compute. e.g. "Instance failed to spawn" error from libvirt
   3.2 nova-conductor deletes instance_system_metadata.shelved_image_id after RPC.cast for unshelving the instance.
   3.3 Instance becomes SHELVED_OFFLOADED again by revert_task_state, but instance_system_metadata.shelved_image_id is already deleted for this instance

Problems:
1. As there is no shelved_image_id, during unshelving the instance again, it gives error while getting image-meta in   
   libvirt driver and instance remains in SHELVED_OFFLOADED state.

2. As there is no shelved_image_id, deleting the instance will try to delete "image_id=None" image from glance,
   but 404 error will be returned from glance, instance will be successfully deleted, and shelved image remains.

** Affects: nova
     Importance: Undecided
     Assignee: Pranali Deore (pranali-deore)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Pranali Deore (pranali-deore)

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

Title:
  shelved_image_id is deleted before completing unshelving instance on
  compute node

Status in OpenStack Compute (Nova):
  New

Bug description:
  Steps to reproduce:

  1. Boot an instance from image.
  2. Call Shelve instance, instance becomes SHELVED_OFFLOADED state.
  3. Call unshelve instance.
     3.1 nova-conductor calls RPC.Cast to nova-compute
     If some failure happens in nova-compute. e.g. "Instance failed to spawn" error from libvirt
     3.2 nova-conductor deletes instance_system_metadata.shelved_image_id after RPC.cast for unshelving the instance.
     3.3 Instance becomes SHELVED_OFFLOADED again by revert_task_state, but instance_system_metadata.shelved_image_id is already deleted for this instance

  Problems:
  1. As there is no shelved_image_id, during unshelving the instance again, it gives error while getting image-meta in   
     libvirt driver and instance remains in SHELVED_OFFLOADED state.

  2. As there is no shelved_image_id, deleting the instance will try to delete "image_id=None" image from glance,
     but 404 error will be returned from glance, instance will be successfully deleted, and shelved image remains.

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


Follow ups

References