Bug 877337 - sudo error in l3-agent.log caused by iptables_manager.py
Summary: sudo error in l3-agent.log caused by iptables_manager.py
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: openstack-quantum
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: lpeer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-16 09:48 UTC by Etsuji Nakai
Modified: 2014-10-06 09:09 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-06 09:09:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
removing the leading "/sbin" from iptables-save (492 bytes, patch)
2012-11-16 09:48 UTC, Etsuji Nakai
no flags Details | Diff

Description Etsuji Nakai 2012-11-16 09:48:40 UTC
Created attachment 646268 [details]
removing the leading "/sbin" from iptables-save

The following error is on /var/log/quantum/l3-agent.log

---
RuntimeError:
Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', '/sbin/iptables-save', '-t', 'filter']
Exit code: 99
---

This is a known issue in the upstream:
https://bugs.launchpad.net/quantum/+bug/1069966

This is caused because "/sbin/iptables-save" is issued instead of "iptables-save".


My setup is:
# rpm -qf /usr/lib/python2.6/site-packages/quantum/agent/linux/iptables_manager.py
python-quantum-2012.2-2.el6.noarch

Comment 1 Gary Kotton 2012-11-16 14:05:30 UTC
Hi,
The bug https://bugs.launchpad.net/quantum/+bug/1069966 has been solved upstream. The fix has been ported back to the stable folsom release. The fix is in http://github.com/openstack/quantum/commit/425e942fa28667f57282044f653a73c7fa60cfff and it will be ready in a few days when we do the new packages.
Thanks
Gary

Comment 2 Etsuji Nakai 2012-11-18 06:06:01 UTC
If I'm not mistaken, the same bug seems to remain in RHOS Folsom Preview, right?

# rpm -qf /usr/lib/python2.6/site-packages/quantum/agent/linux/iptables_manager.py
python-quantum-2012.2-2.1.el6.noarch

# grep sbin /usr/lib/python2.6/site-packages/quantum/agent/linux/iptables_manager.py
        s = [('/sbin/iptables', self.ipv4)]

Comment 3 Gary Kotton 2012-11-18 06:08:05 UTC
Hi,
You are not mistaken. At the moment the problem is in the preview. We are currently working on building and testing the packages with the new fix.
Thanks
Gary

Comment 5 Ihar Hrachyshka 2014-10-06 09:09:28 UTC
The issus is in Folsom. We almost already forgot that such a release existed.


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