Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1964900

Summary: [Azure][RHEL-9] cloud-init must require dhcp-client on Azure
Product: Red Hat Enterprise Linux 9 Reporter: Yuxin Sun <yuxisun>
Component: cloud-initAssignee: Eduardo Otubo <eterrell>
Status: CLOSED CURRENTRELEASE QA Contact: Huijuan Zhao <huzhao>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: eterrell, huzhao, jgreguske, litian, obudai, ribarry, xiliang, yacao
Target Milestone: betaFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cloud-init-21.1-5.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1977385 (view as bug list) Environment:
Last Closed: 2021-12-07 22:04: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: 1942524, 1977385    
Attachments:
Description Flags
cloud-init.log on Azure none

Description Yuxin Sun 2021-05-26 10:02:51 UTC
Description of problem:
If not install dhcp-client, cloud-init fails to provision VM on Azure. Suggest to either add dhcp-client to the cloud-init dependencies, or fix cloud-init to not rely on dhclient.
Related RHEL-8 BZ:1641190

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

RHEL Version:
RHEL-9.0.0-20210518.3
cloud-init-20.4-5.el9.noarch

How reproducible:
100%

Steps to Reproduce:
1. Start a VM on Azure without dhcp-client installed
2. Check cloud-init.log

Actual results:
Provisioning failed.

2021-05-26 07:34:13,715 - dhcp.py[DEBUG]: Skip dhclient configuration: No dhclient command found.
2021-05-26 07:34:13,715 - handlers.py[DEBUG]: finish: azure-ds/obtain-dhcp-lease: FAIL: obtain dhcp lease
2021-05-26 07:34:13,715 - azure.py[WARNING]: exception while getting metadata:
2021-05-26 07:34:13,725 - handlers.py[DEBUG]: finish: azure-ds/get_metadata_from_imds: FAIL: get_metadata_from_imds
2021-05-26 07:34:13,725 - handlers.py[DEBUG]: finish: azure-ds/crawl_metadata: FAIL: crawl_metadata
2021-05-26 07:34:13,725 - util.py[DEBUG]: Crawl of metadata service took 0.273 seconds
2021-05-26 07:34:13,725 - azure.py[ERROR]: Could not crawl Azure metadata:

Expected results:
Provision successfully.

Additional info:
N/A

Comment 1 Yuxin Sun 2021-05-26 10:09:26 UTC
Created attachment 1787172 [details]
cloud-init.log on Azure

Comment 2 John Ferlan 2021-07-07 18:34:37 UTC
Rick - assigning this and the cloned bug 1977385 to you to re-assign as a matched pair

Comment 3 Ondřej Budai 2021-07-09 10:53:33 UTC
Hello Eduardo,

is there a plan to add the dhcp-client dependency to cloud-init? We (the Image Builder team) think that this is the best option. If this is a problem for you, we need to know it sooner rather than later so we can change the image definition for Azure images in 9.0 Beta.

Thanks,
Ondřej