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 - [Azure][RHEL-9] cloud-init must require dhcp-client on Azure
Summary: [Azure][RHEL-9] cloud-init must require dhcp-client on Azure
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: cloud-init
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Eduardo Otubo
QA Contact: Huijuan Zhao
URL:
Whiteboard:
Depends On:
Blocks: 1942524 1977385
TreeView+ depends on / blocked
 
Reported: 2021-05-26 10:02 UTC by Yuxin Sun
Modified: 2022-05-30 06:53 UTC (History)
8 users (show)

Fixed In Version: cloud-init-21.1-5.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1977385 (view as bug list)
Environment:
Last Closed: 2021-12-07 22:04:56 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
cloud-init.log on Azure (369.09 KB, text/plain)
2021-05-26 10:09 UTC, Yuxin Sun
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Gitlab redhat/centos-stream/src cloud-init merge_requests 6 0 None None None 2021-08-05 09:01:07 UTC

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


Note You need to log in before you can comment on or make changes to this bug.