How to install new nova patch
Hey guys,
Following to my previews question, i found out , using your help, that there is a new patch that solves the problem of live migrating an instance, between two compute hosts with different CPU models. (see my question: error when live migrating. computes node with different CPUs
now there is a patch that solves the issue: https://review.openstack.org/#/c/1619... https://bugs.launchpad.net/nova/+bug/...
patches are needed on files test_driver.py and driver.py, my question is, how to install those patches on juno? our system was installed using the manual installation guide: http://docs.openstack.org/juno/instal...
first, i tried to just replace the .py files with the ones that in the patch. on locations: nova/tests/virt/libvirt/test_driver.py & nova/virt/libvirt/driver.py
but then, when trying to restart the nova-compute service, i get the following errors:
2015-04-28 12:19:38.548 7611 INFO nova.openstack.common.service [-] Caught SIGTERM, exiting
2015-04-28 12:19:39.269 3661 INFO nova.openstack.common.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2015-04-28 12:19:39.298 3661 INFO nova.virt.driver [-] Loading compute driver 'libvirt.LibvirtDriver'
2015-04-28 12:19:39.363 3661 ERROR nova.virt.driver [-] Unable to load the virtualization driver
2015-04-28 12:19:39.363 3661 TRACE nova.virt.driver Traceback (most recent call last):
2015-04-28 12:19:39.363 3661 TRACE nova.virt.driver File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 1402, in load_compute_driver
2015-04-28 12:19:39.363 3661 TRACE nova.virt.driver virtapi)
2015-04-28 12:19:39.363 3661 TRACE nova.virt.driver File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 52, in import_object_ns
2015-04-28 12:19:39.363 3661 TRACE nova.virt.driver return import_class(import_str)(*args, **kwargs)
2015-04-28 12:19:39.363 3661 TRACE nova.virt.driver File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 33, in import_class
2015-04-28 12:19:39.363 3661 TRACE nova.virt.driver traceback.format_exception(*sys.exc_info())))
2015-04-28 12:19:39.363 3661 TRACE nova.virt.driver ImportError: Class LibvirtDriver cannot be found (['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 29, in import_class\n return getattr(sys.modules[mod_str], class_str)\n', "AttributeError: 'module' object has no attribute 'LibvirtDriver'\n"])
2015-04-28 12:19:39.363 3661 TRACE nova.virt.driver
I will appreciate your assist. Thanks in advanced, Alon
This patch was merged after Mar 30, 2015 , so it supposed to work with Kilo release of openstack-nova-compute service. Just a weird guess , in case you run release prior to Juno ( say Havana ), it might help
compute_driver=nova.virt.libvirt.LibvirtDriver
View:- https://ask.openstack.org/en/question...
View also :- http://cbs.centos.org/koji/buildinfo?...
regarding the first suggestion, we are using juno, but anyway, after trying this solution, the problem still the same. i did not understand what to do with the second "view also" suggestion ? thanks.
Looks like you hit by https://bugs.launchpad.net/nova/+bug/...