Adding gateway to flat externat network breaks HA routers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Medium
|
Babu Shanmugam |
Bug Description
I am running Juno on Ubuntu 14.04. OpenStack is installed from source and updated to the latest this morning. I am trying to build HA routers using VXLAN tunnels. When I set up my external network as a VXXLAN network type everything works properly. If I delete the VXLAN based external network as the gateway to this network and change the external network to a flat network by adding the flat network as the gateway everything with the qrouter namespace disappears except for the lo interface.
Here is my ml2_conf.ini file:
[ml2]
type_drivers = vxlan,flat
tenant_
mechanism_drivers = linuxbridge,
[ml2_type_flat]
flat_networks = physnet1
[ml2_type_vlan]
[ml2_type_gre]
[ml2_type_vxlan]
vni_ranges = 100:200
vxlan_group = 224.0.0.1
[securitygroup]
firewall_driver = neutron.
enable_
[agent]
l2population = True
tunnel_type = vxlan
[linuxbridge]
physical_
[l2pop]
agent_boot_time = 180
[vxlan]
enable_vxlan = True
vxlan_group = 224.0.0.1
local_ip = 10.0.2.5
l2_population = True
contents of the qrouter namespace with external VXLAN network:
root@network:~# ip netns exec qrouter-
1: lo: <LOOPBACK,
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: ha-9c3955a7-32: <BROADCAST,
link/ether fa:16:3e:10:4d:61 brd ff:ff:ff:ff:ff:ff
inet 169.254.192.12/18 brd 169.254.255.255 scope global ha-9c3955a7-32
valid_lft forever preferred_lft forever
inet6 fe80::f816:
valid_lft forever preferred_lft forever
3: qr-88c5895b-17: <BROADCAST,
link/ether fa:16:3e:6d:54:62 brd ff:ff:ff:ff:ff:ff
inet 10.2.0.1/28 scope global qr-88c5895b-17
valid_lft forever preferred_lft forever
inet6 fe80::f816:
valid_lft forever preferred_lft forever
4: qr-b4a07ce5-34: <BROADCAST,
link/ether fa:16:3e:ae:b8:65 brd ff:ff:ff:ff:ff:ff
inet 10.1.0.1/28 scope global qr-b4a07ce5-34
valid_lft forever preferred_lft forever
inet6 fe80::f816:
valid_lft forever preferred_lft forever
5: qg-f454eff8-ea: <BROADCAST,
link/ether fa:16:3e:37:3e:a9 brd ff:ff:ff:ff:ff:ff
inet 172.16.0.32/24 scope global qg-f454eff8-ea
valid_lft forever preferred_lft forever
inet6 fe80::f816:
valid_lft forever preferred_lft forever
after removing the router gateway:
root@network:~# ip netns exec qrouter-
1: lo: <LOOPBACK,
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: ha-87269710-52: <BROADCAST,
link/ether fa:16:3e:00:b6:9d brd ff:ff:ff:ff:ff:ff
inet 169.254.192.14/18 brd 169.254.255.255 scope global ha-87269710-52
valid_lft forever preferred_lft forever
inet6 fe80::f816:
valid_lft forever preferred_lft forever
3: qr-dc345670-13: <BROADCAST,
link/ether fa:16:3e:13:2b:52 brd ff:ff:ff:ff:ff:ff
inet6 fe80::f816:
valid_lft forever preferred_lft forever
4: qr-bfe17de0-2c: <BROADCAST,
link/ether fa:16:3e:04:ef:91 brd ff:ff:ff:ff:ff:ff
inet6 fe80::f816:
valid_lft forever preferred_lft forever
Everything looks good up to this point.
Building the following external network:
root@controller:~# neutron router-create MyRouter1 --distributed False --ha True
Created a new router:
+------
| Field | Value |
+------
| admin_state_up | True |
| distributed | False |
| external_
| ha | True |
| id | a423edc7-
| name | MyRouter1 |
| routes | |
| status | ACTIVE |
| tenant_id | f8207c03fd1e4b4
+------
root@controller:~# neutron subnet-create --name public1-subnet public --allocation-pool start=172.
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "172.16.1.32", "end": "172.16.1.64"} |
| cidr | 172.16.1.0/24 |
| dns_nameservers | |
| enable_dhcp | False |
| gateway_ip | 172.16.1.6 |
| host_routes | |
| id | 2ce8e9fd-
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | public1-subnet |
| network_id | fe45f7ce-
| tenant_id | f8207c03fd1e4b4
+------
Now adding this new network as the gateway:
root@controller:~# neutron router-gateway-set MyRouter1 public1
I see this on the network node:
root@network:~# ip netns exec qrouter-
1: lo: <LOOPBACK,
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
Changed in neutron: | |
assignee: | nobody → Numan Siddique (numansiddique) |
Changed in neutron: | |
importance: | Undecided → Medium |
tags: | added: l3-ipam-dhcp |
Changed in neutron: | |
assignee: | Numan Siddique (numansiddique) → nobody |
Changed in neutron: | |
assignee: | nobody → Babu Shanmugam (anbu-p) |
Changed in neutron: | |
status: | New → Invalid |
Can you please share the commands and the output of those commands you used to create networks, router, subnet etc. before you created the flat network.