Bug 1928147

Summary: Domain search set in the required domains in Option 119 of DHCP Server is ignored by RHCOS on RHV
Product: OpenShift Container Platform Reporter: Andreas Nowak <anowak>
Component: Machine Config OperatorAssignee: Ben Howard <behoward>
Status: CLOSED ERRATA QA Contact: Michael Nguyen <mnguyen>
Severity: high Docs Contact:
Priority: high    
Version: 4.6CC: aprajapa, bbreard, behoward, gzaidman, imcleod, jerzhang, jligon, miabbott, nchavan, nstielau, smilner, ssonigra
Target Milestone: ---Flags: miabbott: needinfo-
Target Release: 4.8.0   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 22:44:18 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:
Bug Depends On:    
Bug Blocks: 2038383    

Comment 5 Ben Howard 2021-02-24 15:30:22 UTC
PR filed and pending. Fix is pending the usual review/test/backport churn.

Comment 12 Michael Nguyen 2021-06-24 21:28:21 UTC
Verified on 4.8.0-0.nightly-2021-06-24-101028.  Installed bare-metal instance with dhcp option 119 (see config below).  /etc/resolve.conf has the correct search domain.

[root@helper openshift]# oc get node
NAME                       STATUS   ROLES    AGE   VERSION
master0.ocp4.example.com   Ready    master   41m   v1.21.0-rc.0+766a5fe
master1.ocp4.example.com   Ready    master   41m   v1.21.0-rc.0+766a5fe
master2.ocp4.example.com   Ready    master   39m   v1.21.0-rc.0+766a5fe
[root@helper openshift]# oc debug node/master0.ocp4.example.com
Starting pod/master0ocp4examplecom-debug ...
To use host binaries, run `chroot /host`
Pod IP:
If you don't see a command prompt, try pressing enter.
sh-4.2# chroot /host
sh-4.4# cat /etc/resolv.conf 
# Generated by NetworkManager
search example.org ocp4.example.com
sh-4.4# rpm-ostree status
State: idle
* pivot://quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:9a23adde268dc8937ae293594f58fc4039b574210f320ebdac85a50ef40220dd
              CustomOrigin: Managed by machine-config-operator
                   Version: 48.84.202106231817-0 (2021-06-23T18:21:06Z)

                   Version: 48.84.202106231817-0 (2021-06-23T18:21:06Z)

sh-4.4# exit
sh-4.2# exit

Removing debug pod ...
[root@helper openshift]# cat /etc/dhcp/dhcpd.conf | head -30
ddns-update-style interim;
default-lease-time 14400;
max-lease-time 14400;

	option routers        ;
	option broadcast-address;
	option subnet-mask    ;
	option domain-name-servers;
	option domain-name              "ocp4.example.com";
        option domain-search            "example.org";

	subnet netmask {
	interface eth0;
     	pool {
		# Static entries
		host bootstrap { hardware ethernet 52:54:00:a3:02:65; fixed-address; }
		host master0 { hardware ethernet 52:54:00:bc:68:ae; fixed-address; }
		host master1 { hardware ethernet 52:54:00:04:39:87; fixed-address; }
		host master2 { hardware ethernet 52:54:00:e7:c1:5d; fixed-address; }
		host worker0 { hardware ethernet 52:54:00:9d:8c:f1; fixed-address; }
		host worker1 { hardware ethernet 52:54:00:ec:0b:73; fixed-address; }
		host worker2 { hardware ethernet 52:54:00:8e:10:34; fixed-address; }
		# this will not give out addresses to hosts not listed above
		deny unknown-clients;

		# this is PXE specific  
		filename "pxelinux.0";  

Comment 16 errata-xmlrpc 2021-07-27 22:44:18 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 (Moderate: OpenShift Container Platform 4.8.2 bug fix and security 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.


Comment 17 Red Hat Bugzilla 2023-09-15 01:01:10 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days