Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1994591

Summary: [OSP16.1][OVN] dhcp options are not updated if the dhcp ip address has been changed
Product: Red Hat OpenStack Reporter: Nicolas Bourgeois <nbourgeo>
Component: python-networking-ovnAssignee: Rodolfo Alonso <ralonsoh>
Status: CLOSED ERRATA QA Contact: Eduardo Olivares <eolivare>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: apevec, dalvarez, eolivare, jlibosva, lhh, majopela, ralonsoh, scohen, twilson
Target Milestone: z8Keywords: Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-networking-ovn-7.3.1-1.20211021113440.4e24f4c.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2015619 (view as bug list) Environment:
Last Closed: 2022-03-24 11:01:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2015619    

Description Nicolas Bourgeois 2021-08-17 13:30:40 UTC
Description of problem:
- When the port of a ovn dhcp service has been updated to change its IP address, the dhcp options are not updated

Version-Release number of selected component (if applicable):
- RHOSP 16.1.6

How reproducible:
- Every time

Steps to Reproduce:
- Create a network
- Create a subnet with DHCP enabled
- Change the DCHP port's IP address:
   # openstack port set --fixed-ip subnet=<net-id>,ip-address=<newDHCPaddress> <portID>
   # openstack port unset --fixed-ip subnet=<net-id>,ip-address=<oldDHCPaddress> <portID>
- Create an instance in this network, cloud-init will fail because the route to 169.254.169.254/32 still points to the old dhcp server's IP address

Actual results:
- the DHCP options are not updated. The instances have a wrong route to 169.254.169.254/32

Expected results:
- The route to 169.254.169.254/32 should have been updated 

Additional info:
- When a subnet parameter like its netmask, or a new static route is created, the whole DHCP options are recomputed and the route to 169.254.169.254/32 is correctly updated with new dhcp ip as gateway

Comment 14 errata-xmlrpc 2022-03-24 11:01:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 16.1.8 bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:0986