can't ping instance from any ip

asked 2016-11-15 02:45:23 -0600

harshal gravatar image

updated 2016-11-15 03:33:49 -0600

I had followed below link to install multi-node installation.

http://www.tuxfixer.com/openstack-new...

Everything is fine except i'm not able to ping my instance. First time i'm doing installation from packstack with openswitch i feel there is something wrong this network configuration with openswitch.

My setup details :-

Public IP range :- 10.220.8.0/23 Private IP range :- 192.168.220.0/24

10.220.8.55 ==> controller 10.220.8.56 ==> compute 10.220.8.57 ==> network-node

Some useful details.

*Controller Node *

[root@controller ~(keystone_admin)]# neutron agent-list
+--------------------------------------+--------------------+--------------+-------------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host         | availability_zone | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+--------------+-------------------+-------+----------------+---------------------------+
| 25595e61-91b6-4840-b042-1d4460cf4bff | DHCP agent         | network-node | nova              | :-)   | True           | neutron-dhcp-agent        |
| 2d36acdb-1ab4-4a10-b7d6-f59905e36b82 | Metering agent     | network-node |                   | :-)   | True           | neutron-metering-agent    |
| 2e84843a-f669-4c22-94a8-8c7e70c3851d | Metadata agent     | network-node |                   | :-)   | True           | neutron-metadata-agent    |
| 3dfa3bec-ece6-4afb-ac36-ce157e000007 | Open vSwitch agent | compute      |                   | :-)   | True           | neutron-openvswitch-agent |
| b4444e38-3b60-400f-bb25-d92ed06fef06 | L3 agent           | network-node | nova              | :-)   | True           | neutron-l3-agent          |
| c71319c3-2b21-428c-8dde-2f1af4d60592 | Open vSwitch agent | network-node |                   | :-)   | True           | neutron-openvswitch-agent |
+--------------------------------------+--------------------+--------------+-------------------+-------+----------------+---------------------------+
[root@controller ~(keystone_admin)]#

[root@controller ~(keystone_admin)]# ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.220.8.55  netmask 255.255.254.0  broadcast 10.220.9.255
        inet6 fe80::250:56ff:febe:5f84  prefixlen 64  scopeid 0x20<link>
        ether 00:50:56:be:5f:84  txqueuelen 1000  (Ethernet)
        RX packets 1481407  bytes 591032991 (563.6 MiB)
        RX errors 0  dropped 50  overruns 0  frame 0
        TX packets 1216540  bytes 215018249 (205.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:50:56:be:5f:85  txqueuelen 1000  (Ethernet)
        RX packets 12  bytes 720 (720.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 415  bytes 73530 (71.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 28461146  bytes 2765560720 (2.5 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 28461146  bytes 2765560720 (2.5 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@controller ~(keystone_admin)]#

[root@controller ~(keystone_admin)]# nova list
+--------------------------------------+-----------------+--------+------------+-------------+---------------------------------------+
| ID                                   | Name            | Status | Task State | Power State | Networks                              |
+--------------------------------------+-----------------+--------+------------+-------------+---------------------------------------+
| a024906c-b334-4aa1-a71a-281ef43ab9cc | cirros_instance | ACTIVE | -          | Running     | priv_net=192.168.220.11, 10.220.8.108 |
+--------------------------------------+-----------------+--------+------------+-------------+---------------------------------------+
[root@controller ~(keystone_admin)]#

======================================================================================

Network-node

[root@network-node ~]# ifconfig -a
br-ex: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.220.8.57  netmask 255.255.252.0  broadcast 10.220.11.255
        inet6 fe80::a824:69ff:feb6:9d47  prefixlen 64  scopeid 0x20<link>
        ether 00:50:56:be:5f:99  txqueuelen 0  (Ethernet)
        RX packets 655546  bytes 48022455 (45.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 649079  bytes 70440238 (67.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

br-int: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 16:3a:bb:14:2e:4c  txqueuelen 0  (Ethernet)
        RX packets 40  bytes 4126 (4.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets ...
(more)
edit retag flag offensive close merge delete

Comments

Have you configured the OVS-SWITCH on the networking node on the same link you provided?

  1. Configure public network interface and Open vSwitch (OVS) on Network node

Regards, Amar

Amar gravatar imageAmar ( 2016-11-15 03:27:30 -0600 )edit

No my public inter is eth0 which having ip in 10.220.8.0/23 subnet and for private network i use eth1 which dont have any ip as of now

harshal gravatar imageharshal ( 2016-11-15 03:32:53 -0600 )edit

I don't see the instance plugged into br-int. In most installations br-int should have an interface named qvoxxxxxxx-yy where xxxxxxx-yy is the beginning of the Neutron port's UUID through which the instance is attached to the network.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-15 17:53:08 -0600 )edit

It would be interesting to see details of priv_net (neutron net-show priv_net) and the instance's port (neutron port-show --device_id=a024906c-b334-4aa1-a71a-281ef43ab9cc), and your ml2_conf.ini.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-15 18:02:13 -0600 )edit