Bug 1988436

Summary: Typo in OVN SUPPORTED_DHCP_OPTS_MAPPING dictionary
Product: Red Hat OpenStack Reporter: Eduardo Olivares <eolivare>
Component: python-networking-ovnAssignee: Eduardo Olivares <eolivare>
Status: CLOSED ERRATA QA Contact: Eran Kuris <ekuris>
Severity: low Docs Contact:
Priority: medium    
Version: 16.2 (Train)CC: apevec, jlibosva, jschluet, lhh, majopela, scohen
Target Milestone: z2Keywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-networking-ovn-7.4.2-2.20220113214852.a2eba10.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-23 22:10:49 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: 1801271    

Description Eduardo Olivares 2021-07-30 14:24:50 UTC
Copied from https://bugs.launchpad.net/neutron/+bug/1938569
------------------------------------------------------------


SUPPORTED_DHCP_OPTS_MAPPING is a dictionary that maps neutron dhcp-option names to ovn dhcp-option names. OVN dhcp-option ia_addr corresponds with neutron dhcp-option names 'ia-addr' or '5'. However, there is a type here and the corresponding OVN value is defined as ip_addr instead of ia_addr [1]

Definition of ia_addr from OVN code: [2]

The following openstack command created a wrong entry in the OVN NBDB DHCP_OPTIONS
$ openstack port create --network tempest-DHCPTest-980691237 --extra-dhcp-option name=ia-addr,value=2001::2001,ip-version=6 port-test-202

# ovn-nbctl list dhcp_options c9b0f6c0-c1bf-4e91-9e66-5e75491ae9e5
_uuid : c9b0f6c0-c1bf-4e91-9e66-5e75491ae9e5
cidr : "2001:db8::/64"
external_ids : {"neutron:revision_number"="0", port_id="1188bca5-4b75-4810-a9a0-38ecc96d0274", subnet_id="567272f0-f1b8-423c-a939-9dea6b5e26ab"}
options : {dhcpv6_stateless="true", ip_addr="2001::2001", server_id="fa:16:3e:ce:f4:67"}

[1] https://opendev.org/openstack/neutron/src/commit/19372a3cd8b4e6e45f707753b914e133857dd629/neutron/common/ovn/constants.py#L163
[2] https://github.com/ovn-org/ovn/blob/1c9e46ab5c05043a8cd6c47b5fec2e1ac4c962db/lib/ovn-l7.h#L261

Comment 10 errata-xmlrpc 2022-03-23 22:10:49 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 (Release of components for Red Hat OpenStack Platform 16.2.2), 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:1001