Detach VMDK volume fails if shadow VM unregistered and registered back
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Description
===========
When trying nova VMDK volume detach from an instance hosted on vCenter, the detach fail if the shadow VM used for vmdk volume is unregistered and registered back in vCenter.
Steps to reproduce
==================
* Attach a VMDK volume to an instance
* Unregister/delete the shadow VM. [A VM just contains the VMDK matching the cinder UUID]
* register/create the VM back with the same name
* Try detach
Expected result
===============
It should detach the volume from the instance
Actual result
=============
It fails to detach.
Because in the vCenter, due to un-registering the vm MOid changed. In block_device_
this information (connection_info) and use it to form the volume ref during detach in the driver.
https:/
I think we should not be relying on that, instead make the vCenter call and get the MOID by name.
Logs
====
Cause: Server raised fault: 'The object has already been deleted or has not been completely created'
Faults: [ManagedObjectN
Details: {'obj': 'vm-1031'}
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
2014-11-19 06:05:55.086 29958 ERROR oslo_messaging.
Environment
===========
nova driver: VMWareVCDriver
cinder driver: VMDkdriver
Observing the issue on "stable/mitaka". I believe this issue persists in master as well.
Changed in nova: | |
assignee: | nobody → Chinmaya Bharadwaj (acbharadwaj) |
tags: | added: vmware |
Changed in nova: | |
assignee: | Chinmaya Bharadwaj (acbharadwaj) → Divakar Padiyar Nandavar (divakar-padiyar-nandavar) |
Changed in nova: | |
assignee: | Divakar Padiyar Nandavar (divakar-padiyar-nandavar) → Chinmaya Bharadwaj (acbharadwaj) |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Fix proposed to branch: master /review. openstack. org/332156
Review: https:/