Revision history [back]

click to hide/show revision 1
initial version

neutron initial network setup error? :icehouse

Hi,
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.
*************************
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
eth1 dhcp 10.0.x.x
gateway 10.10.10.1
netmask 255.255.255.0

*************************
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     |
+-----------------------+--------------------------------------+



*************************

please let me know where am i going wrong. Thank You.

neutron initial network setup error? :icehouse

Hi,
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.
*************************
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
eth1 dhcp 10.0.x.x
gateway 10.10.10.1
netmask 255.255.255.0

*************************
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
 


*************************

please let me know where am i going wrong. Thank You.

neutron initial network setup error? :icehouse

Hi,
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.
*************************
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
eth1 dhcp 10.0.x.x
gateway 10.10.10.1
netmask 255.255.255.0

*************************
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


[root@controller ~]# iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
nova-api-INPUT  all  --  anywhere             anywhere            
ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:domain 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:bootps 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:bootps 
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
nova-filter-top  all  --  anywhere             anywhere            
nova-api-FORWARD  all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             192.168.122.0/24    state RELATED,ESTABLISHED 
ACCEPT     all  --  192.168.122.0/24     anywhere            
ACCEPT     all  --  anywhere             anywhere            
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
nova-filter-top  all  --  anywhere             anywhere            
nova-api-OUTPUT  all  --  anywhere             anywhere            

Chain nova-api-FORWARD (1 references)
target     prot opt source               destination         

Chain nova-api-INPUT (1 references)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             compute1            tcp dpt:8775 

Chain nova-api-OUTPUT (1 references)
target     prot opt source               destination         

Chain nova-api-local (1 references)
target     prot opt source               destination         

Chain nova-filter-top (2 references)
target     prot opt source               destination         
nova-api-local  all  --  anywhere             anywhere 


*************************

please let me know where am i going wrong. Thank You.

neutron initial network setup error? :icehouse

Hi,
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 node. But when i followed the steps i am unable to ping to the tenant network at the verification step.
*************************
step.

Problem:

[root@controller ~]# ping 10.10.10.101
10.10.10.101 PING 10.10.10.101 (10.10.10.101) 56(84) bytes of data.
data. From 10.10.10.11 icmp_seq=2 Destination Host Unreachable
Unreachable From 10.10.10.11 icmp_seq=3 Destination Host Unreachable
Unreachable From 10.10.10.11 icmp_seq=4 Destination Host Unreachable
Unreachable --- 10.10.10.101 ping statistics ---
--- 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3818ms
3818ms pipe 3

*************************
3

On the controller node the network configuration is,

eth0     static    10.10.10.11
10.10.10.11<br> eth1 dhcp 10.0.x.x
10.0.x.x<br> gateway 10.10.10.1
10.10.10.1<br> netmask 255.255.255.0

*************************
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 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

 [root@controller ~]# iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
nova-api-INPUT  all  --  anywhere             anywhere            
ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:domain 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:bootps 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:bootps 
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
nova-filter-top  all  --  anywhere             anywhere            
nova-api-FORWARD  all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             192.168.122.0/24    state RELATED,ESTABLISHED 
ACCEPT     all  --  192.168.122.0/24     anywhere            
ACCEPT     all  --  anywhere             anywhere            
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
nova-filter-top  all  --  anywhere             anywhere            
nova-api-OUTPUT  all  --  anywhere             anywhere            

Chain nova-api-FORWARD (1 references)
target     prot opt source               destination         

Chain nova-api-INPUT (1 references)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             compute1            tcp dpt:8775 

Chain nova-api-OUTPUT (1 references)
target     prot opt source               destination         

Chain nova-api-local (1 references)
target     prot opt source               destination         

Chain nova-filter-top (2 references)
target     prot opt source               destination         
nova-api-local  all  --  anywhere             anywhere 
anywhere


*************************

please let me know where am i going wrong. Thank You.

neutron initial network setup error? :icehouse

I am following this guide 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

[root@controller ~]# iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
nova-api-INPUT  all  --  anywhere             anywhere            
ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:domain 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:bootps 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:bootps 
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
nova-filter-top  all  --  anywhere             anywhere            
nova-api-FORWARD  all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             192.168.122.0/24    state RELATED,ESTABLISHED 
ACCEPT     all  --  192.168.122.0/24     anywhere            
ACCEPT     all  --  anywhere             anywhere            
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
nova-filter-top  all  --  anywhere             anywhere            
nova-api-OUTPUT  all  --  anywhere             anywhere            

Chain nova-api-FORWARD (1 references)
target     prot opt source               destination         

Chain nova-api-INPUT (1 references)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             compute1            tcp dpt:8775 

Chain nova-api-OUTPUT (1 references)
target     prot opt source               destination         

Chain nova-api-local (1 references)
target     prot opt source               destination         

Chain nova-filter-top (2 references)
target     prot opt source               destination         
nova-api-local  all  --  anywhere             anywhere

please let me know where am i going wrong.

neutron initial network setup error? :icehouse

I am following this guide 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                                   | name        | external_gateway_info                                                       |
+--------------------------------------+-------------+-----------------------------------------------------------------------------+
| 67fa5a0e-a413-4296-92fa-b9fd5a69fbad | demo-router | {"network_id": "9ce6485e-3762-4689-bd3b-eefe7586ff20", "enable_snat": true} |
+--------------------------------------+-------------+-----------------------------------------------------------------------------+
[root@network ~]# ip netns
qdhcp-bbbf898b-604f-473c-b0c0-8129819d967f
qrouter-67fa5a0e-a413-4296-92fa-b9fd5a69fbad

[root@controller ~]# iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
nova-api-INPUT  all  --  anywhere             anywhere            
ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:domain 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:bootps 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:bootps 
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
nova-filter-top  all  --  anywhere             anywhere            
nova-api-FORWARD  all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             192.168.122.0/24    state RELATED,ESTABLISHED 
ACCEPT     all  --  192.168.122.0/24     anywhere            
ACCEPT     all  --  anywhere             anywhere            
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
nova-filter-top  all  --  anywhere             anywhere            
nova-api-OUTPUT  all  --  anywhere             anywhere            

Chain nova-api-FORWARD (1 references)
target     prot opt source               destination         

Chain nova-api-INPUT (1 references)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             compute1            tcp dpt:8775 

Chain nova-api-OUTPUT (1 references)
target     prot opt source               destination         

Chain nova-api-local (1 references)
target     prot opt source               destination         

Chain nova-filter-top (2 references)
target     prot opt source               destination         
nova-api-local  all  --  anywhere             anywhere

please let me know where am i going wrong.

neutron initial network setup error? :icehouse

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                                   | name        | external_gateway_info                                                       |
+--------------------------------------+-------------+-----------------------------------------------------------------------------+
| 67fa5a0e-a413-4296-92fa-b9fd5a69fbad | demo-router | {"network_id": "9ce6485e-3762-4689-bd3b-eefe7586ff20", "enable_snat": true} |
+--------------------------------------+-------------+-----------------------------------------------------------------------------+
[root@network ~]# ip netns
qdhcp-bbbf898b-604f-473c-b0c0-8129819d967f
qrouter-67fa5a0e-a413-4296-92fa-b9fd5a69fbad

[root@controller ~]# iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
nova-api-INPUT  all  --  anywhere             anywhere            
ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:domain 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:bootps 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:bootps 
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
nova-filter-top  all  --  anywhere             anywhere            
nova-api-FORWARD  all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             192.168.122.0/24    state RELATED,ESTABLISHED 
ACCEPT     all  --  192.168.122.0/24     anywhere            
ACCEPT     all  --  anywhere             anywhere            
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
nova-filter-top  all  --  anywhere             anywhere            
nova-api-OUTPUT  all  --  anywhere             anywhere            

Chain nova-api-FORWARD (1 references)
target     prot opt source               destination         

Chain nova-api-INPUT (1 references)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             compute1            tcp dpt:8775 

Chain nova-api-OUTPUT (1 references)
target     prot opt source               destination         

Chain nova-api-local (1 references)
target     prot opt source               destination         

Chain nova-filter-top (2 references)
target     prot opt source               destination         
nova-api-local  all  --  anywhere             anywhere

please let me know where am i going wrong.

neutron initial network setup error? :icehouse

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                                   | name        | external_gateway_info                                                       |
+--------------------------------------+-------------+-----------------------------------------------------------------------------+
| 67fa5a0e-a413-4296-92fa-b9fd5a69fbad | demo-router | {"network_id": "9ce6485e-3762-4689-bd3b-eefe7586ff20", "enable_snat": true} |
+--------------------------------------+-------------+-----------------------------------------------------------------------------+
[root@network ~]# ip netns
qdhcp-bbbf898b-604f-473c-b0c0-8129819d967f
qrouter-67fa5a0e-a413-4296-92fa-b9fd5a69fbad

[root@controller ~]# iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
nova-api-INPUT  all  --  anywhere             anywhere            
ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:domain 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:bootps 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:bootps 
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
nova-filter-top  all  --  anywhere             anywhere            
nova-api-FORWARD  all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             192.168.122.0/24    state RELATED,ESTABLISHED 
ACCEPT     all  --  192.168.122.0/24     anywhere            
ACCEPT     all  --  anywhere             anywhere            
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
nova-filter-top  all  --  anywhere             anywhere            
nova-api-OUTPUT  all  --  anywhere             anywhere            

Chain nova-api-FORWARD (1 references)
target     prot opt source               destination         

Chain nova-api-INPUT (1 references)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             compute1            tcp dpt:8775 

Chain nova-api-OUTPUT (1 references)
target     prot opt source               destination         

Chain nova-api-local (1 references)
target     prot opt source               destination         

Chain nova-filter-top (2 references)
target     prot opt source               destination         
nova-api-local  all  --  anywhere             anywhere

please let me know where am i going wrong.

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                                   | name        | external_gateway_info                                                       |
+--------------------------------------+-------------+-----------------------------------------------------------------------------+
| 67fa5a0e-a413-4296-92fa-b9fd5a69fbad | demo-router | {"network_id": "9ce6485e-3762-4689-bd3b-eefe7586ff20", "enable_snat": true} |
+--------------------------------------+-------------+-----------------------------------------------------------------------------+
[root@network ~]# ip netns
qdhcp-bbbf898b-604f-473c-b0c0-8129819d967f
qrouter-67fa5a0e-a413-4296-92fa-b9fd5a69fbad

[root@controller ~]# iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
nova-api-INPUT  all  --  anywhere             anywhere            
ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:domain 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:bootps 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:bootps 
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
nova-filter-top  all  --  anywhere             anywhere            
nova-api-FORWARD  all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             192.168.122.0/24    state RELATED,ESTABLISHED 
ACCEPT     all  --  192.168.122.0/24     anywhere            
ACCEPT     all  --  anywhere             anywhere            
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
nova-filter-top  all  --  anywhere             anywhere            
nova-api-OUTPUT  all  --  anywhere             anywhere            

Chain nova-api-FORWARD (1 references)
target     prot opt source               destination         

Chain nova-api-INPUT (1 references)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             compute1            tcp dpt:8775 

Chain nova-api-OUTPUT (1 references)
target     prot opt source               destination         

Chain nova-api-local (1 references)
target     prot opt source               destination         

Chain nova-filter-top (2 references)
target     prot opt source               destination         
nova-api-local  all  --  anywhere             anywhere

please let me know where am i going wrong.