Resize on vCenter failed because of _VM_REFS_CACHE
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
High
|
Feng Xi Yan | ||
Icehouse |
In Progress
|
High
|
Feng Xi Yan | ||
VMwareAPI-Team |
In Progress
|
Critical
|
Unassigned |
Bug Description
This bug is for nova/master branch.
The resize action in vmware environment always fails.
The reason is that nova resized the ****-orign rather than the new cloned vm.
It is caused by the outdated vm_ref in _VM_REFS_CACHE.
In nova/virt/
def finish_
if resize_instance:
vm_ref = vm_util.
.......
From this code, we can see we get vm_ref by vm_util.get_vm_ref.
In nova/virt/
@vm_ref_
def get_vm_ref(session, instance):
"""Get reference to the VM through uuid or vm name."""
uuid = instance['uuid']
vm_ref = (_get_vm_
if vm_ref is None:
raise exception.
return vm_ref
The "get_vm_ref" method is decorated by "vm_ref_
"vm_ref_
description: | updated |
description: | updated |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
description: | updated |
Changed in nova: | |
assignee: | nobody → Feng Xi Yan (yanfengxi) |
assignee: | Feng Xi Yan (yanfengxi) → nobody |
tags: | added: vmware |
Changed in nova: | |
milestone: | none → icehouse-rc1 |
Changed in openstack-vmwareapi-team: | |
status: | New → In Progress |
importance: | Undecided → Critical |
Changed in nova: | |
status: | Confirmed → In Progress |
assignee: | nobody → Feng Xi Yan (yanfengxi) |
Changed in nova: | |
importance: | Critical → High |
summary: |
- Resize on vCenter failed becausee of _VM_REFS_CACHE + Resize on vCenter failed because of _VM_REFS_CACHE |
Fix proposed to branch: master /review. openstack. org/#/c/ 79833/
Review: https:/