[Openstack] Cannot ping tenant router

Jose Manuel Ferrer Mosteiro jmferrer.paradigmatecnologico at gmail.com
Wed Jul 8 07:33:17 UTC 2015


Hi

This is my first message. I'm trying to install openstack basic 
environment on vmware virtual machines. If it works I will try to 
install it in physical machines.

I have followed the "Openstack installation guide for ubuntu 14.04" but 
when I try to ping the tenant router gateway 
(http://docs.openstack.org/juno/install-guide/install/apt/content/neutron_initial-networks-verify.html) 
it does not work.

The external network interface is br-vlan :
+++
# OpenStack Networking VLAN bridge
auto br-vlan
     iface br-vlan inet manual
     bridge_stp off
     bridge_waitport 0
     bridge_fd 0
     # Bridge port references untagged interface
     bridge_ports eth2
+++

Before creating networks this is the configuration of openvswitch in 
network node:
+++
root at openstack-network:~# ovs-vsctl show
4c8ae948-9661-4094-ae4f-48b7dc916be3
     Bridge br-int
         fail_mode: secure
         Port int-br-vlan
             Interface int-br-vlan
                 type: patch
                 options: {peer=phy-br-vlan}
         Port br-int
             Interface br-int
                 type: internal
         Port patch-tun
             Interface patch-tun
                 type: patch
                 options: {peer=patch-int}
     Bridge br-vlan
         Port br-vlan
             Interface br-vlan
                 type: internal
         Port phy-br-vlan
             Interface phy-br-vlan
                 type: patch
                 options: {peer=int-br-vlan}
     Bridge br-tun
         fail_mode: secure
         Port "gre-0a0b2105"
             Interface "gre-0a0b2105"
                 type: gre
                 options: {df_default="true", in_key=flow, 
local_ip="10.11.33.2", out_key=flow, remote_ip="10.11.33.5"}
         Port br-tun
             Interface br-tun
                 type: internal
         Port patch-int
             Interface patch-int
                 type: patch
                 options: {peer=patch-tun}
     ovs_version: "2.0.2"
root at openstack-network:~#
+++

In controller I begin with nothing:
+++
root at openstack-controller:~# neutron net-list

root at openstack-controller:~# neutron subnet-list

root at openstack-controller:~# neutron router-list

root at openstack-controller:~#
+++

Creating external net:
+++
root at openstack-controller:~# neutron net-create ext-net 
--router:external True --provider:physical_network external 
--provider:network_type flat
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 432e632b-3b44-4aef-be75-ac463aa10568 |
| name                      | ext-net                              |
| provider:network_type     | flat                                 |
| provider:physical_network | external                             |
| provider:segmentation_id  |                                      |
| router:external           | True                                 |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tenant_id                 | a677265953784079af424a389a0d5c2d     |
+---------------------------+--------------------------------------+
root at openstack-controller:~#
+++
Created external subnet:
+++
root at openstack-controller:~# neutron subnet-create ext-net --name 
ext-subnet --allocation-pool start=192.168.32.21,end=192.168.32.42 
--disable-dhcp --gateway 192.168.32.1 192.168.32.0/24
Created a new subnet:
+-------------------+----------------------------------------------------+
| Field             | Value                                              
|
+-------------------+----------------------------------------------------+
| allocation_pools  | {"start": "192.168.32.21", "end": "192.168.32.42"} 
|
| cidr              | 192.168.32.0/24                                    
|
| dns_nameservers   |                                                    
|
| enable_dhcp       | False                                              
|
| gateway_ip        | 192.168.32.1                                       
|
| host_routes       |                                                    
|
| id                | b68541b3-bf57-472d-a095-fb186596a06d               
|
| ip_version        | 4                                                  
|
| ipv6_address_mode |                                                    
|
| ipv6_ra_mode      |                                                    
|
| name              | ext-subnet                                         
|
| network_id        | 432e632b-3b44-4aef-be75-ac463aa10568               
|
| tenant_id         | a677265953784079af424a389a0d5c2d                   
|
+-------------------+----------------------------------------------------+
root at openstack-controller:~#
+++
Creating demo-net:
+++
root at openstack-controller:~# neutron net-create demo-net
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | aaaa9aca-9b1d-4e01-aed7-fa08bff14978 |
| name                      | demo-net                             |
| provider:network_type     | gre                                  |
| provider:physical_network |                                      |
| provider:segmentation_id  | 1                                    |
| router:external           | False                                |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tenant_id                 | a677265953784079af424a389a0d5c2d     |
+---------------------------+--------------------------------------+
root at openstack-controller:~#
+++
Creating demo subnet:
+++
root at openstack-controller:~# neutron subnet-create demo-net --name 
demo-subnet --gateway 192.168.1.1 192.168.1.0/24
Created a new subnet:
+-------------------+--------------------------------------------------+
| Field             | Value                                            |
+-------------------+--------------------------------------------------+
| allocation_pools  | {"start": "192.168.1.2", "end": "192.168.1.254"} |
| cidr              | 192.168.1.0/24                                   |
| dns_nameservers   |                                                  |
| enable_dhcp       | True                                             |
| gateway_ip        | 192.168.1.1                                      |
| host_routes       |                                                  |
| id                | ca744930-091c-4ca7-8a00-7f50ac844124             |
| ip_version        | 4                                                |
| ipv6_address_mode |                                                  |
| ipv6_ra_mode      |                                                  |
| name              | demo-subnet                                      |
| network_id        | aaaa9aca-9b1d-4e01-aed7-fa08bff14978             |
| tenant_id         | a677265953784079af424a389a0d5c2d                 |
+-------------------+--------------------------------------------------+
root at openstack-controller:~#
+++
Creating router:
+++
root at openstack-controller:~# neutron router-create demo-router
Created a new router:
+-----------------------+--------------------------------------+
| Field                 | Value                                |
+-----------------------+--------------------------------------+
| admin_state_up        | True                                 |
| distributed           | False                                |
| external_gateway_info |                                      |
| ha                    | False                                |
| id                    | 7ae64ee9-be1a-4e5a-a24d-d594bb1cd01a |
| name                  | demo-router                          |
| routes                |                                      |
| status                | ACTIVE                               |
| tenant_id             | a677265953784079af424a389a0d5c2d     |
+-----------------------+--------------------------------------+
root at openstack-controller:~#
+++
Attaching the router to the demo tenant subnet:
+++
root at openstack-controller:~# neutron router-interface-add demo-router 
demo-subnet
Added interface bfc1e161-8e44-4205-b853-1df1adf2b294 to router 
demo-router.
root at openstack-controller:~#
+++
Logs in network node after attaching the router:
+++
Jul  8 09:14:33 openstack-network ovs-vsctl: ovs|00001|vsctl|INFO|Called 
as /usr/bin/ovs-vsctl -- --if-exists del-port qr-bfc1e161-8e -- add-port 
br-int qr-bfc1e161-8e -- set Interface qr-bfc1e161-8e type=internal -- 
set Interface qr-bfc1e161-8e 
external-ids:iface-id=bfc1e161-8e44-4205-b853-1df1adf2b294 -- set 
Interface qr-bfc1e161-8e external-ids:iface-status=active -- set 
Interface qr-bfc1e161-8e external-ids:attached-mac=fa:16:3e:bf:47:6c

==> /var/log/openvswitch/ovs-vswitchd.log <==
2015-07-08T07:14:33.163Z|00078|bridge|INFO|bridge br-int: added 
interface qr-bfc1e161-8e on port 6
2015-07-08T07:14:33.163Z|00079|dpif|WARN|system at ovs-system: failed to 
add br-vlan as port: File exists

==> /var/log/syslog <==
Jul  8 09:14:33 openstack-network kernel: [80935.837968] device 
qr-bfc1e161-8e entered promiscuous mode

==> /var/log/openvswitch/ovs-vswitchd.log <==
2015-07-08T07:14:33.398Z|00080|netdev_linux|INFO|ioctl(SIOCGIFHWADDR) on 
qr-bfc1e161-8e device failed: No such device
2015-07-08T07:14:33.751Z|00081|netdev_linux|WARN|ioctl(SIOCGIFINDEX) on 
qr-bfc1e161-8e device failed: No such device

==> /var/log/neutron/openvswitch-agent.log <==
2015-07-08 09:14:34.037 3095 INFO neutron.agent.securitygroups_rpc 
[req-a27266f9-afaf-4b3e-851b-ad0d0924dc5c None] Preparing filters for 
devices set([u'bfc1e161-8e44-4205-b853-1df1adf2b294'])
2015-07-08 09:14:34.456 3095 INFO 
neutron.plugins.openvswitch.agent.ovs_neutron_agent 
[req-a27266f9-afaf-4b3e-851b-ad0d0924dc5c None] Port 
bfc1e161-8e44-4205-b853-1df1adf2b294 updated. Details: {u'profile': {}, 
u'admin_state_up': True, u'network_id': 
u'aaaa9aca-9b1d-4e01-aed7-fa08bff14978', u'segmentation_id': 1, 
u'device_owner': u'network:router_interface', u'physical_network': None, 
u'mac_address': u'fa:16:3e:bf:47:6c', u'device': 
u'bfc1e161-8e44-4205-b853-1df1adf2b294', u'port_id': 
u'bfc1e161-8e44-4205-b853-1df1adf2b294', u'fixed_ips': [{u'subnet_id': 
u'ca744930-091c-4ca7-8a00-7f50ac844124', u'ip_address': 
u'192.168.1.1'}], u'network_type': u'gre'}
2015-07-08 09:14:34.457 3095 INFO 
neutron.plugins.openvswitch.agent.ovs_neutron_agent 
[req-a27266f9-afaf-4b3e-851b-ad0d0924dc5c None] Assigning 3 as local 
vlan for net-id=aaaa9aca-9b1d-4e01-aed7-fa08bff14978

==> /var/log/syslog <==
Jul  8 09:14:34 openstack-network ovs-vsctl: ovs|00001|vsctl|INFO|Called 
as /usr/bin/ovs-vsctl --timeout=10 set Port qr-bfc1e161-8e tag=3

==> /var/log/openvswitch/ovs-vswitchd.log <==
2015-07-08T07:14:34.674Z|00082|dpif|WARN|system at ovs-system: failed to 
add br-vlan as port: File exists
2015-07-08T07:14:34.674Z|00083|netdev_linux|WARN|qr-bfc1e161-8e: 
removing policing failed: No such device

==> /var/log/neutron/openvswitch-agent.log <==
2015-07-08 09:14:34.829 3095 INFO 
neutron.plugins.openvswitch.agent.ovs_neutron_agent 
[req-a27266f9-afaf-4b3e-851b-ad0d0924dc5c None] Configuration for device 
bfc1e161-8e44-4205-b853-1df1adf2b294 completed.

==> /var/log/syslog <==
Jul  8 09:14:37 openstack-network vmsvc[2979]: [ warning] [guestinfo] 
RecordRoutingInfo: Unable to collect IPv4 routing table.
Jul  8 09:14:37 openstack-network vmsvc[2979]: [ warning] [guestinfo] 
RecordRoutingInfo: Unable to collect IPv6 routing table.
Jul  8 09:14:37 openstack-network vmsvc[2979]: [ warning] [guestinfo] 
Failed to get nic info.

==> /var/log/openvswitch/ovs-vswitchd.log <==
2015-07-08T07:14:44.535Z|00084|ofproto|INFO|br-tun: 2 flow_mods 10 s ago 
(1 adds, 1 modifications)
2015-07-08T07:14:45.534Z|00085|ofproto|INFO|br-int: 1 flow_mods 10 s ago 
(1 deletes)

==> /var/log/syslog <==
Jul  8 09:15:01 openstack-network CRON[31521]: (root) CMD (if [ -x 
/etc/munin/plugins/apt_all ]; then munin-run apt_all update 7200 12 
 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then munin-run apt update 7200 12 >/dev/null; fi)
Jul  8 09:15:07 openstack-network vmsvc[2979]: [ warning] [guestinfo] 
RecordRoutingInfo: Unable to collect IPv4 routing table.
Jul  8 09:15:07 openstack-network vmsvc[2979]: [ warning] [guestinfo] 
RecordRoutingInfo: Unable to collect IPv6 routing table.
Jul  8 09:15:07 openstack-network vmsvc[2979]: [ warning] [guestinfo] 
Failed to get nic info.
+++

A new port called qr-bfc1e161-8e appears in br-int:
+++
root at openstack-network:~# ovs-vsctl show
4c8ae948-9661-4094-ae4f-48b7dc916be3
     Bridge br-int
         fail_mode: secure
         Port int-br-vlan
             Interface int-br-vlan
                 type: patch
                 options: {peer=phy-br-vlan}
         Port "qr-bfc1e161-8e"
             tag: 3
             Interface "qr-bfc1e161-8e"
                 type: internal
         Port br-int
             Interface br-int
                 type: internal
         Port patch-tun
             Interface patch-tun
                 type: patch
                 options: {peer=patch-int}
     Bridge br-vlan
         Port br-vlan
             Interface br-vlan
                 type: internal
         Port phy-br-vlan
             Interface phy-br-vlan
                 type: patch
                 options: {peer=int-br-vlan}
     Bridge br-tun
         fail_mode: secure
         Port "gre-0a0b2105"
             Interface "gre-0a0b2105"
                 type: gre
                 options: {df_default="true", in_key=flow, 
local_ip="10.11.33.2", out_key=flow, remote_ip="10.11.33.5"}
         Port br-tun
             Interface br-tun
                 type: internal
         Port patch-int
             Interface patch-int
                 type: patch
                 options: {peer=patch-tun}
     ovs_version: "2.0.2"
root at openstack-network:~#
+++

And I cannot ping to 192.168.32.21 :
+++
[sistemas at vis ~]$ ping 192.168.32.21
PING 192.168.32.21 (192.168.32.21) 56(84) bytes of data.
 From 192.168.32.148 icmp_seq=1 Destination Host Unreachable
+++

Thank you in advance




More information about the Openstack mailing list