[Openstack] Neutron: ping to gateway in instance fails leading to failure in internet connectivity

kamalakannan sanjeevan chirukamalakannan at gmail.com
Thu Oct 6 20:32:34 UTC 2016


Hello All,

I am using liberty on ubuntu 14.04.5. I have create a external network with
flat provider . I am able to ssh into the instance. The connectivity
through gateway fails and not able to connect to internet. Below are the
logs. Can anyone help me out?


root at scm:/opt/Openstack_liberty_scripts# neutron net-list
+--------------------------------------+----------------+--------------------------------------------------+
| id                                   | name           | subnets
                               |
+--------------------------------------+----------------+--------------------------------------------------+
| 5b2d3934-d07f-4d19-9ffc-6be5ed83c7ca | public-br-p4p1 |
edc648f9-e6dc-47b2-bb44-cdfe0e8125ae 10.0.1.0/24 |
+--------------------------------------+----------------+--------------------------------------------------+


root at scm:/opt/Openstack_liberty_scripts# neutron net-show
5b2d3934-d07f-4d19-9ffc-6be5ed83c7ca
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 5b2d3934-d07f-4d19-9ffc-6be5ed83c7ca |
| mtu                       | 0                                    |
| name                      | public-br-p4p1                       |
| port_security_enabled     | True                                 |
|* provider:network_type     | flat                                 |*
*| provider:physical_network | public                               |*
| provider:segmentation_id  |                                      |
|* router:external           | True                                 |*
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   | edc648f9-e6dc-47b2-bb44-cdfe0e8125ae |
| tenant_id                 | 541ac2769dc1487d92ac2f5c45952d51     |
+---------------------------+--------------------------------------+

root at scm:/opt/Openstack_liberty_scripts# neutron subnet-show
edc648f9-e6dc-47b2-bb44-cdfe0e8125ae
+-------------------+----------------------------------------------+
| Field             | Value                                        |
+-------------------+----------------------------------------------+
| allocation_pools  | {"start": "10.0.1.129", "end": "10.0.1.253"} |
| cidr              | 10.0.1.0/24                                  |
| dns_nameservers   | 192.168.0.1                                  |
| enable_dhcp       | True                                         |
|* gateway_ip        | 10.0.1.1                                     |*
| host_routes       |                                              |
| id                | edc648f9-e6dc-47b2-bb44-cdfe0e8125ae         |
| ip_version        | 4                                            |
| ipv6_address_mode |                                              |
| ipv6_ra_mode      |                                              |
| name              |                                              |
| network_id        | 5b2d3934-d07f-4d19-9ffc-6be5ed83c7ca         |
| subnetpool_id     |                                              |
| tenant_id         | 541ac2769dc1487d92ac2f5c45952d51             |
+-------------------+----------------------------------------------+


root at scm:/opt/Openstack_liberty_scripts# neutron net-gateway-list
404 Not Found

The resource could not be found.


root at scm:/var/log/neutron# neutron security-group-rule-list
+--------------------------------------+----------------+-----------+-----------+---------------+------------------+
| id                                   | security_group | direction |
ethertype | protocol/port | remote           |
+--------------------------------------+----------------+-----------+-----------+---------------+------------------+
| 123bbf22-7167-4851-a567-dd3425a8eb58 | default        | egress    | IPv4
     | any           | any              |
| 2d685879-89c5-4b06-bf81-8f7a2a7d293f | default        | egress    | IPv6
     | any           | any              |
| 485dd762-fa50-47ab-ab5d-2309c543232d | default        | ingress   | IPv6
     | any           | default (group)  |
| a29aec70-30c8-48cc-9c09-1a92b8dbe81a | default        | ingress   | IPv4
     | any           | default (group)  |
| a80f593d-145b-47c1-97be-ccf6fc66d7fb | default        | ingress   | IPv4
     | 22/tcp        | 0.0.0.0/0 (CIDR) |
| a85eb9c3-1600-46cb-a03c-1a29d901164d | default        | egress    | IPv4
     | any           | any              |
| af6b71fb-c6f1-4a7b-9f84-d55d4692435a | default        | ingress   | IPv4
     | any           | default (group)  |
| b3eead61-4aed-4cb2-9dbb-d1aa4f2faada | default        | ingress   | IPv6
     | any           | default (group)  |
| ced0f8bd-2ea8-4f06-b972-9c5c3aaa82a2 | default        | egress    | IPv6
     | any           | any              |
| dfe2d997-8191-4e04-91d4-1aeb89f65493 | default        | egress    | IPv6
     | any           | any              |
| e8dca531-7214-4b1d-b606-c820bdc8a9c0 | default        | egress    | IPv4
     | any           | any              |
| f978f7b7-8fdc-4e90-b5ee-341744eb8115 | default        | ingress   | IPv6
     | any           | default (group)  |
| ff211073-9bcf-46f4-8774-a3b2a6a8feb4 | default        | ingress   | IPv4
     | icmp          | 0.0.0.0/0 (CIDR) |
| fff866a8-22bf-400f-b9a3-80a8aa96097d | default        | ingress   | IPv4
     | any           | default (group)  |
+--------------------------------------+----------------+-----------+-----------+---------------+------------------+

root at scm:/opt/Openstack_liberty_scripts# ip netns
qdhcp-5b2d3934-d07f-4d19-9ffc-6be5ed83c7ca


root at scm:/var/log/neutron# ip netns exec
qdhcp-6594cd7e-43bb-4e33-98af-06996e45f154  ping -c 2 -s 1450 10.0.1.130
PING 10.0.1.130 (10.0.1.130) 1450(1478) bytes of data.
1458 bytes from 10.0.1.130: icmp_seq=1 ttl=64 time=0.631 ms
1458 bytes from 10.0.1.130: icmp_seq=2 ttl=64 time=0.199 ms


oot at scm:/var/log/neutron# ip netns exec
qdhcp-6594cd7e-43bb-4e33-98af-06996e45f154 ssh cirros at 10.0.1.130
The authenticity of host '10.0.1.130 (10.0.1.130)' can't be established.
RSA key fingerprint is b8:9f:79:0c:01:f4:e7:47:7c:dd:13:e7:b2:5e:82:2f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.0.1.130' (RSA) to the list of known hosts.
cirros at 10.0.1.130's password:
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc pfifo_fast qlen
1000
    link/ether fa:16:3e:73:c2:89 brd ff:ff:ff:ff:ff:ff
    inet 10.0.1.130/24 brd 10.0.1.255 scope global eth0
    inet6 fe80::f816:3eff:fe73:c289/64 scope link
       valid_lft forever preferred_lft forever
$ ping 10.0.1.130
PING 10.0.1.130 (10.0.1.130): 56 data bytes
64 bytes from 10.0.1.130: seq=0 ttl=64 time=0.047 ms
64 bytes from 10.0.1.130: seq=1 ttl=64 time=0.053 ms
64 bytes from 10.0.1.130: seq=2 ttl=64 time=0.052 ms
^C
--- 10.0.1.130 ping statistics ---


i am able to shh adn ping in the VM, But ping to gateway fails.

*root at scm:/etc/neutron# ip netns exec
qdhcp-5b2d3934-d07f-4d19-9ffc-6be5ed83c7ca ping 10.0.1.1*
*PING 10.0.1.1 (10.0.1.1) 56(84) bytes of data.*
*From 10.0.1.129 icmp_seq=1 Destination Host Unreachable*
*From 10.0.1.129 icmp_seq=2 Destination Host Unreachable*
*From 10.0.1.129 icmp_seq=3 Destination Host Unreachable*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20161007/110ac2f8/attachment.html>


More information about the Openstack mailing list