Bug 1141568 - libvirtError: operation failed: filter 'vdsm-no-mac-spoofing' already exists
Summary: libvirtError: operation failed: filter 'vdsm-no-mac-spoofing' already exists
Keywords:
Status: CLOSED DUPLICATE of bug 1138807
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: 3.5
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ---
: ---
Assignee: Dan Kenigsberg
QA Contact: Gil Klein
URL:
Whiteboard: network
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-14 20:50 UTC by Nir Soffer
Modified: 2014-09-15 20:58 UTC (History)
7 users (show)

Fixed In Version: v4.16.4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-14 21:31:34 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)

Description Nir Soffer 2014-09-14 20:50:24 UTC
Description of problem:

Starting vdsm fails with this error in /var/log/messages:

Sep 14 23:42:01 voodoo4.tlv.redhat.com vdsmd_init_common.sh[2676]: libvirt: Network Filter Driver error : operation failed: filter 'vdsm-no-mac-spoofing' already exists with uuid 84f08077-76be-4961-9a08-0acb93a2
Sep 14 23:42:01 voodoo4.tlv.redhat.com vdsmd_init_common.sh[2676]: Traceback (most recent call last):
Sep 14 23:42:01 voodoo4.tlv.redhat.com vdsmd_init_common.sh[2676]: File "/usr/bin/vdsm-tool", line 209, in main
Sep 14 23:42:01 voodoo4.tlv.redhat.com vdsmd_init_common.sh[2676]: return tool_command[cmd]["command"](*args)
Sep 14 23:42:01 voodoo4.tlv.redhat.com vdsmd_init_common.sh[2676]: File "/usr/lib64/python2.7/site-packages/vdsm/tool/nwfilter.py", line 38, in main
Sep 14 23:42:01 voodoo4.tlv.redhat.com vdsmd_init_common.sh[2676]: NoMacSpoofingFilter().defineNwFilter(conn)
Sep 14 23:42:01 voodoo4.tlv.redhat.com vdsmd_init_common.sh[2676]: File "/usr/lib64/python2.7/site-packages/vdsm/tool/nwfilter.py", line 60, in defineNwFilter
Sep 14 23:42:01 voodoo4.tlv.redhat.com vdsmd_init_common.sh[2676]: nwFilter = conn.nwfilterDefineXML(self.buildFilterXml())
Sep 14 23:42:01 voodoo4.tlv.redhat.com vdsmd_init_common.sh[2676]: File "/usr/lib64/python2.7/site-packages/vdsm/libvirtconnection.py", line 111, in wrapper
Sep 14 23:42:01 voodoo4.tlv.redhat.com vdsmd_init_common.sh[2676]: ret = f(*args, **kwargs)
Sep 14 23:42:01 voodoo4.tlv.redhat.com vdsmd_init_common.sh[2676]: File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4041, in nwfilterDefineXML
Sep 14 23:42:01 voodoo4.tlv.redhat.com vdsmd_init_common.sh[2676]: if ret is None:raise libvirtError('virNWFilterDefineXML() failed', conn=self)
Sep 14 23:42:01 voodoo4.tlv.redhat.com vdsmd_init_common.sh[2676]: libvirtError: operation failed: filter 'vdsm-no-mac-spoofing' already exists with uuid 84f08077-76be-4961-9a08-0acb93a2c029


Version-Release number of selected component (if applicable):
vdsm-4.16.2-1.gite8cba75.fc20.x86_64

How reproducible:
Always after getting into this state.

Steps to Reproduce:
1. Install some vdsm version (probably master few weeks before the upgrade)
2. Upgrade Fedora 19 to Fedora 20 using fedup
3. yum remove vdsm\*
4. yum install vdsm
5. vdsm-configure --force
6. systemctl start vdsmd

Actual results:
vdsm will not start

Expected results:
vdsm starts

Comment 1 Nir Soffer 2014-09-14 21:03:28 UTC
Workaround:

1. Find the rule:
[root@voodoo4 ~]# grep -rn 84f08077-76be-4961-9a08-0acb93a2c029 /etc
/etc/libvirt/nwfilter/vdsm-no-mac-spoofing.xml:9:  <uuid>84f08077-76be-4961-9a08-0acb93a2c029</uuid>

2. Remove it
systemctl stop libvirtd
rm /etc/libvirt/nwfilter/vdsm-no-mac-spoofing.xml

3. Start vdsmd

Lowering severity for easy workaround.

Comment 2 Dan Kenigsberg 2014-09-14 21:31:34 UTC

*** This bug has been marked as a duplicate of bug 1138807 ***


Note You need to log in before you can comment on or make changes to this bug.