yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #04273
[Bug 1175179] Re: DHCP agent creation reports error !
[Expired for neutron because there has been no activity for 60 days.]
** Changed in: neutron
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1175179
Title:
DHCP agent creation reports error !
Status in OpenStack Neutron (virtual network service):
Expired
Bug description:
Hi,
I am running OpenStack Grizzly on ubuntu 13.04 server !
My problem is when i create a private subnet inside a tenant network,
i see this in /var/log/quantum/dhcp-agent.log
=============
2013-05-01 16:12:17 ERROR [quantum.openstack.common.rpc.amqp] Exception during message handling
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/amqp.py", line 430, in _process_data
rval = self.proxy.dispatch(ctxt, version, method, **args)
File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/dispatcher.py", line 133, in dispatch
return getattr(proxyobj, method)(ctxt, **kwargs)
File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/lockutils.py", line 242, in inner
retval = f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py", line 254, in subnet_update_end
self.refresh_dhcp_helper(network_id)
File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py", line 209, in refresh_dhcp_helper
return self.enable_dhcp_helper(network_id)
File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py", line 188, in enable_dhcp_helper
self.enable_isolated_metadata_proxy(network)
File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py", line 329, in enable_isolated_metadata_proxy
pm.enable(callback)
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/external_process.py", line 55, in enable
ip_wrapper.netns.execute(cmd)
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py", line 407, in execute
check_exit_code=check_exit_code)
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/utils.py", line 61, in execute
raise RuntimeError(m)
RuntimeError:
Command: ['sudo', 'ip', 'netns', 'exec', 'qdhcp-370e464a-9d13-4361-a0ec-915846d5bee1', 'quantum-ns-metadata-proxy', '--pid_file=/var/lib/quantum/external/pids/370e464a-9d13-4361-a0ec-915846d5bee1.pid', '--network_id=370e464a-9d13-4361-a0ec-915846d5bee1', '--state_path=/var/lib/quantum', '--metadata_port=80', '--log-file=quantum-ns-metadata-proxy370e464a-9d13-4361-a0ec-915846d5bee1.log', '--log-dir=/var/log/quantum']
Exit code: 1
Stdout: ''
Stderr: "sudo: no tty present and no askpass program specified\nSorry, user quantum is not allowed to execute '/sbin/ip netns exec qdhcp-370e464a-9d13-4361-a0ec-915846d5bee1 quantum-ns-metadata-proxy --pid_file=/var/lib/quantum/external/pids/370e464a-9d13-4361-a0ec-915846d5bee1.pid --network_id=370e464a-9d13-4361-a0ec-915846d5bee1 --state_path=/var/lib/quantum --metadata_port=80 --log-file=quantum-ns-metadata-proxy370e464a-9d13-4361-a0ec-915846d5bee1.log --log-dir=/var/log/quantum' as root on node-f01.\n"
===============
You see it's obvious that there isn't enough priviliges in the quantum
rootwrap ! and i don't think using sudo directly is a good idea ! can
you elaborate on this and help me fix the problem please ?
Kind regards
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1175179/+subscriptions