gateway update restriction should apply only to router interfaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
Kevin Benton |
Bug Description
The restriction that prevents a subnet's gateway IP from being updated if it points to an IP in use by a port can get the subnet in a stuck state without messing with a port if the wrong gateway_ip is set.
Take the following example:
administrator@
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "10.0.0.3", "end": "10.0.0.250"} |
| cidr | 10.0.0.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 10.0.0.1 |
| host_routes | |
| id | 21c9a4b3-
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | bojangles |
| network_id | 3c6ca69c-
| subnetpool_id | |
| tenant_id | de56db175c1d48b
+------
administrator@
Created a new port:
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| dns_assignment | {"hostname": "host-10-0-0-2", "ip_address": "10.0.0.2", "fqdn": "host-10-
| dns_name | |
| fixed_ips | {"subnet_id": "21c9a4b3-
| id | 3cc9c4a0-
| mac_address | fa:16:3e:09:d2:29 |
| name | |
| network_id | 3c6ca69c-
| port_security_
| security_groups | fa5cdb36-
| status | DOWN |
| tenant_id | de56db175c1d48b
+------
administrator@
Updated subnet: bojangles
administrator@
Current gateway ip 10.0.0.2 already in use by port 3cc9c4a0-
The subnet is now pinned to the 10.0.0.2 port so the user will have to destroy the port or update it's fixed IP before the subnet gateway can be changed. If the port belongs to an active VM, this is disruptive.
The restriction should be loosened to only apply to router ports, which is what it was originally intended for (https:/
Changed in neutron: | |
assignee: | nobody → Kevin Benton (kevinbenton) |
Changed in neutron: | |
importance: | Undecided → Low |
Changed in neutron: | |
milestone: | none → mitaka-3 |
Fix proposed to branch: master /review. openstack. org/264996
Review: https:/