Attached volume migration failed, due to incorrect arguments order passed to swap_volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Chhavi Agarwal | ||
Kilo |
Fix Released
|
Undecided
|
Unassigned | ||
OpenStack-Ansible |
Fix Released
|
Medium
|
Kevin Carter |
Bug Description
Steps to reproduce:
1. create a volume in cinder
2. boot a server from image in nova
3. attach this volume to server
4. use ' cinder migrate --force-host-copy True 3fa956b6-
log from nova compute:( see attched from detail info):
2015-05-05 00:33:31.768 ERROR root [req-b8424cde-
ll last):\n', ' File "/opt/stack/
', ' File "/opt/stack/
eError: 'unicode' object has no attribute 'uuid'\n"]
according to my debug result:
# here parameters passed to swap_volume
def swap_volume(self, ctxt, instance, old_volume_id, new_volume_id):
return self.manager.
# swap_volume function
@wrap_
@reverts_
@wrap_
def swap_volume(self, context, old_volume_id, new_volume_id, instance):
"""Swap volume for an instance."""
context = context.elevated()
bdm = objects.
connector = self.driver.
You can find: passed in order is "self, ctxt, instance, old_volume_id, new_volume_id" while function definition is "self, context, old_volume_id, new_volume_id, instance"
this cause the 'unicode' object has no attribute 'uuid'\n" error when trying to access instance['uuid']
BTW: this problem was introduced in https:/
affect both Kilo and master
Thanks
Peter
tags: | added: kilo-backport-potential |
Changed in nova: | |
importance: | Undecided → High |
Changed in openstack-ansible: | |
importance: | Undecided → Medium |
status: | New → In Progress |
assignee: | nobody → Kevin Carter (kevin-carter) |
milestone: | none → 11.0.2 |
Changed in openstack-ansible: | |
status: | In Progress → Fix Committed |
Changed in openstack-ansible: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-1 → 12.0.0 |
Fix proposed to branch: master /review. openstack. org/180279
Review: https:/