Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 603788[details]
vdsm log
Description of problem:
Enable port mirroring on one VM and run it. Then enable port mirroring on another VM and try to run it. It will fail with "The vm start process failed" error message
Steps to Reproduce:
1. Enable port mirroring on several NICs of one VM and run it
2. After some time enable port mirroring on several NICs of another VM and run it
Actual results:
The second VM will fail to run
Expected results:
The second VM is supposed to run with port mirroring enabled
Additional info:
MainProcess|Thread-277295::DEBUG::2012-08-12 17:23:45,675::__init__::1164::Storage.Misc.excCmd::(_log) '/sbin/tc qdisc add dev rhevm ingress' (cwd None)
MainProcess|Thread-277295::DEBUG::2012-08-12 17:23:45,703::__init__::1164::Storage.Misc.excCmd::(_log) FAILED: <err> = 'RTNETLINK answers: File exists\n'; <rc> = 2
MainProcess|Thread-277295::ERROR::2012-08-12 17:23:45,704::supervdsmServer::61::SuperVdsm.ServerCallback::(wrapper) Error in setPortMirroring
Traceback (most recent call last):
File "/usr/share/vdsm/supervdsmServer.py", line 59, in wrapper
return func(*args, **kwargs)
File "/usr/share/vdsm/supervdsmServer.py", line 202, in setPortMirroring
tc.setPortMirroring(networkName, ifaceName)
File "/usr/share/vdsm/tc.py", line 36, in setPortMirroring
qdisc_add_ingress(network)
File "/usr/share/vdsm/tc.py", line 57, in qdisc_add_ingress
_process_request(command)
File "/usr/share/vdsm/tc.py", line 52, in _process_request
raise TrafficControlException(retcode, msg)
TrafficControlException: (2, 'error executing command "/sbin/tc qdisc add dev rhevm ingress" error: RTNETLINK answers: File exists\n')
Thread-277295::DEBUG::2012-08-12 17:23:45,704::vm::581::vm.Vm::(_startUnderlyingVm) vmId=`1108cc0e-dd17-4944-9a58-9e59a29f1a2a`::_ongoingCreations released
Thread-277295::ERROR::2012-08-12 17:23:45,705::vm::605::vm.Vm::(_startUnderlyingVm) vmId=`1108cc0e-dd17-4944-9a58-9e59a29f1a2a`::The vm start process failed
Traceback (most recent call last):
File "/usr/share/vdsm/vm.py", line 571, in _startUnderlyingVm
self._run()
File "/usr/share/vdsm/libvirtvm.py", line 1379, in _run
self._domDependentInit()
File "/usr/share/vdsm/libvirtvm.py", line 1265, in _domDependentInit
supervdsm.getProxy().setPortMirroring(network, nic.name)
File "/usr/share/vdsm/supervdsm.py", line 59, in __call__
return callMethod()
File "/usr/share/vdsm/supervdsm.py", line 57, in <lambda>
callMethod = lambda : getattr(self._supervdsmProxy._svdsm, self._funcName)(*args, **kwargs)
File "<string>", line 2, in setPortMirroring
File "/usr/lib64/python2.6/multiprocessing/managers.py", line 740, in _callmethod
raise convert_to_error(kind, result)
TrafficControlException: (2, 'error executing command "/sbin/tc qdisc add dev rhevm ingress" error: RTNETLINK answers: File exists\n')
Thread-277295::DEBUG::2012-08-12 17:23:45,783::vm::921::vm.Vm::(setDownStatus) vmId=`1108cc0e-dd17-4944-9a58-9e59a29f1a2a`::Changed state to Down: (2, 'error executing command "
/sbin/tc qdisc add dev rhevm ingress" error: RTNETLINK answers: File exists\n')
We need to add refernce counting to the bridge's promisc mode, and to its ingress rule. Furthermore, only the per-target filter should be removed when a monitorring VM is taken down, not the complete rule.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHSA-2012-1508.html
Created attachment 603788 [details] vdsm log Description of problem: Enable port mirroring on one VM and run it. Then enable port mirroring on another VM and try to run it. It will fail with "The vm start process failed" error message Steps to Reproduce: 1. Enable port mirroring on several NICs of one VM and run it 2. After some time enable port mirroring on several NICs of another VM and run it Actual results: The second VM will fail to run Expected results: The second VM is supposed to run with port mirroring enabled Additional info: MainProcess|Thread-277295::DEBUG::2012-08-12 17:23:45,675::__init__::1164::Storage.Misc.excCmd::(_log) '/sbin/tc qdisc add dev rhevm ingress' (cwd None) MainProcess|Thread-277295::DEBUG::2012-08-12 17:23:45,703::__init__::1164::Storage.Misc.excCmd::(_log) FAILED: <err> = 'RTNETLINK answers: File exists\n'; <rc> = 2 MainProcess|Thread-277295::ERROR::2012-08-12 17:23:45,704::supervdsmServer::61::SuperVdsm.ServerCallback::(wrapper) Error in setPortMirroring Traceback (most recent call last): File "/usr/share/vdsm/supervdsmServer.py", line 59, in wrapper return func(*args, **kwargs) File "/usr/share/vdsm/supervdsmServer.py", line 202, in setPortMirroring tc.setPortMirroring(networkName, ifaceName) File "/usr/share/vdsm/tc.py", line 36, in setPortMirroring qdisc_add_ingress(network) File "/usr/share/vdsm/tc.py", line 57, in qdisc_add_ingress _process_request(command) File "/usr/share/vdsm/tc.py", line 52, in _process_request raise TrafficControlException(retcode, msg) TrafficControlException: (2, 'error executing command "/sbin/tc qdisc add dev rhevm ingress" error: RTNETLINK answers: File exists\n') Thread-277295::DEBUG::2012-08-12 17:23:45,704::vm::581::vm.Vm::(_startUnderlyingVm) vmId=`1108cc0e-dd17-4944-9a58-9e59a29f1a2a`::_ongoingCreations released Thread-277295::ERROR::2012-08-12 17:23:45,705::vm::605::vm.Vm::(_startUnderlyingVm) vmId=`1108cc0e-dd17-4944-9a58-9e59a29f1a2a`::The vm start process failed Traceback (most recent call last): File "/usr/share/vdsm/vm.py", line 571, in _startUnderlyingVm self._run() File "/usr/share/vdsm/libvirtvm.py", line 1379, in _run self._domDependentInit() File "/usr/share/vdsm/libvirtvm.py", line 1265, in _domDependentInit supervdsm.getProxy().setPortMirroring(network, nic.name) File "/usr/share/vdsm/supervdsm.py", line 59, in __call__ return callMethod() File "/usr/share/vdsm/supervdsm.py", line 57, in <lambda> callMethod = lambda : getattr(self._supervdsmProxy._svdsm, self._funcName)(*args, **kwargs) File "<string>", line 2, in setPortMirroring File "/usr/lib64/python2.6/multiprocessing/managers.py", line 740, in _callmethod raise convert_to_error(kind, result) TrafficControlException: (2, 'error executing command "/sbin/tc qdisc add dev rhevm ingress" error: RTNETLINK answers: File exists\n') Thread-277295::DEBUG::2012-08-12 17:23:45,783::vm::921::vm.Vm::(setDownStatus) vmId=`1108cc0e-dd17-4944-9a58-9e59a29f1a2a`::Changed state to Down: (2, 'error executing command " /sbin/tc qdisc add dev rhevm ingress" error: RTNETLINK answers: File exists\n')