Cannot create a port named gre-3 because a port named gre-3 already exists on bridge br-tun

asked 2013-10-09 23:27:36 -0500

sngirame gravatar image

updated 2013-10-10 07:09:47 -0500

I have 3 node setup , each node having 2 NICs & I am not able to ping/ssh to instances (security group rules are created)

  • controller private ip 10.211.20.50/ public ip XX.XXX.111.31
  • network private ip 10.211.20.51/ public ip XX.XXX.111.32
  • compute private ip 10.211.20.52/ public ip XX.XXX.111.33

On compute node 'openvswitch-agent.log' shows an error

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

Here are the details from database

mysql> select * from ovs_tunnel_endpoints;
+--------------+----+
| ip_address   | id |
+--------------+----+
| 10.211.20.51 |  3 |
| 10.211.20.52 |  2 |
+--------------+----+
2 rows in set (0.00 sec)

mysql> select * from ovs_network_bindings;
+--------------------------------------+--------------+------------------+-----------------+
| network_id                           | network_type | physical_network | segmentation_id |
+--------------------------------------+--------------+------------------+-----------------+
| c861b1ba-6e94-4827-bacf-e6b5da6bf435 | gre          | NULL             |               1 |
+--------------------------------------+--------------+------------------+-----------------+
1 row in set (0.00 sec)

mysql> select * from ovs_tunnel_allocations where allocated != 0;
+-----------+-----------+  
| tunnel_id | allocated |
+-----------+-----------+
|         1 |         1 |
+-----------+-----------+
1 row in set (0.00 sec)

Please let me know what am i missing.

edit retag flag offensive close delete

Comments

Are the instances getting IP addresses from dhcp?

darragh-oreilly ( 2013-10-10 01:11:11 -0500 )edit

yes...instances are getting an ip

sngirame ( 2013-10-10 06:02:55 -0500 )edit

that means the tunnel and ovs-agents are ok - the error is just a side effect of yesterday's problem. So you are trying to ping the floating IP? Try pinging from the dhcp IP namespace too.

darragh-oreilly ( 2013-10-10 07:13:26 -0500 )edit

Your agent-list is ok? # quantum agent-list

marcelodieder ( 2013-10-10 08:56:56 -0500 )edit

@darragh-oreilly I am trying to ping the instance IP that got it through DHCP ...I have also tried pinging using ip netns command. I am able to ping to the router only from network node but not from other nodes and even from outside. While the instance IPis not ping-able from anywhere. @marcelodieder executing #quantum agent-list giving an error Unknown command ['agent-list']

sngirame ( 2013-10-10 09:49:35 -0500 )edit