yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #03580
[Bug 1195781] Re: rootwrap default config has uppercase sections
** Changed in: neutron
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1195781
Title:
rootwrap default config has uppercase sections
Status in OpenStack Neutron (virtual network service):
Fix Released
Bug description:
If you are using devstack to deploy neutron, agent will fail to start:
2013-06-28 15:26:53.004 29285 DEBUG quantum.agent.linux.utils [-]
Command: ['/opt/stack/quantum/bin/quantum-rootwrap-xen-dom0', '/etc/quantum/rootwrap.conf', 'ip', '-o', 'link', 'show', 'xapi1']
Exit code: 96
Stdout: ''
Stderr: 'Traceback (most recent call last):\n File "/opt/stack/quantum/bin/quantum-rootwrap-xen-dom0", line 102, in run_command\n session = XenAPI.Session(url)\n File "/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 114, in __init__\n verbose, allow_none)\n File "/usr/lib/python2.7/xmlrpclib.py", line 1549, in __init__\n raise IOError, "unsupported XML-RPC protocol"\nIOError: unsupported XML-RPC protocol\n' execute /opt/stack/quantum/quantum/agent/linux/utils.py:59
2013-06-28 15:26:53.005 29285 ERROR quantum.plugins.openvswitch.agent.ovs_quantum_agent [-] Bridge xapi1 for physical network physnet1 does not exist. Agent terminated!
Trying to run the rootwrap command:
stack@DevStackOSDomU:~/quantum$ /opt/stack/quantum/bin/quantum-rootwrap-xen-dom0 /etc/quantum/rootwrap.conf ip -o link show xapi1
Traceback (most recent call last):
File "/opt/stack/quantum/bin/quantum-rootwrap-xen-dom0", line 102, in run_command
session = XenAPI.Session(url)
File "/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 114, in __init__
verbose, allow_none)
File "/usr/lib/python2.7/xmlrpclib.py", line 1549, in __init__
raise IOError, "unsupported XML-RPC protocol"
IOError: unsupported XML-RPC protocol
Looking at the rootwrap config file, the problem becomes obvious:
$ cat /etc/quantum/rootwrap.conf
[DEFAULT]
# List of directories to load filter definitions from (separated by ',').
# These directories MUST all be only writeable by root !
filters_path=/etc/quantum/rootwrap.d
# List of directories to search executables in, in case filters do not
# explicitely specify a full path (separated by ',')
# If not specified, defaults to system PATH environment variable.
# These directories MUST all be only writeable by root !
exec_dirs=/sbin,/usr/sbin,/bin,/usr/bin
[XENAPI]
# XenAPI configuration is only required by the L2 agent if it is to
# target a XenServer/XCP compute host's dom0.
xenapi_connection_url=<None>
xenapi_connection_username=root
xenapi_connection_password=<None>
[xenapi]
xenapi_connection_password = stg
xenapi_connection_username = root
And the rootwrap is searching for the config with capital letters.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1195781/+subscriptions