Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

neutron network issue with icehouse centos installation guide

I am following the icehouse installation guide, http://docs.openstack.org/icehouse/install-guide/install/yum/content/neutron_initial-networks-verify.html. VMs can get IP from the private and public network. I can't acces neither the private or the public network. I can not ping the router address 10.10.40.21. ip netns returns nothing. sec-group is blank also. Thanks for your help.

[root@ice-nova ~]# nova list
+--------------------------------------+------+--------+------------+-------------+----------------------+
| ID                                   | Name | Status | Task State | Power State | Networks             |
+--------------------------------------+------+--------+------------+-------------+----------------------+
| a6d876b1-d926-4d15-b961-ccf0d88737ec | AA   | ACTIVE | -          | Running     | demo-net=192.168.1.2 |
+--------------------------------------+------+--------+------------+-------------+----------------------+

[root@ice-nova ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1003   0        0 eth1
172.20.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eth0
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 eth1
0.0.0.0         172.20.0.250    0.0.0.0         UG    0      0        0 eth0
[root@ice-nova ~]# neutron port-list
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                          |
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
| 97b9438f-da39-4ec4-83ef-cde0e60151b8 |      | fa:16:3e:a4:ac:9a | {"subnet_id": "98ee14d2-d571-4302-93e6-7eb9aea86d09", "ip_address": "10.10.40.21"} |
| a858b33e-c055-43e7-8bff-b96efafbd59c |      | fa:16:3e:c8:fc:cc | {"subnet_id": "4479dbb4-403e-490d-bb6a-19142ac88c06", "ip_address": "192.168.1.1"} |
| d4d353cf-b2c7-4e78-8e3d-736e0828e8b8 |      | fa:16:3e:8e:95:fc | {"subnet_id": "4479dbb4-403e-490d-bb6a-19142ac88c06", "ip_address": "192.168.1.2"} |
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+


[root@ice-neutron ~]# neutron net-list
+--------------------------------------+----------+-----------------------------------------------------+
| id                                   | name     | subnets                                             |
+--------------------------------------+----------+-----------------------------------------------------+
| 9d54586d-d593-424e-86ba-0a464b475e07 | ext-net  | 98ee14d2-d571-4302-93e6-7eb9aea86d09 10.10.40.0/24  |
| e60ddc93-3598-4bb5-83b4-5dbca9a3cfeb | demo-net | 4479dbb4-403e-490d-bb6a-19142ac88c06 192.168.1.0/24 |
+--------------------------------------+----------+-----------------------------------------------------+
[root@ice-neutron ~]# neutron subnet-list
+--------------------------------------+-------------+----------------+--------------------------------------------------+
| id                                   | name        | cidr           | allocation_pools                                 |
+--------------------------------------+-------------+----------------+--------------------------------------------------+
| 4479dbb4-403e-490d-bb6a-19142ac88c06 | demo-subnet | 192.168.1.0/24 | {"start": "192.168.1.2", "end": "192.168.1.254"} |
| 98ee14d2-d571-4302-93e6-7eb9aea86d09 | ext-subnet  | 10.10.40.0/24  | {"start": "10.10.40.20", "end": "10.10.40.100"}  |
+--------------------------------------+-------------+----------------+--------------------------------------------------+
[root@ice-neutron ~]# neutron router-list
+--------------------------------------+-------------+-----------------------------------------------------------------------------+
| id                                   | name        | external_gateway_info                                                       |
+--------------------------------------+-------------+-----------------------------------------------------------------------------+
| 3cf1ef0c-098e-462c-9abc-79aa99fc641d | demo-router | {"network_id": "9d54586d-d593-424e-86ba-0a464b475e07", "enable_snat": true} |
+--------------------------------------+-------------+-----------------------------------------------------------------------------+
[root@ice-neutron ~]# neutron net-show ext-net
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 9d54586d-d593-424e-86ba-0a464b475e07 |
| name                      | ext-net                              |
| provider:network_type     | gre                                  |
| provider:physical_network |                                      |
| provider:segmentation_id  | 1                                    |
| router:external           | True                                 |
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   | 98ee14d2-d571-4302-93e6-7eb9aea86d09 |
| tenant_id                 | 7e815c96701c41dc9ff8dbcbd4eacbe6     |
+---------------------------+--------------------------------------+
[root@ice-neutron ~]# neutron subnet-show ext-subnet
+------------------+-------------------------------------------------+
| Field            | Value                                           |
+------------------+-------------------------------------------------+
| allocation_pools | {"start": "10.10.40.20", "end": "10.10.40.100"} |
| cidr             | 10.10.40.0/24                                   |
| dns_nameservers  |                                                 |
| enable_dhcp      | False                                           |
| gateway_ip       | 10.10.40.1                                      |
| host_routes      |                                                 |
| id               | 98ee14d2-d571-4302-93e6-7eb9aea86d09            |
| ip_version       | 4                                               |
| name             | ext-subnet                                      |
| network_id       | 9d54586d-d593-424e-86ba-0a464b475e07            |
| tenant_id        | 7e815c96701c41dc9ff8dbcbd4eacbe6                |
+------------------+-------------------------------------------------+
[root@ice-neutron ~]# neutron floatingip-list

[root@ice-neutron ~]# ovs-vsctl show
0ef671f3-1085-4bca-9c6a-e7f2a7c11111
    Bridge br-int
        Port br-int
            Interface br-int
                type: internal
    Bridge br-ex
        Port "eth2"
            Interface "eth2"
        Port br-ex
            Interface br-ex
                type: internal
    ovs_version: "1.11.0"

[root@ice-neutron ~]# ovs-dpctl show
system@ovs-system:
    lookups: hit:601 missed:185 lost:0
    flows: 0
    port 0: ovs-system (internal)
    port 1: br-ex (internal)
    port 2: eth2
    port 3: br-int (internal)
[root@ice-neutron ~]# ifconfig -a
br-ex     Link encap:Ethernet  HWaddr 00:50:56:A1:00:0F  
          inet6 addr: fe80::885c:cfff:feb5:162d/64 Scope:Link
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:774 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:54618 (53.3 KiB)  TX bytes:468 (468.0 b)

br-int    Link encap:Ethernet  HWaddr 8A:BD:36:04:7F:4B  
          inet6 addr: fe80::9c1a:feff:fe8c:b845/64 Scope:Link
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:468 (468.0 b)

eth0      Link encap:Ethernet  HWaddr 00:50:56:A1:00:0D  
          inet addr:172.20.4.21  Bcast:172.20.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fea1:d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:37381 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22304 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5188030 (4.9 MiB)  TX bytes:2011356 (1.9 MiB)

eth1      Link encap:Ethernet  HWaddr 00:50:56:A1:00:0E  
          inet addr:10.0.0.21  Bcast:10.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::250:56ff:fea1:e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:38 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2280 (2.2 KiB)  TX bytes:816 (816.0 b)

eth2      Link encap:Ethernet  HWaddr 00:50:56:A1:00:0F  
          inet6 addr: fe80::250:56ff:fea1:f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:774 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:54618 (53.3 KiB)  TX bytes:808 (808.0 b)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

ovs-system Link encap:Ethernet  HWaddr 96:0E:DB:9B:17:DC  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

[root@ice-neutron ~]# ip netns list
[root@ice-neutron ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:50:56:a1:00:0d brd ff:ff:ff:ff:ff:ff
    inet 172.20.4.21/16 brd 172.20.255.255 scope global eth0
    inet6 fe80::250:56ff:fea1:d/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:50:56:a1:00:0e brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.21/8 brd 10.255.255.255 scope global eth1
    inet6 fe80::250:56ff:fea1:e/64 scope link 
       valid_lft forever preferred_lft forever
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:50:56:a1:00:0f brd ff:ff:ff:ff:ff:ff
    inet6 fe80::250:56ff:fea1:f/64 scope link 
       valid_lft forever preferred_lft forever
5: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN 
    link/ether 96:0e:db:9b:17:dc brd ff:ff:ff:ff:ff:ff
6: br-ex: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN 
    link/ether 00:50:56:a1:00:0f brd ff:ff:ff:ff:ff:ff
    inet6 fe80::885c:cfff:feb5:162d/64 scope link 
       valid_lft forever preferred_lft forever
7: br-int: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN 
    link/ether 8a:bd:36:04:7f:4b brd ff:ff:ff:ff:ff:ff
    inet6 fe80::9c1a:feff:fe8c:b845/64 scope link 
       valid_lft forever preferred_lft forever

[root@ice-neutron ~]# neutron router-show demo-router
+-----------------------+-----------------------------------------------------------------------------+
| Field                 | Value                                                                       |
+-----------------------+-----------------------------------------------------------------------------+
| admin_state_up        | True                                                                        |
| external_gateway_info | {"network_id": "9d54586d-d593-424e-86ba-0a464b475e07", "enable_snat": true} |
| id                    | 3cf1ef0c-098e-462c-9abc-79aa99fc641d                                        |
| name                  | demo-router                                                                 |
| routes                |                                                                             |
| status                | ACTIVE                                                                      |
| tenant_id             | 6b9bcdc97d9042d5a8d6dd5f8294ba26                                            |
+-----------------------+-----------------------------------------------------------------------------+
[root@ice-neutron ~]# neutron net-show demo-net
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | e60ddc93-3598-4bb5-83b4-5dbca9a3cfeb |
| name                      | demo-net                             |
| provider:network_type     | gre                                  |
| provider:physical_network |                                      |
| provider:segmentation_id  | 3                                    |
| router:external           | False                                |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   | 4479dbb4-403e-490d-bb6a-19142ac88c06 |
| tenant_id                 | 6b9bcdc97d9042d5a8d6dd5f8294ba26     |
+---------------------------+--------------------------------------+
[root@ice-neutron ~]# neutron net-show ext-net
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 9d54586d-d593-424e-86ba-0a464b475e07 |
| name                      | ext-net                              |
| provider:network_type     | gre                                  |
| provider:physical_network |                                      |
| provider:segmentation_id  | 1                                    |
| router:external           | True                                 |
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   | 98ee14d2-d571-4302-93e6-7eb9aea86d09 |
| tenant_id                 | 7e815c96701c41dc9ff8dbcbd4eacbe6     |

[root@ice-neutron ~]# nova  secgroup-list
+--------------------------------------+---------+-------------+
| Id                                   | Name    | Description |
+--------------------------------------+---------+-------------+
| 3e2ecaaa-835d-4fc0-bd5a-f4f9226a1085 | default | default     |
+--------------------------------------+---------+-------------+


[root@ice-neutron ~]# nova secgroup-list-rules default 
+-------------+-----------+---------+----------+--------------+
| IP Protocol | From Port | To Port | IP Range | Source Group | 
+-------------+-----------+---------+----------+--------------+
|             |           |         |          | default      |
|             |           |         |          | default      |
+-------------+-----------+---------+----------+--------------+

+---------------------------+--------------------------------------+
[root@ice-neutron ~]#