[Openstack] Live Migration of VMs without shared storage

somshekar kadam som_kadam at yahoo.co.in
Fri Feb 27 14:37:42 UTC 2015


John, your patch is in the mainline now. I have tested it. Not sure what is the thing I am missing
I have specified cpu model none and even tried setting cpu mode custom also and model kvm64. 

I am getting below error on live migration. 

error log
----
Remote error: libvirtError Requested operation is not valid: no CPU model specified [u’Traceback (most recent call last):\n’, u’ File “/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py”, line 142, in _dispatch_and_reply\n executo
Code
500
Details
File “/opt/stack/nova/nova/conductor/manager.py”, line 606, in _live_migrate block_migration, disk_over_commit) File “/opt/stack/nova/nova/conductor/tasks/live_migrate.py”, line 194, in execute return task.execute() File “/opt/stack/nova/nova/conductor/tasks/live_migrate.py”, line 62, in execute self._check_requested_destination() File “/opt/stack/nova/nova/conductor/tasks/live_migrate.py”, line 100, in _check_requested_destination self._call_livem_checks_on_host(self.destination) File “/opt/stack/nova/nova/conductor/tasks/live_migrate.py”, line 142, in _call_livem_checks_on_host destination, self.block_migration, self.disk_over_commit) File “/opt/stack/nova/nova/compute/rpcapi.py”, line 391, in check_can_live_migrate_destination disk_over_commit=disk_over_commit) File “/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py”, line 156, in call retry=self.retry) File “/usr/local/lib/python2.7/dist-packages/oslo_messaging/transport.py”, line 90, in _send timeout=timeout, retry=retry) File “/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py”, line 417, in send retry=retry) File “/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py”, line 408, in _send raise result
Created
--------------------

debug log 
---------------
DEBUG (shell:803) Live migration of instance 477e8963-aadf-4dc7-b26f-f6e9332dd33b to host celestial5 failed (HTTP 500) (Request-ID: req-7973edbc-8844-41c5-926a-9f5e7cee62f2)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/novaclient/shell.py", line 800, in main
    OpenStackComputeShell().main(argv)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/shell.py", line 730, in main
    args.func(self.cs, args)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 3001, in do_live_migration
    args.disk_over_commit)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 344, in live_migrate
    disk_over_commit)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 1124, in live_migrate
    'disk_over_commit': disk_over_commit})
  File "/usr/local/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 1240, in _action
    return self.api.client.post(url, body=body)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 490, in post
    return self._cs_request(url, 'POST', **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 465, in _cs_request
    resp, body = self._time_request(url, method, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 439, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 433, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: Live migration of instance 477e8963-aadf-4dc7-b26f-f6e9332dd33b to host celestial5 failed (HTTP 500) (Request-ID: req-7973edbc-8844-41c5-926a-9f5e7cee62f2)
ERROR (ClientException): Live migration of instance 477e8963-aadf-4dc7-b26f-f6e9332dd33b to host celestial5 failed (HTTP 500) (Request-ID: req-7973edbc-8844-41c5-926a-9f5e7cee62f2)
----------------------

Regards
Neelu 

     On Thursday, 26 February 2015 8:21 PM, John Griffith <john.griffith at solidfire.com> wrote:
   

 

On Thu, Feb 26, 2015 at 7:07 AM, somshekar kadam <som_kadam at yahoo.co.in> wrote:

First of all thanks for quick reply. 
Documentation does not mention much about Volume-backed live migration. 
Is it tested, I mean supported and working. 
I will try Block live migration as no storage is required. 
 
Regards
Neelu 

     On Thursday, 26 February 2015 7:13 PM, Robert van Leeuwen <Robert.vanLeeuwen at spilgames.com> wrote:
   

 > Is the Live Migration of VMs even without shared storage supported in Openstack now.
> If yes is there any document for the same.

Wel, depends on what you call "supported".
Yes, it is possible. 
Will it always work? Probably not until you look at the bugs below.
They have been fixed recently but they might not be merged with the version you are running: 
https://bugs.launchpad.net/nova/+bug/1270825
https://bugs.launchpad.net/nova/+bug/1082414

There might be more issues but I hit the ones mentioned above.
Have a look at the docs to configure it:
http://docs.openstack.org/admin-guide-cloud/content/section_configuring-compute-migrations.html

Cheers,
Robert van Leeuwen



 












    
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack



It's dated and getting the patches backported has proven to take forever, but I did a write up and testing on this a while back [1].  Should still be accurate.
Thanks,John
[1]: https://griffithscorner.wordpress.com/2014/12/08/openstack-live-migration-with-cinder-backed-instances/

   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150227/442ffad6/attachment.html>


More information about the Openstack mailing list