neutron setting incorrect gateway
Juno on CentOS 7, following the RDO quickstart directions as well as the instructions from the question: https://ask.openstack.org/en/question... .
So, I have private and public network:
[root@os-storage-1 ~(keystone_admin)]# neutron net-list
+--------------------------------------+---------+---------------------------------------------------+
| id | name | subnets |
+--------------------------------------+---------+---------------------------------------------------+
| f1a1787f-2325-455e-87e1-d8408c1fb405 | public | 5c55e3ba-f907-4980-b255-d7841bd68752 10.5.8.0/21 |
| f0145e45-5e46-4bad-9f90-813dce771f9a | private | b9fb8332-1bd9-4068-94ed-001212d34f9a 10.50.0.0/16 |
+--------------------------------------+---------+---------------------------------------------------+
The public network, which I want to be routed and used as floating IPs, was created with:
neutron subnet-create public 10.5.8.0/21 --name public_subnet --enable_dhcp=False --allocation-pool start=10.5.8.2,end=10.5.9.254 --gateway=10.5.8.1
The output from the command lists the gateway IP as 10.5.8.1, which is what I want. But the external gateway port that actually gets assigned to the router is 10.5.8.2, and it's listed as down in the Dashboard.
[root@os-storage-1 ~(keystone_admin)]# neutron router-port-list router1
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------+
| acd9469d-ae02-410c-b508-e768f60ecb89 | | fa:16:3e:2d:f6:e6 | {"subnet_id": "b9fb8332-1bd9-4068-94ed-001212d34f9a", "ip_address": "10.50.0.1"} |
| fb3b625b-f023-4afb-946d-8f2679f19eaa | | fa:16:3e:2a:0f:bf | {"subnet_id": "5c55e3ba-f907-4980-b255-d7841bd68752", "ip_address": "10.5.8.2"} |
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------+
I don't understand what I'm doing wrong. And to make matters stranger ( and I don't know if it's related) I have a completely unrelated (to anything!) ip assigned to virbr0.
br-ex: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.5.0.20 netmask 255.255.254.0 broadcast 10.5.1.254
inet6 fe80::862b:2bff:fe78:316c prefixlen 64 scopeid 0x20<link>
ether 84:2b:2b:78:31:6c txqueuelen 0 (Ethernet)
RX packets 19150 bytes 2861722 (2.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 13829 bytes 9368627 (8.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::862b:2bff:fe78:316c prefixlen 64 scopeid 0x20<link>
ether 84:2b:2b:78:31:6c txqueuelen 1000 (Ethernet)
RX packets 23484 bytes 3243101 (3.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16215 bytes 9588534 (9.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 6a:11:e4:94:d2:21 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
And, just because someone always asks for it when troubleshooting neutron, here's the output of ovs-vsctl show
[root@os-storage-1 ~(keystone_admin)]# ovs-vsctl show
c8c5c457-f735-4893-8ff5-ab2d3fd9f198
Bridge br-ex
Port "qg-fb3b625b-f0"
Interface "qg-fb3b625b-f0"
type: internal
Port "eth0"
Interface "eth0"
Port br-ex
Interface br-ex
type: internal
Bridge br-tun
Port br-tun
Interface br-tun
type: internal
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
Bridge br-int
fail_mode: secure
Port patch-tun
Interface patch-tun
type ...