[Openstack] VMs won't ping

Joshua Skains Joshua.Skains at evault.com
Fri Aug 30 14:59:50 UTC 2013


This is where I am concerned something is broke with Quantum.

It appears it has an issue creating this br-tun using ovs-vsctl. And what I am concerned about is that the br-tun is not getting created, but it is getting a new ID in the database, so when the second part tries to attach the routers to this bridge, it is getting the wrong ID.

Any thoughts would be appreciated. I wanted to hand this cluster over to our devops team today, and this is the only hangup.

JMS


2013-08-29 15:17:48    ERROR [quantum.agent.linux.ovs_lib] Unable to execute ['ovs-vsctl', '--timeout=2', 'add-port', 'br-tun', 'gre-2']. Exception:
Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ovs-vsctl', '--timeout=2', 'add-port', 'br-tun', 'gre-2']
Exit code: 1
Stdout: ''
Stderr: 'ovs-vsctl: cannot create a port named gre-2 because a port named gre-2 already exists on bridge br-tun\n'
2013-08-29 15:51:52    ERROR [quantum.agent.linux.ovs_lib] Unable to execute ['ovs-vsctl', '--timeout=2', 'add-port', 'br-tun', 'gre-2']. Exception:
Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ovs-vsctl', '--timeout=2', 'add-port', 'br-tun', 'gre-2']
Exit code: 1
Stdout: ''
Stderr: 'ovs-vsctl: cannot create a port named gre-2 because a port named gre-2 already exists on bridge br-tun\n'
2013-08-29 16:12:38    ERROR [quantum.agent.linux.ovs_lib] Unable to execute ['ovs-vsctl', '--timeout=2', 'add-port', 'br-tun', 'gre-2']. Exception:
Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ovs-vsctl', '--timeout=2', 'add-port', 'br-tun', 'gre-2']
Exit code: 1
Stdout: ''
Stderr: 'ovs-vsctl: cannot create a port named gre-2 because a port named gre-2 already exists on bridge br-tun\n'


From: Anne Gentle <anne at openstack.org<mailto:anne at openstack.org>>
Date: Thursday, August 29, 2013 5:40 PM
To: Joshua Skains <joshua.skains at evault.com<mailto:joshua.skains at evault.com>>
Cc: Mark Lehrer <mark at knm.org<mailto:mark at knm.org>>, "Gangur, Hrushikesh (HP Converged Cloud - R&D - Sunnyvale)" <hrushikesh.gangur at hp.com<mailto:hrushikesh.gangur at hp.com>>, "openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>" <openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>>
Subject: Re: [Openstack] VMs won't ping

Not sure if this is quite it, but check the /etc/sudoers.d/quantum-sudoers shipped with Ubuntu 12.04.

/etc/sudoers.d/quantum_sudoers:quantum ALL = (root) NOPASSWD: /usr/bin/quantum-rootwrap

In /etc/quantum/quantum.conf it needs a matching setting for the root_helper, such as:

root_helper = sudo /usr/bin/quantum-rootwrap /etc/quantum/rootwrap.conf

The pathname needs to match in both places. Also check dhcp_agent.ini and l3_agent.ini.

I couldn't find a related packaging bug but others following the docs have run into this on ubuntu.

Anne


On Thu, Aug 29, 2013 at 5:37 PM, Joshua Skains <Joshua.Skains at evault.com<mailto:Joshua.Skains at evault.com>> wrote:
I can get a VM up. It seems to talk to the MetaData server. But I can not
ping the VM, even after adding a floating IP.

I don't see any errors until I look at l3agent logs.

2013-08-29 16:34:21    ERROR [quantum.agent.l3_agent] Failed synchronizing
routers
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line
638, in _sync_routers_task
    self._process_routers(routers, all_routers=True)
  File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line
621, in _process_routers
    self.process_router(ri)
  File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line
319, in process_router
    self.external_gateway_added(ri, ex_gw_port, internal_cidrs)
  File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line
410, in external_gateway_added
    prefix=EXTERNAL_DEV_PREFIX)
  File
"/usr/lib/python2.7/dist-packages/quantum/agent/linux/interface.py", line
181, in plug
    ns_dev.link.set_address(mac_address)
  File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py",
line 180, in set_address
    self._as_root('set', self.name<http://self.name>, 'address', mac_address)
  File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py",
line 167, in _as_root
    kwargs.get('use_root_namespace', False))
  File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py",
line 47, in _as_root
    namespace)
  File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py",
line 58, in _execute
    root_helper=root_helper)
  File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/utils.py",
line 61, in execute
    raise RuntimeError(m)
RuntimeError:
Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ip',
'link', 'set', 'qg-ab8f0290-7b', 'address', 'fa:16:3e:93:37:c6']
Exit code: 1
Stdout: ''



It bangs this error out rather extensively every minute.

Any help is greatly appreciated.


_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130830/28424417/attachment.html>


More information about the Openstack mailing list