Bug 2004899

Summary: Set DNS search setting only for enabled IP protocols
Product: Red Hat Enterprise Linux 9 Reporter: Wen Liang <wenliang>
Component: rhel-system-rolesAssignee: Rich Megginson <rmeggins>
Status: CLOSED ERRATA QA Contact: Jakub Haruda <jharuda>
Severity: unspecified Docs Contact: Marc Muehlfeld <mmuehlfe>
Priority: unspecified    
Version: 9.0CC: djez, ferferna, fge, gfialova, jharuda, nhosoi, rmeggins, spetrosi, till, zhguan
Target Milestone: rcKeywords: Triaged
Target Release: 9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: role:network
Fixed In Version: rhel-system-roles-1.13.0-1.el9 Doc Type: Bug Fix
Doc Text:
.The Networking System Role no longer fails to set a DNS search domain if IPv6 is disabled Previously, the `nm_connection_verify()` function of the `libnm` library did not ignore the DNS search domain if the IPv6 protocol was disabled. As a consequence, when you used the Networking RHEL System Role and set `dns_search` together with `ipv6_disabled: true`, the System Role failed with the following error: ---- nm-connection-error-quark: ipv6.dns-search: this property is not allowed for 'method=ignore' (7) ---- With this update, the `nm_connection_verify()` function ignores the DNS search domain if IPv6 is disabled. As a consequence, you can use `dns_search` as expected, even if IPv6 is disabled.
Story Points: ---
Clone Of:
: 2041627 (view as bug list) Environment:
Last Closed: 2022-05-17 13:02:56 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: 2041627    

Description Wen Liang 2021-09-16 11:49:55 UTC
Description of problem:

When `dns_search` is specified and ipv6 method is ignore, when called with nm provider, the role relys on 
libnm function`nm_connection_verify()` to validate a configuration, as a result, libnm will emit the error message "nm-connection-error-quark: ipv6.dns-search: this property is not allowed for 'method=ignore' (7)". 
To properly handle this in the network role, the role should silently ignore such dns search setting for ipv6.

Comment 39 Gris Ge 2022-03-16 15:51:01 UTC
The document looks good to me. Thanks!

Comment 42 errata-xmlrpc 2022-05-17 13:02:56 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 (new packages: rhel-system-roles), 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:2443