← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1480931] [NEW] Can't remove error instance which boot from image with new volume

 

Public bug reported:

We need to prepare a image which will cause error during build instance.
>> nova image-meta cirros-0.3.4-x86_64-uec set hw_video_ram=5
Nova will raise requested ram too high exception when creating instance.
Then you can get a error instance. But you can't delete it.
You can find there is error message which was raised at 
https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L2245

Why this happen?
Nova will detach volume if you create instance failed.
When users try to delete instance, nova will detach again.
And cinder will throw invalid volume at
https://github.com/openstack/cinder/blob/master/cinder/volume/manager.py#L888
Nova don't have try exception block can handle this exception.
Therefore nova can't delete instance.

** Affects: nova
     Importance: Undecided
     Assignee: Chung Chih, Hung (lyanchih)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Chung Chih, Hung (lyanchih)

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

Title:
  Can't remove error instance which boot from image with new volume

Status in OpenStack Compute (nova):
  New

Bug description:
  We need to prepare a image which will cause error during build instance.
  >> nova image-meta cirros-0.3.4-x86_64-uec set hw_video_ram=5
  Nova will raise requested ram too high exception when creating instance.
  Then you can get a error instance. But you can't delete it.
  You can find there is error message which was raised at 
  https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L2245

  Why this happen?
  Nova will detach volume if you create instance failed.
  When users try to delete instance, nova will detach again.
  And cinder will throw invalid volume at
  https://github.com/openstack/cinder/blob/master/cinder/volume/manager.py#L888
  Nova don't have try exception block can handle this exception.
  Therefore nova can't delete instance.

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


Follow ups