"Verify Connectivity" part of openstack installation - Ubuntu 14.04 not working
We have used 3 nodes (1 controller, 1 network and 1 compute) for installing openstack Juno. Since none of them have more than 1 NICs, we have used virtual interfaces. After creating demo-router, we are not able to ping its port (which by deafult takes up the first ip of Floating range - which it does take in our case).
We are able to ping the interface using - sudo ip netns exec qrouter-1141a29e-5728-4327-81f1-3519617e986e ping 10.1.7.220 from the network node. Following is some important information which might be useful for debugging - all commands are run on controller node:
user@c93: ~$ neutron net-list
+--------------------------------------+----------+-----------------------------------------------------+
| id | name | subnets |
+--------------------------------------+----------+-----------------------------------------------------+
| dc825306-bbeb-410c-ac40-1da2b9c2307a | demo-net | fac8c0c8-aad3-4e3e-a9c6-b6af9fb721a5 192.168.1.0/24 |
| 2017a7a1-27c4-4d15-b988-aa9a698fdf86 | ext-net | 273496fa-3ae5-43e3-b336-72d88104099a 10.1.7.0/24 |
+--------------------------------------+----------+-----------------------------------------------------+
user@c93:~$ neutron net-show demo-net
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | dc825306-bbeb-410c-ac40-1da2b9c2307a |
| name | demo-net |
| provider:network_type | gre |
| provider:physical_network | |
| provider:segmentation_id | 1 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | fac8c0c8-aad3-4e3e-a9c6-b6af9fb721a5 |
| tenant_id | 2c8136695b184bd797eeddfa534a81ef |
+---------------------------+--------------------------------------+
user@c93:~$ neutron net-show ext-net
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | 2017a7a1-27c4-4d15-b988-aa9a698fdf86 |
| name | ext-net |
| provider:network_type | flat |
| provider:physical_network | external |
| provider:segmentation_id | |
| router:external | True |
| shared | False |
| status | ACTIVE |
| subnets | 273496fa-3ae5-43e3-b336-72d88104099a |
| tenant_id | 69fdf263f2674ede9268a77061acc738 |
+---------------------------+--------------------------------------+
user@c93:~$ neutron router-show demo-router
+-----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up | True |
| distributed | False |
| external_gateway_info | {"network_id": "2017a7a1-27c4-4d15-b988-aa9a698fdf86", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "273496fa-3ae5-43e3-b336-72d88104099a", "ip_address": "10.1.7.220"}]} |
| ha | False |
| id | cf6c1706-26e8-405a-9829-66dc775f810f |
| name | demo-router |
| routes | |
| status | ACTIVE |
| tenant_id | 2c8136695b184bd797eeddfa534a81ef |
+-----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
user@c93:~$ neutron port-list
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
| 5bc70879-5c49-4d9e-9c6b-e4312ff2fd38 | | fa:16:3e:77:bc:82 | {"subnet_id": "273496fa-3ae5-43e3-b336-72d88104099a", "ip_address": "10.1.7.220"} |
| eb443ed5-72e1-4b63-ae30-1b437604fe55 | | fa:16:3e:5e:e7:40 | {"subnet_id": "fac8c0c8-aad3-4e3e-a9c6-b6af9fb721a5", "ip_address": "192.168.1.1"} |
| f9889109-4895-47ef-ae92-642f73df9272 | | fa:16:3e:40:44:22 | {"subnet_id": "fac8c0c8-aad3-4e3e-a9c6-b6af9fb721a5", "ip_address": "192.168.1.2"} |
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
The IP 192.168.1.2 is shown to be attached to "network dhcp".
user@c93:~$ neutron router-port-list demo-router
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
| 5bc70879-5c49-4d9e-9c6b-e4312ff2fd38 | | fa:16:3e:77:bc:82 | {"subnet_id": "273496fa-3ae5-43e3-b336-72d88104099a", "ip_address": "10.1.7.220"} |
| eb443ed5-72e1-4b63-ae30-1b437604fe55 | | fa:16:3e:5e:e7:40 | {"subnet_id": "fac8c0c8-aad3-4e3e-a9c6-b6af9fb721a5", "ip_address": "192.168.1.1"} |
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
user@c93:~$ cat /etc/hosts
127.0.0.1 localhost
//127.0.1.1 c93 //this was commented by pravin - as per suggestion in the installation manual
// The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
//controller
10.1.7.103 controller
//network
10.1.7.104 network
//compute1
10.1.7.105 compute1
On controller node
cat /etc/network/interfaces
// interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.1.7.104
netmask 255.255.255.0
gateway 10.1.7.1
dns-nameservers 10.1.1.61 10.1.1.62
auto eth0:1
iface eth0:1 inet static
address 10.1.7.107
netmask 255.255.255.0
gateway 10.1.7.1
dns-nameservers 10.1.1.61 10.1.1.62
//external network interface
auto eth0:2
iface eth0:2 inet static
address 10.1.7.106
netmask 255.255.255.0
gateway 10.1 ...