Issuing "openstack server migrate <instance>" breaks the instance

Bug #1818078 reported by Alex Kavanagh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-lxd
New
Undecided
Unassigned

Bug Description

Essentially, nova-lxd appears to break if asked to migrate the instance. What should happen is that nova-lxd should refuse to issue the migration my not advertising that it can do it.

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

The issue results in:

$ openstack server migrate --wait test Error migrating server: 68476073-1021-41dd-987f-5b735023db0e Error migrating server

And from "openstack server show test":

 fault | {'code': 500, 'created': '2019-02-28T13:33:11Z', 'message': 'ClientConnectionFailed', 'details': ' File "/usr/lib/python3/dist-packages/nova
/compute/manager.py", line 204, in decorated_function\n return function(self, context, *args, **kwargs)\n File "/usr/lib/python3/dist-packages/nova/compute/manager.py", line 462
7, in finish_resize\n self._revert_allocation(context, instance, migration)\n File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 220, in __exit__\n self.force
_reraise()\n File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise\n six.reraise(self.type_, self.value, self.tb)\n File "/usr/lib/python3/di
st-packages/six.py", line 693, in reraise\n raise value\n File "/usr/lib/python3/dist-packages/nova/compute/manager.py", line 4624, in finish_resize\n migration)\n File "/usr/lib/python3/dist-packages/nova/compute/manager.py", line 4643, in _finish_resize_helper\n disk_info, image_meta, bdms)\n File "/usr/lib/python3/dist-packages/nova/compute/manager.py", line 4594, in _finish_resize\n old_instance_type)\n File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 220, in __exit__\n self.force_reraise()\n File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise\n six.reraise(self.type_, self.value, self.tb)\n File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise\n raise value\n File "/usr/lib/python3/dist-packages/nova/compute/manager.py", line 4589, in _finish_resize\n block_device_info, power_on)\n File "/usr/lib/python3/dist-packages/nova/virt/lxd/driver.py", line 1153, in finish_migration\n self._migrate(migration[\'source_compute\'], instance)\n File "/usr/lib/python3/dist-packages/nova/virt/lxd/driver.py", line 1349, in _migrate\n endpoint=\'https://{}\'.format(source_host), verify=False)\n File "/usr/lib/python3/dist-packages/pylxd/client.py", line 267, in __init__\n raise exceptions.ClientConnectionFailed()\n'}

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

See also https://bugs.launchpad.net/nova-lxd/+bug/1711568 for more details about maybe having to register the LXDLiveMigrateData object in nova.

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Also, further interesting info:

(from:
From: Rikimaru Honjo <honjo.rikimaru@*>
Message-ID: <a2777c81-cbd8-7c10-cf08-92f37699e717@*>
Date: Thu, 28 Mar 2019 16:23:35 +0900
To: openstack-discuss@*
List-Id: Discussion of OpenStack use and development <openstack-discuss.lists.openstack.org>
)

By the way, I confirmed the detail of the solution provided by Matt after that.
As a result, I found that the solution requires a special nova-conductor process "nova-conductor-powervm".

https://github.com/openstack/nova-powervm/blob/newton-eol/README.rst#live-migration

I think that it is troublesome for users...

Current PowerVMLiveMigrateData was moved to nova tree in the following patch.
https://review.openstack.org/#/c/391284/

Best regards,

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.