neutron dnsmasq keeps pushing the default gateway
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Undecided
|
Unassigned |
Bug Description
neutron dnsmasq keeps pushing the default gateway via "0.0.0.0/0" even when an empty router option has been defined for a port.
Here are some internal of the dnsmasq opts on the agent side:
$ cat /var/lib/
tag:subnet-
tag:subnet-
tag:subnet-
tag:port-
tag:port-
tag:port-
tag:port-
tag:port-
tag:port-
tag:port-
tag:port-
tag:port-
tag:port-
tag:port-
tag:subnet-
Here is a port definition:
$ openstack port show 5b9b05e2-
[{'opt_name': 'router', 'opt_value': '', 'ip_version': 4}]
Here is a subnet definition:
$ openstack subnet show 6bafc9a4-
+------
| Field | Value |
+------
| allocation_pools | 10.180.
| cidr | 10.180.0.0/24 |
| created_at | 2022-02-
| description | |
| dns_nameservers | |
| dns_publish_
| enable_dhcp | True |
| gateway_ip | 10.180.0.1 |
| host_routes | destination=
| | destination=
| | destination=
| | destination=
| | destination=
| | destination=
| | destination=
| id | 6bafc9a4-
| ip_version | 4 |
| ipv6_address_mode | None |
| ipv6_ra_mode | None |
| name | subnet-data |
| network_id | b7b18782-
| project_id | ba3fddd34b014b2
| revision_number | 36 |
| segment_id | None |
| service_types | |
| subnetpool_id | None |
| tags | skip-monitoring |
| updated_at | 2022-06-
+------
You can clearly see that it does have a gateway_ip, but I don't want it to be pushed to a VM (multiple network interfaces). I also configured a custom dnsmasq option: empty "option:router", but dnsmasq still has the "0.0.0.
$ cat /run/systemd/
ROUTES=
There should be a way to get rid of 0.0.0.0/0 destination.
Changed in neutron: | |
status: | Invalid → New |
Looks like this is the code responsible for a bug: https:/ /github. com/openstack/ neutron/ blob/af0dd9bcb5 c6df6bc6ba8dbdb cba65a821178e2c /neutron/ agent/linux/ dhcp.py# L1219-L1222