Validate if fixed_ip given for port isn't the same as subnet's gateway_ip
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Won't Fix
|
High
|
Slawek Kaplonski |
Bug Description
Currently when new port is created with fixed_ip given, neutron is not validating if that fixed_ip address isn't the same as subnet's gateway IP. That may cause problems, like e.g.:
$ openstack subnet show <subnet-id>
| allocation_pools | 10.0.0.2-10.0.0.254
| cidr | 10.0.0.0/24
| enable_dhcp | True
...
| gateway_ip | 10.0.0.1
$ nova boot --flavor test --image test --nic net-id=
The instance will be created successfully, but after that, network communication issue could be happened since the gateway ip conflict.
So Neutron should forbid creation of the port with gateway's ip address if it is not router's port (device_owner isn't set for one of the router device owners).
Changed in neutron: | |
assignee: | nobody → Slawek Kaplonski (slaweq) |
status: | New → Triaged |
tags: | added: l3-ipam-dhcp |
Changed in neutron: | |
importance: | Undecided → High |
Changed in neutron: | |
status: | In Progress → Opinion |
Fix proposed to branch: master /review. opendev. org/c/openstack /neutron/ +/803334
Review: https:/