Ask Your Question
0

How to install new nova patch

asked 2015-04-28 04:33:01 -0500

AlonFre gravatar image

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

edit retag flag offensive close merge delete

Comments

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

dbaxps gravatar imagedbaxps ( 2015-04-28 06:39:21 -0500 )edit
dbaxps gravatar imagedbaxps ( 2015-04-28 06:40:06 -0500 )edit
dbaxps gravatar imagedbaxps ( 2015-04-28 07:17:06 -0500 )edit

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.

AlonFre gravatar imageAlonFre ( 2015-04-28 10:10:42 -0500 )edit
1
dbaxps gravatar imagedbaxps ( 2015-04-28 12:19:36 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-08 06:34:09 -0500

AlonFre gravatar image

Hi dbaxps,

in the fix details: https://review.openstack.org/#/c/1619... i can see that the fix is included in the master branch and in stable/kilo branch.

Included in
Branch Name
master
stable/kilo

does the master branch is juno?

it looks like the nova-compute that i'm using is up to date:

apt-cache policy nova-compute 
nova-compute:
  Installed: 1:2014.2.2-0ubuntu1~cloud0
  Candidate: 1:2014.2.2-0ubuntu1~cloud0

Thanks, Alon

edit flag offensive delete link more

Comments

You wrote : does the master branch is juno?

Answer is NO.

Otherwise, I wouldn't suggest open bug for back port patch to Juno

dbaxps gravatar imagedbaxps ( 2015-05-08 07:11:32 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-04-28 04:33:01 -0500

Seen: 675 times

Last updated: May 08 '15