Ask Your Question
1

why can my instances not ping the neutron router? [closed]

asked 2014-09-15 09:44:40 -0500

mickt gravatar image

updated 2014-09-18 03:44:14 -0500

I installed OpenStack Icehouse on Ubuntu 14.04 LTS and configured neutron. I created network as per chapter 7 of installation guide. Created instances are assigned IP addresses and can ping each other. But I cannot ping the router internal interface from the instances nor the external interface from the host. I deleted the configuration and recreated etc. and just can't see where the issue is.

The status of the interfaces is showing down but I understand this to be a bug from what I read.

Any assistance would be greatly appreciated.

root@qa-openstack01:~#

 neutron net-create ext-net --shared --router:external=True
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 4eaa75e1-d4e3-4f9c-9831-5a68a23bf222 |
| name                      | ext-net                              |
| provider:network_type     | gre                                  |
| provider:physical_network |                                      |
| provider:segmentation_id  | 1                                    |
| router:external           | True                                 |
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tenant_id                 | 8b1133ca9c7e4465b72b9366f7361f0a     |
+---------------------------+--------------------------------------+

root@qa-openstack01:~#

neutron subnet-create ext-net --name ext-subnet --allocation-pool start=10.10.12.231,end=10.10.12.239 --disable-dhcp --gateway 10.10.12.1 10.10.12.0/24
    Created a new subnet:
    +------------------+--------------------------------------------------+
    | Field            | Value                                            |
    +------------------+--------------------------------------------------+
    | allocation_pools | {"start": "10.10.12.231", "end": "10.10.12.239"} |
    | cidr             | 10.10.12.0/24                                    |
    | dns_nameservers  |                                                  |
    | enable_dhcp      | False                                            |
    | gateway_ip       | 10.10.12.1                                       |
    | host_routes      |                                                  |
    | id               | 4a3b8dd5-5ed9-41ba-adb0-75b59e741e3b             |
    | ip_version       | 4                                                |
    | name             | ext-subnet                                       |
    | network_id       | 4eaa75e1-d4e3-4f9c-9831-5a68a23bf222             |
    | tenant_id        | 8b1133ca9c7e4465b72b9366f7361f0a                 |
    +------------------+--------------------------------------------------+

root@qa-openstack01:~#

neutron net-create int-net
    Created a new network:
    +---------------------------+--------------------------------------+
    | Field                     | Value                                |
    +---------------------------+--------------------------------------+
    | admin_state_up            | True                                 |
    | id                        | 3a4b3fea-a656-4f3d-9c1b-2cc900d3dc42 |
    | name                      | int-net                              |
    | provider:network_type     | gre                                  |
    | provider:physical_network |                                      |
    | provider:segmentation_id  | 2                                    |
    | shared                    | False                                |
    | status                    | ACTIVE                               |
    | subnets                   |                                      |
    | tenant_id                 | 8b1133ca9c7e4465b72b9366f7361f0a     |
    +---------------------------+--------------------------------------+

root@qa-openstack01:~#

neutron subnet-create int-net --name int-subnet --gateway 172.16.100.1 172.16.100.0/24
Created a new subnet:
+------------------+----------------------------------------------------+
| Field            | Value                                              |
+------------------+----------------------------------------------------+
| allocation_pools | {"start": "172.16.100.2", "end": "172.16.100.254"} |
| cidr             | 172.16.100.0/24                                    |
| dns_nameservers  |                                                    |
| enable_dhcp      | True                                               |
| gateway_ip       | 172.16.100.1                                       |
| host_routes      |                                                    |
| id               | 3cfae163-ff03-40b0-80a0-6003b4ddee35               |
| ip_version       | 4                                                  |
| name             | int-subnet                                         |
| network_id       | 3a4b3fea-a656-4f3d-9c1b-2cc900d3dc42               |
| tenant_id        | 8b1133ca9c7e4465b72b9366f7361f0a                   |
+------------------+----------------------------------------------------+

root@qa-openstack01:~#

 neutron router-create router
Created a new router:
+-----------------------+--------------------------------------+
| Field                 | Value                                |
+-----------------------+--------------------------------------+
| admin_state_up        | True                                 |
| external_gateway_info |                                      |
| id                    | 0b2220a9-0151-43c6-a1c6-3d71769db298 |
| name                  | router                               |
| status                | ACTIVE                               |
| tenant_id             | 8b1133ca9c7e4465b72b9366f7361f0a     |
+-----------------------+--------------------------------------+

root@qa-openstack01:~#

neutron router-interface-add router int-subnet
Added interface 09b2059f-53e7-418c-898a-1f092568c062 to router router.

root@qa-openstack01:~#

neutron router-gateway-set router ext-net
Set gateway for router router

root@qa-openstack01:~#

ovs-vsctl show
0bb09a60-b82f-4228-a9c6-4a3e4da470c4
    Bridge br-int
        fail_mode: secure
        Port "qvoa092859e-33"
            tag: 1
            Interface "qvoa092859e-33"
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port "qvo6a15a2fa-0d"
            tag: 1
            Interface "qvo6a15a2fa-0d"
        Port br-int
            Interface br-int
                type: internal
        Port "tap96a3c718-5e"
            tag: 1
            Interface "tap96a3c718-5e"
                type: internal
    Bridge br-tun
        Port "gre-0a0a0c14"
            Interface "gre-0a0a0c14"
                type: gre
                options: {in_key=flow, local_ip="10.10.12.7", out_key=flow, remote_ip="10.10.12.20"}
        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@qa-openstack01:~#

 ifconfig
    br-int    Link encap:Ethernet  HWaddr b2:7f:9d:45:cf:4e
              inet6 addr: fe80::84fa:a3ff:fe05:4287/64 Scope:Link
              UP BROADCAST RUNNING  MTU:1500  Metric:1
              RX packets:319 errors:0 dropped:0 overruns:0 frame:0
              TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:36761 (36.7 KB)  TX bytes:648 (648.0 B)

    br-tun    Link encap:Ethernet  HWaddr 16 ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by mickt
close date 2014-09-18 06:02:37.058792

Comments

1

Check neutron agent-list comand, are l3-agent alive? ip netns comant give to you some output? try comand ip netns exec "ns name" tcdump "inteface name" and ping router from instance

gagarinq9 gravatar imagegagarinq9 ( 2014-09-15 10:07:51 -0500 )edit

neutron agent-list is last entry above.

root@qa-openstack01:~# ip netns

qdhcp-3a4b3fea-a656-4f3d-9c1b-2cc900d3dc42

mickt gravatar imagemickt ( 2014-09-16 01:34:48 -0500 )edit

tcpdump on br-int shows nothing while pinging from instance, which sows Destination Host Unreachable.

mickt gravatar imagemickt ( 2014-09-16 01:37:53 -0500 )edit

I presume that there should also be a "qrouter"?

mickt gravatar imagemickt ( 2014-09-16 01:47:54 -0500 )edit

Rebooted and qrouter is shown. Unfortunately I cannot access the host now except via ILO. Investigation continues.

mickt gravatar imagemickt ( 2014-09-16 04:11:15 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-09-16 01:56:48 -0500

mickt gravatar image

updated 2014-09-18 07:17:37 -0500

neutron-l3-agent did not install during system setup. I have installed it and it is now shown in agent list.

This was the main reason for issue!

Thanks to gagarinq9.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-09-15 09:44:40 -0500

Seen: 1,974 times

Last updated: Sep 18 '14