Bug 1988436 - Typo in OVN SUPPORTED_DHCP_OPTS_MAPPING dictionary
Summary: Typo in OVN SUPPORTED_DHCP_OPTS_MAPPING dictionary
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-networking-ovn
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: z2
: 16.2 (Train on RHEL 8.4)
Assignee: Eduardo Olivares
QA Contact: Eran Kuris
URL:
Whiteboard:
Depends On:
Blocks: 1801271
TreeView+ depends on / blocked
 
Reported: 2021-07-30 14:24 UTC by Eduardo Olivares
Modified: 2022-03-23 22:11 UTC (History)
6 users (show)

Fixed In Version: python-networking-ovn-7.4.2-2.20220113214852.a2eba10.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-23 22:10:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 803037 0 None NEW Fix typo in OVN SUPPORTED_DHCP_OPTS_MAPPING dictionary (ia-addr) 2021-07-30 14:27:39 UTC
Red Hat Issue Tracker OSP-6663 0 None None None 2021-11-15 13:02:59 UTC
Red Hat Product Errata RHBA-2022:1001 0 None None None 2022-03-23 22:11:20 UTC

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


Note You need to log in before you can comment on or make changes to this bug.