Ask Your Question
0

no external connectivity for a flat network

asked 2016-03-30 14:28:04 -0500

rh3 gravatar image

I've gotten lost in trying to set up a simple flat network on Kilo. What I am trying to accomplish is a flat network (no VLANs / no floating IPs) that connects to an external network that provides IP addressing via DHCP (I'm not sure if I can use the external network DHCP, if not, I would like to use static IP addresses). The first interface is the AIO node interface and the second interface (eno33557248) will be the provider network for the instances. However, even when using the AIO DHCP server to assign an IP address, there is still no connectivity to the external network. The only thing I can think of is that the bridges are not comming up. Could someone please let me know what I need to do to get this working.

Creating an all-in-one openstack instance. In stackanswer I have made these changes: CONFIG_NEUTRON_L3_EXT_BRIDGE=br-ex1 CONFIG_NEUTRON_ML2_TYPE_DRIVERS=flat,vxlan CONFIG_NEUTRON_ML2_FLAT_NETWORKS=flatnet1 CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=flatnet1:br-ex1 CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-ex1:eno33557248 CONFIG_PROVISION_DEMO=n

Changed /etc/sysconfig/network-scripts/ifcfg-eno33557248 to: DEVICE=eno33557248 DEVICETYPE=ovs TYPE=OVSPort OVS_BRIDGE=br-ex1 ONBOOT=yes BOOTPROTO=none

Created /etc/sysconfig/network-scripts/ifcfg-br-ex1 as: DEFROUTE=yes NAME=eno33557248 ONBOOT=yes PEERDNS=yes PEERROUTES=yes DEVICE=br-ex1 DEVICETYPE=ovs OVSBOOTPROTO=dhcp TYPE=OVSBridge

Stop using NetworkManager, start using network systemctl disable NetworkManager systemctl stop NetworkManager systemctl enable network.service systemctl start network.service systemctl status -l network.service

Which gives me: # ovs-vsctl show 92465fed-c9f1-4897-8d54-2a558eefe6f5 Bridge br-int fail_mode: secure Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Port "qvoeb6cf325-cc" tag: 1 Interface "qvoeb6cf325-cc" Port "int-br-ex1" Interface "int-br-ex1" type: patch options: {peer="phy-br-ex1"} Port br-int Interface br-int type: internal Port "tapd41ecd37-f1" tag: 1 Interface "tapd41ecd37-f1" type: internal Bridge br-tun fail_mode: secure Port br-tun Interface br-tun type: internal Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Bridge "br-ex1" Port "br-ex1" Interface "br-ex1" type: internal Port "phy-br-ex1" Interface "phy-br-ex1" type: patch options: {peer="int-br-ex1"} Port "eno33557248" Interface "eno33557248" ovs_version: "2.3.1"

Create network and subnet: neutron net-create --provider:physical_network=flatnet1 --provider:network_type=flat --shared MGMT

neutron subnet-create --name MGMTsub --no-gateway --dns-nameserver 172.24.68.171 --enable-dhcp --host-route destination=0.0.0.0/0,nexthop=172.24.65.1 --allocation-pool start=172.24.68.86,end=172.24.68.90 MGMT 172.24.68.0/24

# neutron net-show MGMT
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 5c7f91b5-0e87-4fc4-b3a1-cac34d30a61d |
| mtu                       | 0                                    |
| name                      | MGMT                                 |
| provider:network_type     | flat                                 |
| provider:physical_network | flatnet1                             |
| provider:segmentation_id  |                                      |
| router:external           | False                                |
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   | d477fd63-a031-4362-b2a1-56f18b1af27d |
| tenant_id                 | 4b7a4036f7e8477791a8e0ad87d94e43     |
+---------------------------+--------------------------------------+

# neutron subnet-show MGMTsub
+-------------------+--------------------------------------------------------+
| Field             | Value                                                  |
+-------------------+--------------------------------------------------------+
| allocation_pools  | {"start": "172.24.68.86", "end": "172.24.68.90"}       |
| cidr              | 172.24.68.0/24                                         |
| dns_nameservers   | 172.24.68.171                                          |
| enable_dhcp       | True                                                   |
| gateway_ip        | 172.24.68.1                                            |
| host_routes       | {"destination": "0.0.0.0/0", "nexthop": "172.24.65.1"} |
| id                | d477fd63-a031-4362-b2a1-56f18b1af27d                   |
| ip_version        | 4                                                      |
| ipv6_address_mode |                                                        |
| ipv6_ra_mode      |                                                        |
| name              | MGMTsub                                                |
| network_id        | 5c7f91b5-0e87-4fc4-b3a1-cac34d30a61d                   |
| subnetpool_id     |                                                        |
| tenant_id         | 4b7a4036f7e8477791a8e0ad87d94e43                       |
+-------------------+--------------------------------------------------------+

Create an instance which results in no outside access. glance image-create --name "cirros" --file /root/images/cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --is-public true --progress

nova boot --image cirros --flavor ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-07-09 04:43:35 -0500

mohammed gravatar image

Did you find how to do that. I'm now trying to install pike and facing the same problem

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-03-30 14:28:04 -0500

Seen: 393 times

Last updated: Mar 30 '16