Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problems with openstack newton on CentOS 7

I recently did all in one node Openstack Newton setup on CentOS 7 box. It went with much less hussle. But I am facing the networking issue of connecting to the instances which are on virtual network with the controller node. 1. I cannot ping the nodes (172.17.y.y) in private virtual network from the host node(192.168.x.x). I already added entries into static routing table but its not making any difference. Tried adding additonal roytes as part of the private virtual network subnet from Openstack dashboard, still the problem persists.

  1. All the nodes on the private virtual network can ping each other i.e 172.17 IP range ones.Node with IP 172.17.1.124 can ping node 172.17.1.87 without any issue. But these nodes are unable to ping the private network Gateway IP 172.17.1.1. It says destination not reachable.

  2. Also Can someone suggest how should a External provider network be setup ? Adding a provider network and a router between provider and priavte network does not help in communicating private nodes with external world i.e. cannot ping google.com , cannot ping host controller node.

It would be really great if someone can help in resolving any of the above issues.

Thanks in Advance !

Problems with openstack newton on CentOS 7

I recently did all in one node Openstack Newton setup on CentOS 7 box. It went with much less hussle. But I am facing the networking issue of connecting to the instances which are on virtual network with the controller node. 1. I cannot ping the nodes (172.17.y.y) in private virtual network from the host node(192.168.x.x). I already added entries into static routing table but its not making any difference. Tried adding additonal roytes as part of the private virtual network subnet from Openstack dashboard, still the problem persists.

  1. All the nodes on the private virtual network can ping each other i.e 172.17 IP range ones.Node with IP 172.17.1.124 can ping node 172.17.1.87 without any issue. But these nodes are unable to ping the private network Gateway IP 172.17.1.1. It says destination not reachable.

  2. Also Can someone suggest how should a External provider network be setup ? Adding a provider network and a router between provider and priavte network does not help in communicating private nodes with external world i.e. cannot ping google.com , cannot ping host controller node.

It would be really great if someone can help in resolving any of the above issues.

Thanks in Advance !

# rpm -qa | grep newton

centos-release-openstack-newton-1-2.el7.noarch

Virtual Network setup :

openstack network list

+--------------------------------------+------------+--------------------------------------+ | ID | Name | Subnets | +--------------------------------------+------------+--------------------------------------+ | 87752907-eec8-4b43-a1e5-afeb90739138 | public-03 | 00eaf4bd-074a-4cc4-a001-5159ecebd820 | | f254cb2d-ac43-4d01-a8c6-540d3237939a | private-01 | 954b2ceb-043c-4c70-b1a4-dac97d6a9a7a |

#### openstack network show f254cb2d-ac43-4d01-a8c6-540d3237939a

+---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value | +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | admin_state_up | UP | | availability_zone_hints | | | availability_zones | nova | | created_at | 2020-08-11T20:41:11Z | | description | | | dns_domain | None | | id | f254cb2d-ac43-4d01-a8c6-540d3237939a | | ipv4_address_scope | None | | ipv6_address_scope | None | | is_default | None | | is_vlan_transparent | None | | location | cloud='', project.domain_id=, project.domain_name='Default', project.id='61c11d1b8c7046bfb51c47158d4b46c1', project.name='admin', region_name='RegionOne', zone= | | mtu | 1442 | | name | private-01 | | port_security_enabled | True | | project_id | 61c11d1b8c7046bfb51c47158d4b46c1 | | provider:network_type | geneve | | provider:physical_network | None | | provider:segmentation_id | 10 | | qos_policy_id | None | | revision_number | 5 | | router:external | Internal | | segments | None | | shared | False | | status | ACTIVE
| | subnets | 954b2ceb-043c-4c70-b1a4-dac97d6a9a7a | | tags | | | updated_at | 2020-08-17T21:57:03Z

ip a

1: lo: <loopback,up,lower_up> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: em1: <broadcast,multicast,up,lower_up> mtu 1500 qdisc mq master ovs-system state UP group default qlen 1000 link/ether f8:bc:12:3e:d3:08 brd ff:ff:ff:ff:ff:ff inet6 fe80::fabc:12ff:fe3e:d308/64 scope link valid_lft forever preferred_lft forever 3: em2: <broadcast,multicast,up,lower_up> mtu 1500 qdisc mq state UP group default qlen 1000 <<<<<<<<<<<<<<<<< link/ether f8:bc:12:3e:d3:09 brd ff:ff:ff:ff:ff:ff inet 192.168.2.16/24 brd 192.168.2.255 scope global em2 valid_lft forever preferred_lft forever inet6 fe80::fabc:12ff:fe3e:d309/64 scope link valid_lft forever preferred_lft forever 4: em3: <broadcast,multicast> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether f8:bc:12:3e:d3:0a brd ff:ff:ff:ff:ff:ff 5: em4: <broadcast,multicast> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether f8:bc:12:3e:d3:0b brd ff:ff:ff:ff:ff:ff 6: ovs-system: <broadcast,multicast> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether d2:e5:79:d6:78:5a brd ff:ff:ff:ff:ff:ff 7: br-int: <broadcast,multicast> mtu 1442 qdisc noop state DOWN group default qlen 1000 link/ether 1a:eb:63:c2:54:48 brd ff:ff:ff:ff:ff:ff 9: tap0f6e2dfe-14: <broadcast,multicast,up,lower_up> mtu 1442 qdisc pfifo_fast master ovs-system state UNKNOWN group default qlen 1000 link/ether fe:16:3e:3c:9f:69 brd ff:ff:ff:ff:ff:ff inet6 fe80::fc16:3eff:fe3c:9f69/64 scope link valid_lft forever preferred_lft forever 10: tapa0422cca-e0@if2: <broadcast,multicast,up,lower_up> mtu 1500 qdisc noqueue master ovs-system state UP group default qlen 1000 link/ether de:24:e1:ce:3a:26 brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet6 fe80::dc24:e1ff:fece:3a26/64 scope link valid_lft forever preferred_lft forever 12: tap30b5e74a-29: <broadcast,multicast,up,lower_up> mtu 1442 qdisc pfifo_fast master ovs-system state UNKNOWN group default qlen 1000 link/ether fe:16:3e:3c:52:0a brd ff:ff:ff:ff:ff:ff inet6 fe80::fc16:3eff:fe3c:520a/64 scope link valid_lft forever preferred_lft forever 16: tap58ca4766-13: <broadcast,multicast,up,lower_up> mtu 1442 qdisc pfifo_fast master ovs-system state UNKNOWN group default qlen 1000 link/ether fe:16:3e:0f:bf:d6 brd ff:ff:ff:ff:ff:ff inet6 fe80::fc16:3eff:fe0f:bfd6/64 scope link valid_lft forever preferred_lft forever 18: br-ex: <broadcast,multicast,up,lower_up> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000 <<<<<<<<<<<<<<<<<<<< link/ether f8:bc:12:3e:d3:08 brd ff:ff:ff:ff:ff:ff inet 192.168.1.16/24 brd 192.168.1.255 scope global br-ex valid_lft forever preferred_lft forever inet6 fe80::74aa:4eff:feca:c446/64 scope link valid_lft forever preferred_lft forever

ovs-vsctl show

1226dfc3-e27c-4f2f-a958-e24aee9caf0f Manager "ptcp:6640:127.0.0.1" is_connected: true Bridge br-int Controller "tcp:127.0.0.1:6633" is_connected: true fail_mode: secure datapath_type: system Port "tap30b5e74a-29" tag: 1 Interface "tap30b5e74a-29" Port "tap0f6e2dfe-14" tag: 1 Interface "tap0f6e2dfe-14" Port br-int Interface br-int type: internal Port "tap58ca4766-13" tag: 1 Interface "tap58ca4766-13" Port "tapa0422cca-e0" Interface "tapa0422cca-e0" Bridge br-ex Port br-ex Interface br-ex type: internal Port "em1" Interface "em1" ovs_version: "2.12.0"

# nova list

+--------------------------------------+---------------+--------+------------+-------------+-------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+---------------+--------+------------+-------------+-------------------------+ | 1c3a57b9-54a9-4762-ae74-1f4cc58b15e2 | vm01 | ACTIVE | - | Running | private-01=172.17.1.170 | | 61157392-9cad-4126-aa78-32d27f7c172b | vm_ansible_02 | ACTIVE | - | Running | private-01=172.17.1.184 | | 0172ef50-72d6-464e-b209-196f34e3369b | vm_cirros01 | ACTIVE | - | Running | private-01=172.17.1.131 | +--------------------------------------+---------------+--------+------------+-------------+-------------------------+

Problems with openstack newton on CentOS 7

I recently did all in one node Openstack Newton setup on CentOS 7 box. It went with much less hussle. But I am facing the networking issue of connecting to the instances which are on virtual network with the controller node. 1. I cannot ping the nodes (172.17.y.y) in private virtual network from the host node(192.168.x.x). I already added entries into static routing table but its not making any difference. Tried adding additonal roytes as part of the private virtual network subnet from Openstack dashboard, still the problem persists.

  1. All the nodes on the private virtual network can ping each other i.e 172.17 IP range ones.Node with IP 172.17.1.124 can ping node 172.17.1.87 without any issue. But these nodes are unable to ping the private network Gateway IP 172.17.1.1. It says destination not reachable.

  2. Also Can someone suggest how should a External provider network be setup ? Adding a provider network and a router between provider and priavte network does not help in communicating private nodes with external world i.e. cannot ping google.com , cannot ping host controller node.

It would be really great if someone can help in resolving any of the above issues.

Thanks in Advance !

# rpm -qa | grep newton

centos-release-openstack-newton-1-2.el7.noarch

Virtual Network setup :

openstack network list

openstack network list
+--------------------------------------+------------+--------------------------------------+
| ID                                   | Name       | Subnets                              |
+--------------------------------------+------------+--------------------------------------+
| 87752907-eec8-4b43-a1e5-afeb90739138 | public-03  | 00eaf4bd-074a-4cc4-a001-5159ecebd820 |
| f254cb2d-ac43-4d01-a8c6-540d3237939a | private-01 | 954b2ceb-043c-4c70-b1a4-dac97d6a9a7a |

|
#### ####
openstack network show f254cb2d-ac43-4d01-a8c6-540d3237939a 

f254cb2d-ac43-4d01-a8c6-540d3237939a +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value | +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | admin_state_up | UP | | availability_zone_hints | | | availability_zones | nova | | created_at | 2020-08-11T20:41:11Z | | description | | | dns_domain | None | | id | f254cb2d-ac43-4d01-a8c6-540d3237939a | | ipv4_address_scope | None | | ipv6_address_scope | None | | is_default | None | | is_vlan_transparent | None | | location | cloud='', project.domain_id=, project.domain_name='Default', project.id='61c11d1b8c7046bfb51c47158d4b46c1', project.name='admin', region_name='RegionOne', zone= | | mtu | 1442 | | name | private-01 | | port_security_enabled | True | | project_id | 61c11d1b8c7046bfb51c47158d4b46c1 | | provider:network_type | geneve | | provider:physical_network | None | | provider:segmentation_id | 10 | | qos_policy_id | None | | revision_number | 5 | | router:external | Internal | | segments | None | | shared | False | | status | ACTIVE
| | subnets | 954b2ceb-043c-4c70-b1a4-dac97d6a9a7a | | tags | | | updated_at | 2020-08-17T21:57:03Z

2020-08-17T21:57:03Z
ip a

1: lo: <loopback,up,lower_up> <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: em1: <broadcast,multicast,up,lower_up> <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master ovs-system state UP group default qlen 1000
    link/ether f8:bc:12:3e:d3:08 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fabc:12ff:fe3e:d308/64 scope link
       valid_lft forever preferred_lft forever
3: em2: <broadcast,multicast,up,lower_up> <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000           <<<<<<<<<<<<<<<<< **<<<<<<<<<<<<<<<<<**
    link/ether f8:bc:12:3e:d3:09 brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.16/24 brd 192.168.2.255 scope global em2
       valid_lft forever preferred_lft forever
    inet6 fe80::fabc:12ff:fe3e:d309/64 scope link
       valid_lft forever preferred_lft forever
4: em3: <broadcast,multicast> <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether f8:bc:12:3e:d3:0a brd ff:ff:ff:ff:ff:ff
5: em4: <broadcast,multicast> <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether f8:bc:12:3e:d3:0b brd ff:ff:ff:ff:ff:ff
6: ovs-system: <broadcast,multicast> <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether d2:e5:79:d6:78:5a brd ff:ff:ff:ff:ff:ff
7: br-int: <broadcast,multicast> <BROADCAST,MULTICAST> mtu 1442 qdisc noop state DOWN group default qlen 1000
    link/ether 1a:eb:63:c2:54:48 brd ff:ff:ff:ff:ff:ff
9: tap0f6e2dfe-14: <broadcast,multicast,up,lower_up> <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1442 qdisc pfifo_fast master ovs-system state UNKNOWN group default qlen 1000
    link/ether fe:16:3e:3c:9f:69 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc16:3eff:fe3c:9f69/64 scope link
       valid_lft forever preferred_lft forever
10: tapa0422cca-e0@if2: <broadcast,multicast,up,lower_up> <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master ovs-system state UP group default qlen 1000
    link/ether de:24:e1:ce:3a:26 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fe80::dc24:e1ff:fece:3a26/64 scope link
       valid_lft forever preferred_lft forever
12: tap30b5e74a-29: <broadcast,multicast,up,lower_up> <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1442 qdisc pfifo_fast master ovs-system state UNKNOWN group default qlen 1000
    link/ether fe:16:3e:3c:52:0a brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc16:3eff:fe3c:520a/64 scope link
       valid_lft forever preferred_lft forever
16: tap58ca4766-13: <broadcast,multicast,up,lower_up> <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1442 qdisc pfifo_fast master ovs-system state UNKNOWN group default qlen 1000
    link/ether fe:16:3e:0f:bf:d6 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc16:3eff:fe0f:bfd6/64 scope link
       valid_lft forever preferred_lft forever
18: br-ex: <broadcast,multicast,up,lower_up> <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000      <<<<<<<<<<<<<<<<<<<< **<<<<<<<<<<<<<<<<<<<<**
    link/ether f8:bc:12:3e:d3:08 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.16/24 brd 192.168.1.255 scope global br-ex
       valid_lft forever preferred_lft forever
    inet6 fe80::74aa:4eff:feca:c446/64 scope link
       valid_lft forever preferred_lft forever

forever

ovs-vsctl show

1226dfc3-e27c-4f2f-a958-e24aee9caf0f
    Manager "ptcp:6640:127.0.0.1"
        is_connected: true
    Bridge br-int
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        datapath_type: system
        Port "tap30b5e74a-29"
            tag: 1
            Interface "tap30b5e74a-29"
        Port "tap0f6e2dfe-14"
            tag: 1
            Interface "tap0f6e2dfe-14"
        Port br-int
            Interface br-int
                type: internal
        Port "tap58ca4766-13"
            tag: 1
            Interface "tap58ca4766-13"
        Port "tapa0422cca-e0"
            Interface "tapa0422cca-e0"
    Bridge br-ex
        Port br-ex
            Interface br-ex
                type: internal
        Port "em1"
            Interface "em1"
    ovs_version: "2.12.0"

"2.12.0"
# nova list

+--------------------------------------+---------------+--------+------------+-------------+-------------------------+
| ID                                   | Name          | Status | Task State | Power State | Networks                |
+--------------------------------------+---------------+--------+------------+-------------+-------------------------+
| 1c3a57b9-54a9-4762-ae74-1f4cc58b15e2 | vm01          | ACTIVE | -          | Running     | private-01=172.17.1.170 |
| 61157392-9cad-4126-aa78-32d27f7c172b | vm_ansible_02 | ACTIVE | -          | Running     | private-01=172.17.1.184 |
| 0172ef50-72d6-464e-b209-196f34e3369b | vm_cirros01   | ACTIVE | -          | Running     | private-01=172.17.1.131 |
+--------------------------------------+---------------+--------+------------+-------------+-------------------------+

+--------------------------------------+---------------+--------+------------+-------------+-------------------------+