[Openstack-operators] Quantum Gateway Interfaces Problem

Lorin Hochstein lorin at nimbisservices.com
Mon Jun 24 14:42:10 UTC 2013


Hi Ricardo:

I have not deployed quantum, but looking at your error message:

*RuntimeError:**
**Command: ['sudo', 'ip', 'netns', 'exec',
'qdhcp-308fa2d9-d600-462e-b09a-be007cb8a6e8', 'quantum-ns-metadata-proxy',
'--pid_file=/var/lib/quantum/external/pids/308fa2d9-d600-462e-b09a-be007cb8a6e8.pid',
'--network_id=308fa2d9-d600-462e-b09a-be007cb8a6e8',
'--state_path=/var/lib/quantum', '--metadata_port=80',
'--log-file=quantum-ns-metadata-proxy308fa2d9-d600-462e-b09a-be007cb8a6e8.log',
'--log-dir=/var/log/quantum']**
**Exit code: 1**
**Stdout: ''**
**Stderr: 'sudo: no tty present and no askpass program specified\nSorry,
try again.\nsudo: no tty present and no askpass program specified\nSorry,
try again.\nsudo: no tty present and no askpass program specified\nSorry,
try again.\nsudo: 3 incorrect password attempts\n'**
**Waiting for data... (interrupt to abort)*

I would guess it has to do with the sudo configuration on your system.
Typically, when quantum is installed it uses a special program called
"quantum-rootwrap" for sudoing, e.g.:

sudo quantum-rootwrap ip netns exec ...


Typically, when you install OpenStack from packages, it will configure sudo
(/etc/sudoers or /etc/sudoers.d) to allow quantum-rootwrap to do
passwordless sudo for commands needed by OpenStack.

See the docstring here:
https://github.com/openstack/quantum/blob/stable/grizzly/bin/quantum-rootwrap

How did you install quantum?

Lorin



On Mon, Jun 17, 2013 at 9:55 AM, Ricardo Contreras <rcontreras1989 at gmail.com
> wrote:

>  Hi everyone!
> I'm having a problem with Quantum and my recent installation of Grizzly on
> Ubuntu 12.04.
>
> I have this Network topology:
>
>
>
>
> The Virtual Machine "Testing" take correctly the IP Address on the Network
> that it was created. The problem here is that the Router doesn't take the
> IP Address of the Subnet (In this case is 10.0.1.1 and 10.0.2.1). If I
> check the logs of Quantum, I found this errors on dhcp-agent.log:
>
>
> *Command: ['sudo', 'ip', 'netns', 'exec',
> 'qdhcp-308fa2d9-d600-462e-b09a-be007cb8a6e8', 'quantum-ns-metadata-proxy',
> '--pid_file=/var/lib/quantum/external/pids/308fa2d9-d600-462e-b09a-be007cb8a6e8.pid',
> '--network_id=308fa2d9-d600-462e-b09a-be007cb8a6e8',
> '--state_path=/var/lib/quantum', '--metadata_port=80',
> '--log-file=quantum-ns-metadata-proxy308fa2d9-d600-462e-b09a-be007cb8a6e8.log',
> '--log-dir=/var/log/quantum']**
> **Exit code: 1**
> **Stdout: ''**
> **Stderr: 'sudo: no tty present and no askpass program specified\nSorry,
> try again.\nsudo: no tty present and no askpass program specified\nSorry,
> try again.\nsudo: no tty present and no askpass program specified\nSorry,
> try again.\nsudo: 3 incorrect password attempts\n'**
> **2013-06-17 09:51:59    ERROR [quantum.agent.dhcp_agent] Unable to sync
> network state.**
> **Traceback (most recent call last):**
> **  File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
> line 155, in sync_state**
> **    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-308fa2d9-d600-462e-b09a-be007cb8a6e8', 'quantum-ns-metadata-proxy',
> '--pid_file=/var/lib/quantum/external/pids/308fa2d9-d600-462e-b09a-be007cb8a6e8.pid',
> '--network_id=308fa2d9-d600-462e-b09a-be007cb8a6e8',
> '--state_path=/var/lib/quantum', '--metadata_port=80',
> '--log-file=quantum-ns-metadata-proxy308fa2d9-d600-462e-b09a-be007cb8a6e8.log',
> '--log-dir=/var/log/quantum']**
> **Exit code: 1**
> **Stdout: ''**
> **Stderr: 'sudo: no tty present and no askpass program specified\nSorry,
> try again.\nsudo: no tty present and no askpass program specified\nSorry,
> try again.\nsudo: no tty present and no askpass program specified\nSorry,
> try again.\nsudo: 3 incorrect password attempts\n'**
> **Waiting for data... (interrupt to abort)*
>
>
> It repeats several time (when I start up Quantum or when I create a new
> virtual machine). If I try to do a ping to the "Gateway" address, it
> doesn't response.
> On Quantum, the Gateways Interface are down:
>
>
>
> On Google, I see some similar errors, but not a real solution.
>
> Someone had this issue? How it was resolved?
>
> Thanks!
> Ricardo
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
>


-- 
Lorin Hochstein
Lead Architect - Cloud Services
Nimbis Services, Inc.
www.nimbisservices.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20130624/43b43b81/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hbfhaigg.png
Type: image/png
Size: 29400 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20130624/43b43b81/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: idfaegca.png
Type: image/png
Size: 29485 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20130624/43b43b81/attachment-0001.png>


More information about the OpenStack-operators mailing list