If network:dhcp port is deleted, it will never be recreated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-ovn |
Invalid
|
Undecided
|
Unassigned | ||
neutron |
Invalid
|
Medium
|
Unassigned |
Bug Description
If dhcp port of a subnet is deleted, it will never be recreated.
Versions:
=========
neutron: 2:16.4.
ovn: 20.03.2-
Steps to reproduce:
===================
1. Network: dc4c5b7c-
Subnet: 1eeb158c-
Dhcp is enabled
port list shows the dhcp port:
$ openstack port list --network dc4c5b7c-
+------
| ID | Name | MAC Address | Fixed IP Addresses | Status | Security Groups | Device Owner | Tags |
+------
| 3d58eaae-
+------
2. Disable dhcp on subnet and remove the dhcp port
$ openstack subnet set --no-dhcp 1eeb158c-
$ openstack port delete 3d58eaae-
3. Enable dhcp on subnet
$ openstack subnet set --dhcp 1eeb158c-
Expected Result
===============
Dhcp port is recreated
Actual Result
=============
Dhcp port is not created
Workaround
==========
Create manually the dhcp port:
$ openstack port create --network 4dc4c5b7c-
Toggle dhcp on subnet 1eeb158c-
description: | updated |
description: | updated |
description: | updated |
Changed in networking-ovn: | |
status: | New → Invalid |
Although this was from Ussuri, I tried the same steps on Yoga and it failed the same way. There was also a related error in the server log about not being able to find the metadata port.