Bug 2082043

Summary: Support custom value for IP field dhcp-client-id
Product: Red Hat Enterprise Linux 9 Reporter: Quique Llorente <ellorent>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: high Docs Contact: Marc Muehlfeld <mmuehlfe>
Priority: high    
Version: 9.1CC: ferferna, jiji, jishi, network-qe, sfaye, till
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
.More DHCP and IPv6 auto-configuration attributes have been added to the nmstate API This enhancement adds support for the following attributes to the nmstate API: * `dhcp-client-id` for DHCPv4 connections as described in RFC 2132 and 4361. * `dhcp-duid` for DHCPv6 connections as described in RFC 8415. * `addr-gen-mode` for IPv6 auto-configuration. You can set this attribute to: ** `eui64` as described in RFC 4862 ** `stable-privacy` as described in RFC 7217
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 10:00:45 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:
Attachments:
Description Flags
verified.log none

Description Quique Llorente 2022-05-05 09:47:27 UTC
Description of problem:

As part of migration MCO configure-ovs to nmstate the attribute "dhcp-client-id" need to be set if interfaces has already a address assigned [1]

[1] https://github.com/openshift/machine-config-operator/blob/48d88a7f75e97c87b2a6f4b00862a091fccbdd72/templates/common/_base/files/configure-ovs-network.yaml#L317


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


How reproducible: Always


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:
User can set the "dhcp-client-id" attribute at thir ipv4/ipv6 field options.


Additional info:

Comment 1 Gris Ge 2022-05-23 08:56:09 UTC
Patch posted to https://github.com/nmstate/nmstate/pull/1905

Comment 2 Fernando F. Mancera 2022-06-02 10:49:29 UTC
Tested with integration tests and manually, thanks!

Comment 5 Mingyu Shi 2022-06-15 05:37:15 UTC
Created attachment 1890087 [details]
verified.log

Verified with:
nmstate-2.1.1-0.alpha.20220602.5accbd1.el9.x86_64
NetworkManager-1.39.6-1.el9.x86_64

Comment 9 errata-xmlrpc 2022-11-15 10:00:45 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 (nmstate bug fix and enhancement update), 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:7991