** Also affects: nova/icehouse
   Importance: Undecided
       Status: New

** Changed in: nova/icehouse
       Status: New => Fix Committed

** Changed in: nova/icehouse
    Milestone: None => 2014.1.1

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

Title:
  vmwareapi: unrescue instance failed due to can't detach disk from
  running instance

Status in OpenStack Compute (Nova):
  Fix Committed
Status in OpenStack Compute (nova) icehouse series:
  Fix Committed

Bug description:
  I use openstack icehouse build, when unrescue a rescued instance based on 
vcenter driver, the instance became to ERROR status, and when nova show  we hit 
error below:
  {u'message': u'The attempted operation cannot be performed in the current 
state (Powered on).', u'code': 500, u'details': u'  File 
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 258, in 
decorated_function |
  |                                      |     return function(self, context, 
*args, **kwargs)                                                                
                                                                                
                            |
  |                                      |   File 
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 2797, in 
unrescue_instance                                                               
                                                              |
  |                                      |     network_info)                    
                                                                                
                                                                                
                          |
  |                                      |   File 
"/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/driver.py", line 675, in 
unrescue                                                                        
                                                         |
  |                                      |     _vmops.unrescue(instance)        
                                                                                
                                                                                
                          |
  |                                      |   File 
"/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/vmops.py", line 1132, in 
unrescue                                                                        
                                                         |
  |                                      |     
self._volumeops.detach_disk_from_vm(vm_rescue_ref, r_instance, device)          
                                                                                
                                                           |
  |                                      |   File 
"/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/volumeops.py", line 129, 
in detach_disk_from_vm                                                          
                                                         |
  |                                      |     
self._session._wait_for_task(instance_uuid, reconfig_task)                      
                                                                                
                                                           |
  |                                      |   File 
"/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/driver.py", line 890, in 
_wait_for_task                                                                  
                                                         |
  |                                      |     ret_val = done.wait()            
                                                                                
                                                                                
                          |
  |                                      |   File 
"/usr/lib/python2.6/site-packages/eventlet/event.py", line 116, in wait         
                                                                                
                                                        |
  |                                      |     return hubs.get_hub().switch()   
                                                                                
                                                                                
                          |
  |                                      |   File 
"/usr/lib/python2.6/site-packages/eventlet/hubs/hub.py", line 187, in switch    
                                                                                
                                                        |
  |                                      |     return self.greenlet.switch()

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to