LXC (Linux containers) in OpenStack Configuration Reference  - icehouse

Bug #1318720 reported by axel vanzaghi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Expired
Undecided
Unassigned

Bug Description

Hi all,

I'm having an issue configuring an LXC/libvirt compute node with nova on Icehouse.
I followed the instructions on your configuration manual here :
http://docs.openstack.org/trunk/config-reference/content/lxc.html
but I have this error :

2014-05-12 17:37:28.486 4473 ERROR nova.openstack.common.threadgroup [-] this function is not supported by the connection driver: virConnectBaselineCPU
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py", line 117, in wait
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup x.wait()
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py", line 49, in wait
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup return self.thread.wait()
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup return self._exit_event.wait()
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup return hubs.get_hub().switch()
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup return self.greenlet.switch()
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup result = function(*args, **kwargs)
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/openstack/common/service.py", line 480, in run_service
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup service.start()
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/service.py", line 163, in start
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup self.manager.init_host()
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1012, in init_host
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup self.driver.init_host(host=self.host)
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 651, in init_host
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup self._do_quality_warnings()
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 639, in _do_quality_warnings
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup caps = self.get_host_capabilities()
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2843, in get_host_capabilities
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup libvirt.VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES)
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup result = proxy_call(self._autowrap, f, *args, **kwargs)
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in proxy_call
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup rv = execute(f,*args,**kwargs)
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup rv = meth(*args,**kwargs)
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3127, in baselineCPU
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup if ret is None: raise libvirtError ('virConnectBaselineCPU() failed', conn=self)
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup libvirtError: this function is not supported by the connection driver: virConnectBaselineCPU
2014-05-12 17:37:28.486 4473 TRACE nova.openstack.common.threadgroup

I also know that LXC/libvirt is known to be deprecated on Icehouse as said on the hypervisor matrix so I'm confused as it is still in the configuration manual.

I would like to know if there is a way to get rid of this error or if it's purely impossible to use LXC/libvirt on Icehouse.

Regards,
Vanzaghi Axel
-----------------------------------
Built: 2014-05-12T14:28:22 00:00
git SHA: 6bec02a8392cc79d324caa1631b4d588a0768196
URL: http://docs.openstack.org/trunk/config-reference/content/lxc.html
source File: file:/home/jenkins/workspace/openstack-manuals-tox-doc-publishdocs/doc/config-reference/compute/section_hypervisor_lxc.xml
xml:id: lxc

Revision history for this message
axel vanzaghi (axellinkgm) wrote :

Hi again,

maybe more information should be welcomed.

I'm running on debian Jessie so the version of libvirt is 1.2.1. Maybe the probleme is from here as the Wheezy libvirt version is 0.9.12.

thanks for answer,
Vanzaghie Axel

Revision history for this message
axel vanzaghi (axellinkgm) wrote :

Hi again again,

I dowgraded my libvirt-bin (dowgrade libvirt0, libnetcf1 before and python-libvirt after) and it works.

Sorry for disturbing you.
Vanzaghi Axel

Revision history for this message
Anne Gentle (annegentle) wrote :

Thanks for reporting, but I can't determine if this is a documentation bug. Have you tried asking on http://ask.openstack.org?

Changed in openstack-manuals:
status: New → Incomplete
Revision history for this message
axel vanzaghi (axellinkgm) wrote :

Thank for you answer,

as I said, I solved it by myself bringing back wheezy libvirt packages, but maybe you'll have to be aware of this bug if you plan to support jessie in the future.

Revision history for this message
Stephen Gordon (sgordon) wrote :

Anne, I think this a wider question for the Nova team - it seems like it's a symptom of the fact that we only test a very specific (old) version of Libvirt in the gate. This is a well known issue though.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openstack-manuals because there has been no activity for 60 days.]

Changed in openstack-manuals:
status: Incomplete → Expired
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.