Ask Your Question
0

neutron OVS bridge interface not pinging to Gateway & instances not getting DHCP IP

asked 2014-04-03 07:43:18 -0500

asekaran gravatar image

updated 2014-04-04 05:06:18 -0500

Hi,

I have installed with 1 controller, compute, neutron with OVS single flat network.

Issue : When i assign ipaddress to bridge it is not pinging to the router/gateway. Also if i create instance it is not able to get DHCP ipaddress and VM not able to reach outside.

Have cross verified all the configuration all seems good.

Can you please let me know what is the reason it is failing!!!..

Compute 1 : Logs

Openvswitch-agent.log

2014-04-01 12:00:38.217 30056 ERROR neutron.agent.linux.ovs_lib [-] Unable to execute ['ovs-vsctl', '--timeout=2', '--format=json', '--', '--columns=name,external_ids', 'list', 'Interface']. Exception: Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeout=2', '--format=json', '--', '--columns=name,external_ids', 'list', 'Interface'] Exit code: 1 Stdout: '' Stderr: '2014-04-01T06:30:38Z|00001|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)\novs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)\n' 2014-04-01 12:00:38.624 30056 ERROR neutron.agent.linux.ovs_lib [-] Unable to execute ['ovs-ofctl', 'del-flows', 'br-int', 'in_port=5,dl_vlan=1']. Exception: Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-ofctl', 'del-flows', 'br-int', 'in_port=5,dl_vlan=1'] Exit code: 1 Stdout: '' Stderr: 'ovs-ofctl: br-int is not a bridge or a socket\n'

Ovs-ctl.log

root@compute1:/var/log/openvswitch# tail ovs-ctl.log * Enabling remote OVSDB managers Tue Apr 1 06:30:37 UTC 2014:stop * Killing ovs-vswitchd (23863) * Killing ovsdb-server (23854) Tue Apr 1 06:30:38 UTC 2014:load-kmod Tue Apr 1 06:30:38 UTC 2014:start --system-id=random * Starting ovsdb-server * Configuring Open vSwitch system IDs * Starting ovs-vswitchd * Enabling remote OVSDB managers

Ovs-vswitchd.log

root@compute1:/var/log/openvswitch# tail ovs-vswitchd.log 2014-04-01T07:03:19Z|00124|netdev_linux|WARN|ethtool command ETHTOOL_GFLAGS on network device tap82f2e500-ab failed: No such device 2014-04-01T07:03:19Z|00125|netdev_linux|WARN|ethtool command ETHTOOL_GFLAGS on network device tapd50d38a4-c8 failed: No such device 2014-04-01T07:03:19Z|00126|netdev_linux|WARN|ethtool command ETHTOOL_GFLAGS on network device tap7b2400d0-01 failed: No such device 2014-04-01T07:03:19Z|00127|netdev_linux|WARN|ethtool command ETHTOOL_GFLAGS on network device tapd8df9162-d5 failed: No such device 2014-04-01T07:03:19Z|00128|netdev_linux|WARN|ethtool command ETHTOOL_GFLAGS on network device tap73f0c572-da failed: No such device 2014-04-01T07:03:19Z|00129|netdev_linux|WARN|ethtool command ETHTOOL_GFLAGS on network device tap3fd13794-33 failed: No such device 2014-04-01T07:03:19Z|00130|netdev_linux|WARN|ethtool command ETHTOOL_GFLAGS on network device int-br-eth01 failed: No such device 2014-04-01T07:03:19Z|00131|netdev_linux|WARN|ethtool command ETHTOOL_GFLAGS on network device tapec6cb69f-4d failed: No such device 2014-04-01T07:03:19Z|00132|netdev_linux|WARN|ethtool command ETHTOOL_GFLAGS on network device tap57c6ff29-c7 failed: No such device 2014-04-01T07:03:30Z|00133|ofproto|INFO|br-int: 3 flow_mods 10 s ago (2 adds, 1 deletes)

Controller:- (10.37.39.38)

Server.log

2014-04-01 12:31:13.406 31199 WARNING neutron.openstack.common.notifier.rabbit_notifier [-] Deprecated: The rabbit_notifier is now deprecated. Please use rpc_notifier instead. 2014-04-01 12:31:13.432 31199 WARNING neutron.db.agentschedulers_db [-] Fail scheduling network {'status': u'ACTIVE ... (more)

edit retag flag offensive close merge delete

Comments

Also have found OVS status below...

root@compute1:/var/log# ovs-ofctl show br-eth1 OFPT_FEATURES_REPLY (xid=0x2): dpid:0000e41f13b6adaa n_tables:254, n_buffers:256 capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE 1(eth1): addr:e4:1f:13:b6:ad:aa config: PORT_DOWN state: LINK_DOWN current: COPPER AUTO_NEG advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-FD AUTO_NEG supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-FD COPPER AUTO_NEG speed: 0 Mbps now, 1000 Mbps max LOCAL(br-eth1): addr:e4:1f:13:b6:ad:aa config: 0 state: 0 speed: 0 Mbps now, 0 Mbps max OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0

asekaran gravatar imageasekaran ( 2014-04-04 05:06:53 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-04 06:48:00 -0500

pawankkamboj gravatar image

Share result of below command neutron net-list neutron router-list neutron subnet-list neutron port-list ovs-vsctl show ip netns list

Check if router is associate with internal network and also with external subnet.

edit flag offensive delete link more

Comments

root@neutron:/var/log# neutron net-list +--------------------------------------+------------+----------------------------------------------------+ | id | name | subnets | +--------------------------------------+------------+----------------------------------------------------+ | 8b9ba025-df0b-4340-992c-0c50c8e07c2e | sharednet1 | 52c2e356-4140-49ec-a1e3-627a1b727b16 10.37.95.0/24 | +--------------------------------------+------------+----------------------------------------------------+ root@neutron:/var/log# neutron router-list

root@neutron:/var/log# neutron subnet-list +--------------------------------------+------+---------------+------------------------------------------------+ | id | name | cidr | allocation_pools | +--------------------------------------+------+---------------+------------------------------------------------+ | 52c2e356-4140-49ec-a1e3-627a1b727b16 | | 10.37.95.0/24 | {"start": "10.37.95.2", "end": "10.37.95.254"} | +--------------------------------------+------+---------------+------------------------------------------------+ root@neutron:/var/log# neutron port-list +--------------------------------------+------+-------------------+-----------------------------------------------------------------------------------+ | id | name | mac_address | fixed_ips | +--------------------------------------+------+-------------------+-----------------------------------------------------------------------------------+ | 00e7e594-05e7-4948-92b0-b7ac43dcbc92 | | fa:16:3e:c1:95:9d | {"subnet_id": "52c2e356-4140-49ec-a1e3-627a1b727b16", "ip_address": "10.37.95.2"} | | 0c41565e-41fe-4bbf-944a-9ee00bacafed | | fa:16:3e:6a:15:88 | {"subnet_id": "52c2e356-4140-49ec-a1e3-627a1b727b16", "ip_address": "10.37.95.4"} | | 55ca5cef-27e9-45b8-b55c-6b39b09981b1 | | fa:16:3e:cd:b9:88 | {"subnet_id": "52c2e356-4140-49ec-a1e3-627a1b727b16", "ip_address": "10.37.95.3"} | | ef74c86d-c090-4bbb-aa38-e0f99e4aacf6 | | fa:16:3e:1b:7b:fd | {"subnet_id": "52c2e356-4140-49ec-a1e3-627a1b727b16", "ip_address": "10.37.95.5"} | +--------------------------------------+------+-------------------+-----------------------------------------------------------------------------------+ root@neutron:/var/log#

root@neutron:/var/log# ovs-vsctl show ba06b486-9305-4c82-9f9d-188ec2b3fd6a Bridge br-int Port "tap55ca5cef-27" tag: 1 Interface "tap55ca5cef-27" type: internal Port "int-br-eth1" Interface "int-br-eth1" Port br-int Interface br-int type: internal Bridge "br-eth1" Port "br-eth1 ...(more)

asekaran gravatar imageasekaran ( 2014-04-04 09:34:18 -0500 )edit

neutron router-list is not visible, please share and also verify if u had run below command to bind sub-net with router.

#neutron router-interface-add router1 subnet1 // client to link the newly created router to the sub-net

pawankkamboj gravatar imagepawankkamboj ( 2014-04-05 10:37:10 -0500 )edit

Hi,

I have linked the newly created router to the subnet and copied below. Still VM not able to get ipaddress.

Please note : Unable to reach default gateway of the router from Neutron and Compute. While I could able to reach bridge network for the same node.

root@neutron:~# neutron router-list +--------------------------------------+------+-----------------------------------------------------------------------------+ | id | name | external_gateway_info | +--------------------------------------+------+-----------------------------------------------------------------------------+ | a737b513-d689-442f-881b-0bc7df672df7 | test | {"network_id": "8b9ba025-df0b-4340-992c-0c50c8e07c2e", "enable_snat": true} | +--------------------------------------+------+-----------------------------------------------------------------------------+

root@neutron:~# neutron router-show test +-----------------------+-----------------------------------------------------------------------------+ | Field | Value | +-----------------------+-----------------------------------------------------------------------------+ | admin_state_up | True | | external_gateway_info | {"network_id": "8b9ba025-df0b-4340-992c-0c50c8e07c2e", "enable_snat": true} | | id | a737b513-d689-442f-881b-0bc7df672df7 | | name | test | | routes | | | status | ACTIVE | | tenant_id | 2a0b0a308bbd4516a9875906c1baf897 | +-----------------------+-----------------------------------------------------------------------------+

Thanks,

asekaran gravatar imageasekaran ( 2014-04-07 01:12:32 -0500 )edit

I have added OVS bridge name as br-eth1, is that mandatory that it should named as br-ex?

asekaran gravatar imageasekaran ( 2014-04-07 01:59:24 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-04-03 07:43:18 -0500

Seen: 2,566 times

Last updated: Apr 04 '14