unable to ping router external Ip which is assigned to my router

asked 2017-05-01 04:23:06 -0500

hiteshingole gravatar image

So i have all the modules on the system with one active interface now Iam unable to ping to any of the IP from my server(opnstack).

Iam very new to openstack.

So this is the router list

(openstack) router list
+--------------------------------------+-------------+--------+-------+-------------+-------+----------------------------------+
| ID                                   | Name        | Status | State | Distributed | HA    | Project                          |
+--------------------------------------+-------------+--------+-------+-------------+-------+----------------------------------+
| 2e5c698e-d2cd-4aeb-b69b-709d303a4b1b | firstrouter | ACTIVE | UP    | False       | False | 57bd15719ac947ba8584265cd2b749d3 |
| 70edfbf4-cfa0-41f3-8b37-c7605c5fbc4d | router1     | ACTIVE | UP    | False       | False | 7a4d299936f44f9a87630c4a0032f134 |
+--------------------------------------+-------------+--------+-------+-------------+-------+----------------------------------+

So firstrouter is our router in question.

(openstack) router show firstrouter
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                   | Value                                                                                                                                                               |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up          | UP                                                                                                                                                                  |
| availability_zone_hints |                                                                                                                                                                     |
| availability_zones      | nova                                                                                                                                                                |
| created_at              | 2017-04-25T10:29:53Z                                                                                                                                                |
| description             |                                                                                                                                                                     |
| distributed             | False                                                                                                                                                               |
| external_gateway_info   | {"network_id": "3276003d-0e34-46c7-80f7-5a611cc3c3b2", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "5adafe39-4dd3-4562-9c0d-729abc46571c",            |
|                         | "ip_address": "10.10.72.189"}]}                                                                                                                                     |
| flavor_id               | None                                                                                                                                                                |
| ha                      | False                                                                                                                                                               |
| id                      | 2e5c698e-d2cd-4aeb-b69b-709d303a4b1b                                                                                                                                |
| name                    | firstrouter                                                                                                                                                         |
| project_id              | 57bd15719ac947ba8584265cd2b749d3                                                                                                                                    |
| revision_number         | 7                                                                                                                                                                   |
| routes                  |                                                                                                                                                                     |
| status                  | ACTIVE                                                                                                                                                              |
| updated_at              | 2017-04-25T10:30:34Z                                                                                                                                                |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Further below is the network show and subnet show

(openstack) network show "3276003d-0e34-46c7-80f7-5a611cc3c3b2"
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | UP                                   |
| availability_zone_hints   |                                      |
| availability_zones        | nova                                 |
| created_at                | 2017-04-25T10:21:10Z                 |
| description               |                                      |
| dns_domain                | None                                 |
| id                        | 3276003d-0e34-46c7-80f7-5a611cc3c3b2 |
| ipv4_address_scope        | None                                 |
| ipv6_address_scope        | None                                 |
| is_default                | False                                |
| mtu                       | 1450                                 |
| name                      | external23                           |
| port_security_enabled     | False                                |
| project_id                | 57bd15719ac947ba8584265cd2b749d3     |
| provider:network_type     | vxlan                                |
| provider:physical_network | None                                 |
| provider:segmentation_id  | 76                                   |
| qos_policy_id             | None                                 |
| revision_number           | 10                                   |
| router:external           | External                             |
| segments                  | None                                 |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   | 5adafe39-4dd3-4562-9c0d-729abc46571c |
| updated_at                | 2017-04-26T09:03:59Z                 |
+---------------------------+--------------------------------------+
(openstack) subnet show 5adafe39-4dd3-4562-9c0d-729abc46571c
+-------------------+---------------------------------------------------+
| Field             | Value                                             |
+-------------------+---------------------------------------------------+
| allocation_pools  | 10.10.72.189-10.10.72.190,10.10.72.75-10.10.72.76 |
| cidr              | 10.10.72.0/24                                     |
| created_at        | 2017-04-25T10:21:11Z                              |
| description       |                                                   |
| dns_nameservers   |                                                   |
| enable_dhcp       | False                                             |
| gateway_ip        | 10.10.72.1                                        |
| host_routes       |                                                   |
| id                | 5adafe39-4dd3-4562-9c0d-729abc46571c              |
| ip_version        | 4                                                 |
| ipv6_address_mode | None                                              |
| ipv6_ra_mode      | None                                              |
| name              | external-network                                  |
| network_id        | 3276003d-0e34-46c7-80f7-5a611cc3c3b2              |
| project_id        | 57bd15719ac947ba8584265cd2b749d3                  |
| revision_number   | 5                                                 |
| segment_id        | None                                              |
| service_types     |                                                   |
| subnetpool_id     | None                                              |
| updated_at        | 2017-04-26T09:03:59Z                              |
+-------------------+---------------------------------------------------+
(openstack)

Iam unable to ping 10.10.72.189 IP which is assisned to the router's external port.

[root@Physicalnode ~(keystone_admin)]# ovs-vsctl show
e0f60256-79d2-4f18-bd84-cdc1c76fbcc9
    Manager "ptcp:6640:127.0.0.1"
        is_connected: true
    Bridge br-tun
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
        Port br-tun
            Interface br-tun
                type: internal
    Bridge br-ex
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port "enp11s0"
            Interface "enp11s0"
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer=int-br-ex}
        Port br-ex
            Interface br-ex
                type: internal
    Bridge br-int
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port br-int
            Interface br-int
                type: internal
        Port int-br-ex
            Interface int-br-ex
                type: patch
                options: {peer=phy-br-ex}
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
    ovs_version: "2.6.1"
[root@Physicalnode ~(keystone_admin)]#

If I associate any instance with external netwrok too Iam unable to get to that instance from my openstack host so basically anything insde my opensatck host is unreachable.

[root@Physicalnode ~(keystone_admin)]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp11s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master ovs-system state UP qlen 1000
    link/ether 84:b8:02:5c ...
(more)
edit retag flag offensive close merge delete

Comments

Did you try capturing in router to see if the router indeed getting the ping packets?

kuro gravatar imagekuro ( 2017-05-01 12:10:12 -0500 )edit