Problems with openstack newton on CentOS 7

asked 2020-08-17 22:55:20 -0600

arka_24 gravatar image

updated 2020-08-18 18:43:48 -0600

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 ...
(more)
edit retag flag offensive close merge delete

Comments

Why Newton? It's ancient.

How did you set up the cloud, and can you provide details of the virtual network setup?

Bernd Bausch gravatar imageBernd Bausch ( 2020-08-18 00:21:40 -0600 )edit

The Neutron install guide shows how to set up an external network.

Bernd Bausch gravatar imageBernd Bausch ( 2020-08-18 00:23:12 -0600 )edit

I updated the virtual private network setup. Its based on client environment setup , So had to go with newton version of openstack. using following link to setup provider external network: https://docs.openstack.org/newton/install-guide-ubuntu/launch-instance-networks-provider.html (https://docs.openstack.org/newton/ins...)

arka_24 gravatar imagearka_24 ( 2020-08-18 12:33:55 -0600 )edit

How did you set up the cloud?

When you try to connect from the host to the instances, I suppose you use their floating IPs, correct?

Can you show details of the Neutron router that connects private-01 and public-03?

Bernd Bausch gravatar imageBernd Bausch ( 2020-08-18 18:51:54 -0600 )edit

The information you provided contains nothing that raises my suspicion, but you say that instances can't connect to their router, so that I think we should look into the router. Are you able to show me the IP addresses and routing table in the router's network namespace?

Bernd Bausch gravatar imageBernd Bausch ( 2020-08-18 18:53:41 -0600 )edit