← Back to team overview

openstack team mailing list archive

Fwd: Can't ping my VM after associating a floating IP address

 

Hi Sylvain,

Yes I managed to get l3-agent up and running. You were right it was a
problem of sudoers.
I didn't notice the files for cinder, quantum and nova in /etc/sudoers.d.

I still have an issue with dhcp-agent because a VM data IP address was
already taken. But
I think I can manage to solve it before I can ask for help.

I am using debian wheezy.

Thanks a lot for your help (merci beaucoup),
Amine.


On Wed, Mar 20, 2013 at 2:34 PM, Sylvain Bauza
<sylvain.bauza@xxxxxxxxxxxx>wrote:

>  You are having the exact same issue, sudo is complaining about being
> executed without a tty.
> Could you please take a look at the various links I provided to you and
> check ?
>
> Basically, you can quickly disable requiretty on sudoers and retry, to
> check if that fixes the problem.
> Which is your distro ?
> Could you please paste /etc/sudoers ?
>
> Also, please use 'sudo service quantum-XXX-agent restart' instead of 'sudo
> /etc/init.d/quantum-X-agent restart' directly.
>
> -Sylvain
>
> Le 20/03/2013 14:29, Mohammed Amine SAYA a écrit :
>
> Hi Sylvain,
>
>  Thanks for your answer.
>
>  No I am not. I am actually logged in the controller machine. I start the
> l3-agent with sudo /etc/init.d/quantum-l3-agent start.
>
>  But I took a look at /var/log/quantum/dhcp-agent.log and I got this :
> (see last log)
> Like l3-agent, it complains about some interfaces that do not exist.
>
>  Here is the result of ovs-vsctl show on both the contoller node and the
> compute node :
>
>  On the controller node which also runs as a network node:
>  8e316a78-ad43-4a0a-89ae-a6c734ef0b52
>     Bridge br-tun
>         Port "gre-1"
>             Interface "gre-1"
>                 type: gre
>                 options: {in_key=flow, out_key=flow,
> remote_ip="192.168.0.1"}
>         Port "gre-2"
>             Interface "gre-2"
>                 type: gre
>                 options: {in_key=flow, out_key=flow,
> remote_ip="192.168.0.2"}
>         Port patch-int
>             Interface patch-int
>                 type: patch
>                 options: {peer=patch-tun}
>         Port "gre-4"
>             Interface "gre-4"
>                 type: gre
>                 options: {in_key=flow, out_key=flow,
> remote_ip="192.168.1.2"}
>         Port br-tun
>             Interface br-tun
>                 type: internal
>     Bridge br-ex
>         Port "eth1"
>             Interface "eth1"
>         Port br-ex
>             Interface br-ex
>                 type: internal
>     Bridge br-int
>         Port patch-tun
>             Interface patch-tun
>                 type: patch
>                 options: {peer=patch-int}
>         Port br-int
>             Interface br-int
>                 type: internal
>     ovs_version: "1.4.5"
>
>
>
>  On the compute node :
>  6c9b615e-650b-4e80-8d53-233c90eed49e
>     Bridge br-int
>         Port br-int
>             Interface br-int
>                 type: internal
>         Port patch-tun
>             Interface patch-tun
>                 type: patch
>                 options: {peer=patch-int}
>         Port "qvof1e2c3c0-bc"
>             tag: 1
>             Interface "qvof1e2c3c0-bc"
>     Bridge br-tun
>         Port "gre-2"
>             Interface "gre-2"
>                 type: gre
>                 options: {in_key=flow, out_key=flow,
> remote_ip="192.168.0.2"}
>         Port "gre-1"
>             Interface "gre-1"
>                 type: gre
>                 options: {in_key=flow, out_key=flow,
> remote_ip="192.168.0.1"}
>         Port patch-int
>             Interface patch-int
>                 type: patch
>                 options: {peer=patch-tun}
>         Port "gre-3"
>             Interface "gre-3"
>                 type: gre
>                 options: {in_key=flow, out_key=flow,
> remote_ip="192.168.1.1"}
>         Port br-tun
>             Interface br-tun
>                 type: internal
>     ovs_version: "1.4.5"
>
>
>
>
>
>   2013-03-20 14:22:47    DEBUG [quantum.openstack.common.rpc.amqp] Making
> asynchronous call on q-plugin ...
> 2013-03-20 14:22:47    DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is
> 1d5a7c943a1845d3837f9bc4d6d72590
> 2013-03-20 14:22:47    DEBUG [amqplib] Closed channel #1
> 2013-03-20 14:22:47    DEBUG [amqplib] using channel_id: 1
> 2013-03-20 14:22:47    DEBUG [amqplib] Channel open
> 2013-03-20 14:23:17     INFO [quantum.agent.dhcp_agent] Synchronizing state
> 2013-03-20 14:23:17    DEBUG [quantum.openstack.common.rpc.amqp] Making
> asynchronous call on q-plugin ...
> 2013-03-20 14:23:17    DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is
> 910cccbade364f5cba63eb787db731e3
> 2013-03-20 14:23:17    DEBUG [amqplib] Closed channel #1
> 2013-03-20 14:23:17    DEBUG [amqplib] using channel_id: 1
> 2013-03-20 14:23:17    DEBUG [amqplib] Channel open
> 2013-03-20 14:23:17    DEBUG [quantum.openstack.common.rpc.amqp] Making
> asynchronous call on q-plugin ...
> 2013-03-20 14:23:17    DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is
> e26dc4c782954d349462c7b237755b89
> 2013-03-20 14:23:17    DEBUG [amqplib] Closed channel #1
> 2013-03-20 14:23:17    DEBUG [amqplib] using channel_id: 1
> 2013-03-20 14:23:17    DEBUG [amqplib] Channel open
> 2013-03-20 14:23:17    DEBUG [quantum.openstack.common.rpc.amqp] Making
> asynchronous call on q-plugin ...
> 2013-03-20 14:23:17    DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is
> 185e0f3426d242ea9188582e0d09b2b3
> 2013-03-20 14:23:17    DEBUG [amqplib] Closed channel #1
> 2013-03-20 14:23:17    DEBUG [amqplib] using channel_id: 1
> 2013-03-20 14:23:17    DEBUG [amqplib] Channel open
> 2013-03-20 14:23:17    DEBUG [quantum.agent.linux.utils] Running command:
> ip -o link show tap8d6cc6c4-d1
> 2013-03-20 14:23:17    DEBUG [quantum.agent.linux.utils]
> Command: ['ip', '-o', 'link', 'show', 'tap8d6cc6c4-d1']
> Exit code: 1
> Stdout: ''
> Stderr: 'Device "tap8d6cc6c4-d1" does not exist.\n'
> 2013-03-20 14:23:17    DEBUG [quantum.agent.linux.utils] Running command:
> ip -o link show br-int
> 2013-03-20 14:23:17    DEBUG [quantum.agent.linux.utils]
> Command: ['ip', '-o', 'link', 'show', 'br-int']
> Exit code: 0
> Stdout: '5: br-int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
> mode DEFAULT \\    link/ether 16:cc:49:e1:d2:4c brd ff:ff:ff:ff:ff:ff\n'
> Stderr: ''
> 2013-03-20 14:23:17    DEBUG [quantum.agent.linux.utils] Running command:
> ip -o link show tap8d6cc6c4-d1
> 2013-03-20 14:23:17    DEBUG [quantum.agent.linux.utils]
> Command: ['ip', '-o', 'link', 'show', 'tap8d6cc6c4-d1']
> Exit code: 1
> Stdout: ''
> Stderr: 'Device "tap8d6cc6c4-d1" does not exist.\n'
>  2013-03-20 14:23:17    DEBUG [quantum.agent.linux.utils] Running
> command: sudo /usr/bin/quantum-rootwrap /etc/quantum/rootwrap.conf
> ovs-vsctl -- --may-exist add-port br-int tap8d6cc6c4-d1 -- set Interface
> tap8d6cc6c4-d1 type=internal -- set Interface tap8d6cc6c4-d1
> external-ids:iface-id=8d6cc6c4-d1f3-41bf-975f-a9c07c5e5834 -- set Interface
> tap8d6cc6c4-d1 external-ids:iface-status=active -- set Interface
> tap8d6cc6c4-d1 external-ids:attached-mac=fa:16:3e:b1:8d:b1
> 2013-03-20 14:23:17    DEBUG [quantum.agent.linux.utils]
> Command: ['sudo', '/usr/bin/quantum-rootwrap',
> '/etc/quantum/rootwrap.conf', 'ovs-vsctl', '--', '--may-exist', 'add-port',
> 'br-int', 'tap8d6cc6c4-d1', '--', 'set', 'Interface', 'tap8d6cc6c4-d1',
> 'type=internal', '--', 'set', 'Interface', 'tap8d6cc6c4-d1',
> 'external-ids:iface-id=8d6cc6c4-d1f3-41bf-975f-a9c07c5e5834', '--', 'set',
> 'Interface', 'tap8d6cc6c4-d1', 'external-ids:iface-status=active', '--',
> 'set', 'Interface', 'tap8d6cc6c4-d1',
> 'external-ids:attached-mac=fa:16:3e:b1:8d:b1']
> Exit code: 1
> Stdout: ''
> Stderr: 'sudo: no tty present and no askpass program specified\n'
> 2013-03-20 14:23:17    ERROR [quantum.agent.dhcp_agent] Unable to enable
> dhcp.
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
> line 91, in call_driver
>     getattr(driver, action)()
>   File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/dhcp.py",
> line 108, in enable
>     reuse_existing=True)
>   File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
> line 436, in setup
>     namespace=namespace)
>   File
> "/usr/lib/python2.7/dist-packages/quantum/agent/linux/interface.py", line
> 137, in plug
>     self._ovs_add_port(bridge, device_name, port_id, mac_address)
>   File
> "/usr/lib/python2.7/dist-packages/quantum/agent/linux/interface.py", line
> 123, in _ovs_add_port
>     utils.execute(cmd, self.conf.root_helper)
>   File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/utils.py",
> line 63, in execute
>     raise RuntimeError(m)
> RuntimeError:
> Command: ['sudo', '/usr/bin/quantum-rootwrap',
> '/etc/quantum/rootwrap.conf', 'ovs-vsctl', '--', '--may-exist', 'add-port',
> 'br-int', 'tap8d6cc6c4-d1', '--', 'set', 'Interface', 'tap8d6cc6c4-d1',
> 'type=internal', '--', 'set', 'Interface', 'tap8d6cc6c4-d1',
> 'external-ids:iface-id=8d6cc6c4-d1f3-41bf-975f-a9c07c5e5834', '--', 'set',
> 'Interface', 'tap8d6cc6c4-d1', 'external-ids:iface-status=active', '--',
> 'set', 'Interface', 'tap8d6cc6c4-d1',
> 'external-ids:attached-mac=fa:16:3e:b1:8d:b1']
> Exit code: 1
> Stdout: ''
> Stderr: 'sudo: no tty present and no askpass program specified\n'
> 2013-03-20 14:23:17    DEBUG [quantum.openstack.common.rpc.amqp] Making
> asynchronous call on q-plugin ...
> 2013-03-20 14:23:17    DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is
> d341e9c13c294c628f75de229e0c6674
> 2013-03-20 14:23:17    DEBUG [amqplib] Closed channel #1
> 2013-03-20 14:23:17    DEBUG [amqplib] using channel_id: 1
> 2013-03-20 14:23:17    DEBUG [amqplib] Channel open
>
>
>  Thanks for your help,
> Amine.
>
>
>  On Wed, Mar 20, 2013 at 2:15 PM, Sylvain Bauza <
> sylvain.bauza@xxxxxxxxxxxx> wrote:
>
>> Le 20/03/2013 13:24, Mohammed Amine SAYA a écrit :
>>
>>> RuntimeError:
>>> Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf',
>>> 'ovs-vsctl', '--', '--may-exist', 'add-port', 'br-ex', 'qg-32dd6c6b-b6',
>>> '--', 'set', 'Interface', 'qg-32dd6c6b-b6', 'type=internal', '--', 'set',
>>> 'Interface', 'qg-32dd6c6b-b6',
>>> 'external-ids:iface-id=32dd6c6b-b6e8-4dff-b0db-3d804805c4e4', '--', 'set',
>>> 'Interface', 'qg-32dd6c6b-b6', 'external-ids:iface-status=active', '--',
>>> 'set', 'Interface', 'qg-32dd6c6b-b6',
>>> 'external-ids:attached-mac=fa:16:3e:6f:1b:81']
>>> Exit code: 1
>>> Stdout: ''
>>> Stderr: 'sudo: no tty present and no askpass program specified\n'
>>>
>>
>> The answer is here :
>> http://www.lmgtfy.com/?q=sudo%3A+no+tty+present+and+no+askpass+program+specified
>>
>> Are you trying to start the L3 agent thru ssh ?
>>
>> -Sylvain
>>
>>
>
>

References