libvirtError: this function is not supported by the connection driver: virNWFilterDefineXML

Asked by ms

My vm fails to spawn. nova-commpute.log:

2011-09-05 15:21:57,304 DEBUG nova.virt.libvirt_conn [-] instance instance-0000001b: starting toXML method from (pid=8723) to_xml /usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py:996
2011-09-05 15:21:57,351 DEBUG nova.virt.libvirt_conn [-] instance instance-0000001b: finished toXML method from (pid=8723) to_xml /usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py:1041
2011-09-05 15:21:57,395 INFO nova [-] called setup_basic_filtering in nwfilter
2011-09-05 15:21:57,395 INFO nova [-] ensuring static filters
2011-09-05 15:21:57,400 ERROR nova.exception [-] Uncaught exception
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py", line 120, in _wrap
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 614, in spawn
(nova.exception): TRACE: self.firewall_driver.setup_basic_filtering(instance, network_info)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 1967, in setup_basic_filtering
(nova.exception): TRACE: return self.nwfilter.setup_basic_filtering(instance, network_info)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 1732, in setup_basic_filtering
(nova.exception): TRACE: self._ensure_static_filters()
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 1748, in _ensure_static_filters
(nova.exception): TRACE: 'allow-dhcp-server']))
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 1823, in _define_filter
(nova.exception): TRACE: tpool.execute(self._conn.nwfilterDefineXML, xml)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/eventlet/tpool.py", line 75, in tworker
(nova.exception): TRACE: rv = meth(*args,**kwargs)
(nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/libvirt.py", line 1815, in nwfilterDefineXML
(nova.exception): TRACE: if ret is None:raise libvirtError('virNWFilterDefineXML() failed', conn=self)
(nova.exception): TRACE: libvirtError: this function is not supported by the connection driver: virNWFilterDefineXML
(nova.exception): TRACE:
2011-09-05 15:21:57,400 ERROR nova.compute.manager [XUV80UNK0RQT0OL51VP7 xsliacky proj1] Instance '27' failed to spawn. Is virtualization enabled in the BIOS?
(nova.compute.manager): TRACE: Traceback (most recent call last):
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 234, in run_instance
(nova.compute.manager): TRACE: self.driver.spawn(instance_ref)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py", line 126, in _wrap
(nova.compute.manager): TRACE: raise Error(str(e))
(nova.compute.manager): TRACE: Error: this function is not supported by the connection driver: virNWFilterDefineXML
(nova.compute.manager): TRACE:

If someone has a clue what may cause this, pls help. Thanks.
ms

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Soren Hansen (soren) said :
#1

I suspect you're using a very old version of libvirt? Which version
are you using?

Revision history for this message
ms (micromanc3r) said :
#2

I'm using 0.9.0

Revision history for this message
Soren Hansen (soren) said :
#3

I'm going to guess you're missing either ebtables, iptables or gawk. Can you check to make sure they're installed, and if either of them aren't, install it and restart libvirtd and see if that helps.

Revision history for this message
ms (micromanc3r) said :
#4

all three are installed but I did not do anything with them... do I have to set them up somehow?
thx

Revision history for this message
ms (micromanc3r) said :
#5

I tried to upgrade libvirt to 0.9.4 but didn't help

Revision history for this message
Brian Lamar (blamar) said :
#6

Can you provide the nova.conf you're using?

Revision history for this message
ms (micromanc3r) said :
#7

compute node:
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--verbose
--libvirt_type=xen

--network_manager=nova.network.manager.FlatManager
--num_networks=1
--flat_network_bridge=xenbr0

--s3_host=148.251.17.192
--rabbit_host=148.251.17.192
--cc_host=148.251.17.192
--ec2_url=http://148.251.17.192:8773/services/Cloud
--fixed_range=148.251.17.128/26
--network_size=8
--FAKE_subdomain=ec2
--routing_source_ip=148.251.17.180
--sql_connection=mysql://root:lopta@148.251.17.192/nova
--glance_host=148.251.17.192
--image_service=nova.image.glance.GlanceImageService

controller:
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--verbose

--network_manager=nova.network.manager.FlatManager
--num_networks=1
--flat_network_bridge=xenbr0

--s3_host=148.251.17.192
--rabbit_host=148.251.17.192
--cc_host=148.251.17.192
--ec2_url=http://148.251.17.192:8773/services/Cloud
--FAKE_subdomain=ec2
--routing_source=148.251.17.192
--sql_connection=mysql://root:lopta@148.251.17.192/nova
--glance_host=148.251.17.192
--image_service=nova.image.glance.GlanceImageService
--iscsi_ip_prefix=148.251.17

--fixed_range=148.251.17.128/26
--network_size=8

Revision history for this message
ms (micromanc3r) said :
#8

controller is ubuntu 10.04.3 server and computing node is Debian squeeze with xen hypervisor 3.0.0-1

Revision history for this message
ms (micromanc3r) said :
#9

sry xen hypervisor is 2.6.32-5

Revision history for this message
Soren Hansen (soren) said :
#10

Oh, Xen! That's probably why. Let me check up on that.

Revision history for this message
Soren Hansen (soren) said :
#11

Yep, that does seem to be the problem. Sorry, that means Xen support through libvirt won't work. :(

Revision history for this message
ms (micromanc3r) said :
#12

so what do I have to use if I have to work with Xen?

Revision history for this message
Brian Lamar (blamar) said :
#13

The XenAPI driver requires something like this in the compute node:

--connection_type=xenapi
--xenapi_connection_url=https://10.10.10.10
--xenapi_connection_username=root
--xenapi_connection_password=xenapi_password

http://wiki.openstack.org/XenServerDevelopment

Revision history for this message
Paul Voccio (pvo) said :
#14

That is the XenServer virt layer, which uses xapi. I'm not sure thats available outside of XCP/XenServer yet as Citrix is currently working on getting xapi support into Deiban.

Revision history for this message
Xavi Campa (xavicampa) said :
#15

I'm getting exactly the same issue with libvirt 0.8.3 and Xen 4.0.1-2 (on Debian Squeeze).

Can you help with this problem?

Provide an answer of your own, or ask ms for more information if necessary.

To post a message you must log in.