Bug 1988476

Summary: remove dhclient binary from RHCOS
Product: OpenShift Container Platform Reporter: Micah Abbott <miabbott>
Component: RHCOSAssignee: Micah Abbott <miabbott>
Status: CLOSED ERRATA QA Contact: Michael Nguyen <mnguyen>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.9CC: dornelas, jligon, miabbott, mrussell, nstielau
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Removed functionality
Doc Text:
The `dhclient` binary has been removed from RHCOS. Users should migrate any configurations to rely on the DHCP client provided by NetworkManager.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:43:44 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:

Description Micah Abbott 2021-07-30 15:50:10 UTC
When we moved from using `dhclient` in the initrd to using the DHCP client from `NetworkManager`as part of RHCOS 4.6, we inadvertently broke customers who were relying on the `dhclient` binary in the real root.

See https://bugzilla.redhat.com/show_bug.cgi?id=1908462

We decided to put `dhclient` back into RHCOS for those customers with the agreement that we would remove it as part of RHCOS 4.8.  We never did remove the binary as part of 4.8, but included a notice in the 4.8 release notes that it would be removed as part of RHCOS 4.9.

See https://github.com/openshift/openshift-docs/pull/32321/

This BZ serves as notification of the removal of the `dhclient` binary from RHCOS as part of 4.9.

Comment 3 Michael Nguyen 2021-08-11 20:59:22 UTC
verified on 4.9.0-0.nightly-2021-08-07-175228.  No dhclient installed.

$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.9.0-0.nightly-2021-08-07-175228   True        False         53m     Cluster version is 4.9.0-0.nightly-2021-08-07-175228
$ oc get nodes
NAME                                       STATUS   ROLES    AGE   VERSION
ci-ln-sgwi822-f76d1-8qbg7-master-0         Ready    master   74m   v1.21.1+8268f88
ci-ln-sgwi822-f76d1-8qbg7-master-1         Ready    master   74m   v1.21.1+8268f88
ci-ln-sgwi822-f76d1-8qbg7-master-2         Ready    master   74m   v1.21.1+8268f88
ci-ln-sgwi822-f76d1-8qbg7-worker-a-7wvkb   Ready    worker   67m   v1.21.1+8268f88
ci-ln-sgwi822-f76d1-8qbg7-worker-b-jpm6p   Ready    worker   67m   v1.21.1+8268f88
ci-ln-sgwi822-f76d1-8qbg7-worker-c-4d87r   Ready    worker   67m   v1.21.1+8268f88
$ oc debug node/ci-ln-sgwi822-f76d1-8qbg7-worker-a-7wvkb
Starting pod/ci-ln-sgwi822-f76d1-8qbg7-worker-a-7wvkb-debug ...
To use host binaries, run `chroot /host`
If you don't see a command prompt, try pressing enter.
sh-4.2# chroot /host
sh-4.4# rpm-ostree status
State: idle
Deployments:
* pivot://quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:eecfe337e954093c5f566f6b967912d162caf86c2f1774688940e6afebfba7b9
              CustomOrigin: Managed by machine-config-operator
                   Version: 49.84.202108062038-0 (2021-08-06T20:42:21Z)

  ostree://abb247c075d0e2d4b7cf41e0fcef3305fbd9efe9dbcde2211a072acd6ddccabb
                   Version: 49.84.202107010027-0 (2021-07-01T00:30:33Z)
sh-4.4# which dhclient
which: no dhclient in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
sh-4.4# rpm -q dhcp-client
package dhcp-client is not installed

Comment 6 errata-xmlrpc 2021-10-18 17:43:44 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.9.0 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.

https://access.redhat.com/errata/RHSA-2021:3759