redhat: Use NetworkManager to set DHCP hostnames on recent RHEL distros#2640
redhat: Use NetworkManager to set DHCP hostnames on recent RHEL distros#2640mgamal wants to merge 1 commit intoAzure:developfrom
Conversation
Recent versions of RHEL 8 and RHEL 9 started using NetworkManager to configure
network intefaces instead of sysconfig files. Configurations are no longer
stored in /etc/sysconfig/ifcfg-{interface}.
Fix this for setting DHCP hostnames in those RHEL versions.
|
@narrieta @kevinclark19a @ZhidongPeng @nagworld9 @dhivyaganesan can someone please take a look here? The PR is necessary for WALA to function on recent RHEL versions. Thanks |
|
@mgamal Thanks for the PR. Is this happening on custom image where no cloud-init enabled? could you provide steps that you followed to test this fix? |
Codecov Report
@@ Coverage Diff @@
## develop #2640 +/- ##
===========================================
- Coverage 71.96% 71.95% -0.02%
===========================================
Files 103 103
Lines 15632 15637 +5
Branches 2488 2489 +1
===========================================
+ Hits 11250 11251 +1
- Misses 3868 3872 +4
Partials 514 514
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
I think it is refer to issue #2593 . |
That's true. RHEL8.6/9.1 use NetworkManager and store configurations per connection instead of using sysconfig files and this PR uses NetworkManager tools to set DHCP hostnames. |
Recent versions of RHEL 8 and RHEL 9 (i.e. RHEL8.6/9.1) started using NetworkManager to configure
network intefaces instead of sysconfig files. Configurations are no longer
stored in /etc/sysconfig/ifcfg-{interface}. Setting DHCP hostnames through these files causes provisioning with WALA to fail.
Fix this for setting DHCP hostnames in those RHEL versions.
PR information
Quality of Code and Contribution Guidelines