newtron newbie -- connect instances to local network

asked 2018-06-04 06:42:13 -0500

frm73 gravatar image

Hello everyone,

I'm trying to connect the instances in an Openstack Newton installation to my existing (192.168.6.0/24; gw: 192.168.6.1 (openbsd/pf) and dns/dhcp 192.168.6.15) network but am so far am failing miserably.

Here is my config (controller and hv's are all vm's in an ESX 6.5 server running ubuntu 16.04):

  • controller - 192.168.6.119 (connected to local network) and 172.16.6.119 (vm only isolated network)
  • hv01/02/03 - 192.168.6.120/121/122 and 172.16.6.120/121/122 (same network config as above)

compute service list

+----+------------------+--------------+----------+---------+-------+----------------------------+
| ID | Binary           | Host         | Zone     | Status  | State | Updated At                 |
+----+------------------+--------------+----------+---------+-------+----------------------------+
|  1 | nova-conductor   | controller01 | internal | enabled | up    | 2018-06-04T11:14:11.000000 |
|  5 | nova-consoleauth | controller01 | internal | enabled | up    | 2018-06-04T11:14:12.000000 |
|  6 | nova-scheduler   | controller01 | internal | enabled | up    | 2018-06-04T11:14:16.000000 |
|  7 | nova-compute     | hv01         | nova     | enabled | up    | 2018-06-04T11:14:08.000000 |
|  8 | nova-compute     | hv02         | nova     | enabled | up    | 2018-06-04T11:14:15.000000 |
|  9 | nova-compute     | hv03         | nova     | enabled | up    | 2018-06-04T11:14:13.000000 |
+----+------------------+--------------+----------+---------+-------+----------------------------+

network agent list:

+--------------------------------------+--------------------+--------------+-------------------+-------+-------+---------------------------+
| ID                                   | Agent Type         | Host         | Availability Zone | Alive | State | Binary                    |

+--------------------------------------+--------------------+--------------+-------------------+-------+-------+---------------------------+
| 16a7e048-b646-412e-8174-1205799502f7 | Linux bridge agent | controller01 | None              | True  | UP    | neutron-linuxbridge-agent |
| 36f624ac-055b-4263-9533-5bd86981fb7b | Metadata agent     | controller01 | None              | True  | UP    | neutron-metadata-agent    |
| 542e0f2b-7345-43e7-a29e-7dd412308f8f | Linux bridge agent | hv02         | None              | True  | UP    | neutron-linuxbridge-agent |
| 7b6b8639-f767-452a-9b94-94c6332e2201 | DHCP agent         | controller01 | nova              | True  | UP    | neutron-dhcp-agent        |
| a08089c6-a363-40de-b86a-5c8cd79f18d9 | Linux bridge agent | hv03         | None              | True  | UP    | neutron-linuxbridge-agent |
| b5007ae6-7915-4108-9507-c8a54ff784e4 | L3 agent           | controller01 | nova              | True  | UP    | neutron-l3-agent          |
| c72101f3-27cd-4ff6-9bd2-f1fd29b876ed | Linux bridge agent | hv01         | None              | True  | UP    | neutron-linuxbridge-agent |
+--------------------------------------+--------------------+--------------+-------------------+-------+-------+---------------------------+

volume service list (/dev/sdb secondary disk on all hv's)

+------------------+--------------+------+---------+-------+----------------------------+
| Binary           | Host         | Zone | Status  | State | Updated At                 |
+------------------+--------------+------+---------+-------+----------------------------+
| cinder-scheduler | controller01 | nova | enabled | up    | 2018-06-04T11:14:25.000000 |
| cinder-volume    | hv03@lvm     | nova | enabled | up    | 2018-06-04T11:14:27.000000 |
| cinder-volume    | hv01@lvm     | nova | enabled | up    | 2018-06-04T11:14:24.000000 |
| cinder-volume    | hv02@lvm     | nova | enabled | up    | 2018-06-04T11:14:26.000000 |
+------------------+--------------+------+---------+-------+----------------------------+

Network definitions:

neutron net-create external_network --shared --provider:network_type flat --provider:physical_network provider
neutron subnet-create --name public_subnet --allocation-pool=start=192.168.6.200,end=192.168.6.210 --gateway=192.168.6.1 external_network 192.168.6.0/24 --dns-nameserver 192.168.6.15

The "provider" par of the first command is what I specified in /etc/neutron/plugins/ml2/linuxbridge_agent.ini:

physical_interface_mappings = provider:ensXX

on the hv's and controller.

What I see in horizon is an IP being alocated but the instance does not get it and what's ever worse is that if I set the IP manually on the instance NIC, I have no connectivity to it or from it. The security groups allow all in and all out.

What am I missing here?

PS: I used the official docs to setup the whole environment.

edit retag flag offensive close merge delete