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: beta   
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