neutron initial network setup error? :icehouse
#Still Unresolved
I am following this guide
http://docs.openstack.org/icehouse/install-guide/install/yum/content/neutron_initial-external-network.html
which says that the initial network has to be setup on the controller node. But when i followed the steps i am unable to ping to the tenant network at the verification step.
All configuration files and log files can be found at this link
https://github.com/Akshay-Thakare/openstack
Problem:
[root@controller ~]# ping 10.10.10.101
PING 10.10.10.101 (10.10.10.101) 56(84) bytes of data.
From 10.10.10.11 icmp_seq=2 Destination Host Unreachable
From 10.10.10.11 icmp_seq=3 Destination Host Unreachable
From 10.10.10.11 icmp_seq=4 Destination Host Unreachable
--- 10.10.10.101 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3818ms
pipe 3
On the controller node the network configuration is,
eth0 static 10.10.10.11<br>
eth1 dhcp 10.0.x.x<br>
gateway 10.10.10.1<br>
netmask 255.255.255.0<br>
Below are the results of the commands i executed
[root@controller ~]# neutron net-create ext-net --shared --router:external=True
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | 9ce6485e-3762-4689-bd3b-eefe7586ff20 |
| name | ext-net |
| provider:network_type | gre |
| provider:physical_network | |
| provider:segmentation_id | 1 |
| router:external | True |
| shared | True |
| status | ACTIVE |
| subnets | |
| tenant_id | d03b2c59c9a44000acad28dfade96c52 |
+---------------------------+--------------------------------------+
[root@controller ~]# neutron subnet-create ext-net --name ext-subnet \
> --allocation-pool start=10.10.10.101,end=10.10.10.200 \
> --disable-dhcp --gateway 10.10.10.1 10.10.10.0/24
Created a new subnet:
+------------------+--------------------------------------------------+
| Field | Value |
+------------------+--------------------------------------------------+
| allocation_pools | {"start": "10.10.10.101", "end": "10.10.10.200"} |
| cidr | 10.10.10.0/24 |
| dns_nameservers | |
| enable_dhcp | False |
| gateway_ip | 10.10.10.1 |
| host_routes | |
| id | 83cc5a9b-10d7-4390-93dc-cdb84238e86c |
| ip_version | 4 |
| name | ext-subnet |
| network_id | 9ce6485e-3762-4689-bd3b-eefe7586ff20 |
| tenant_id | d03b2c59c9a44000acad28dfade96c52 |
+------------------+--------------------------------------------------+
=>FOR TENANT NETWORK
[root@controller ~]# neutron net-create demo-net
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | bbbf898b-604f-473c-b0c0-8129819d967f |
| name | demo-net |
| provider:network_type | gre |
| provider:physical_network | |
| provider:segmentation_id | 2 |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | d03b2c59c9a44000acad28dfade96c52 |
+---------------------------+--------------------------------------+
[root@controller ~]# neutron subnet-create demo-net --name demo-subnet \
> --gateway 192.168.43.1 192.168.43.0/24
Created a new subnet:
+------------------+----------------------------------------------------+
| Field | Value |
+------------------+----------------------------------------------------+
| allocation_pools | {"start": "192.168.43.2", "end": "192.168.43.254"} |
| cidr | 192.168.43.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 192.168.43.1 |
| host_routes | |
| id | 6db66b57-f0b0-4aba-9f43-e10bc034142c |
| ip_version | 4 |
| name | demo-subnet |
| network_id | bbbf898b-604f-473c-b0c0-8129819d967f |
| tenant_id | d03b2c59c9a44000acad28dfade96c52 |
+------------------+----------------------------------------------------+
[root@controller ~]# neutron router-create demo-router
Created a new router:
+-----------------------+--------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------+
| admin_state_up | True |
| external_gateway_info | |
| id | 67fa5a0e-a413-4296-92fa-b9fd5a69fbad |
| name | demo-router |
| status | ACTIVE |
| tenant_id | d03b2c59c9a44000acad28dfade96c52 |
+-----------------------+--------------------------------------+
neutron router-interface-add demo-router demo-subnet
neutron router-gateway-set demo-router ext-net
ADDITIONAL INFO
neutron net-list
neutron subnet-list
neutron router-list
ip netns
Results
[root@network ~]# neutron net-list
+--------------------------------------+----------+------------------------------------------------------+
| id | name | subnets |
+--------------------------------------+----------+------------------------------------------------------+
| 9ce6485e-3762-4689-bd3b-eefe7586ff20 | ext-net | 83cc5a9b-10d7-4390-93dc-cdb84238e86c 10.10.10.0/24 |
| bbbf898b-604f-473c-b0c0-8129819d967f | demo-net | 6db66b57-f0b0-4aba-9f43-e10bc034142c 192.168.43.0/24 |
+--------------------------------------+----------+------------------------------------------------------+
[root@network ~]# neutron subnet-list
+--------------------------------------+-------------+-----------------+----------------------------------------------------+
| id | name | cidr | allocation_pools |
+--------------------------------------+-------------+-----------------+----------------------------------------------------+
| 6db66b57-f0b0-4aba-9f43-e10bc034142c | demo-subnet | 192.168.43.0/24 | {"start": "192.168.43.2", "end": "192.168.43.254"} |
| 83cc5a9b-10d7-4390-93dc-cdb84238e86c | ext-subnet | 10.10.10.0/24 | {"start": "10.10.10.101", "end": "10.10.10.200"} |
+--------------------------------------+-------------+-----------------+----------------------------------------------------+
[root@network ~]#
[root@network ~]# neutron router-list
+--------------------------------------+-------------+-----------------------------------------------------------------------------+
| id ...