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 1691985

Summary: [8.1] cloud-init 18.5 rebase for fast provisioning on Azure [RHEL 8]
Product: Red Hat Enterprise Linux 8 Reporter: Brendan Conoboy <blc>
Component: cloud-initAssignee: Eduardo Otubo <eterrell>
Status: CLOSED ERRATA QA Contact: Yuhui Jiang <yujiang>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.1CC: ddepaula, eterrell, hpopal, jgreguske, mrezanin, mtessun, ribarry, wshi, yacao, yuxisun
Target Milestone: rcKeywords: FutureFeature, Rebase
Target Release: 8.1Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: cloud-init-18.5-1.el8 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1687563 Environment:
Last Closed: 2019-11-05 20:46:05 UTC Type: Feature Request
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: 1687563    
Bug Blocks: 1654683, 1666961, 1687565, 1850308    

Comment 2 Rick Barry 2019-04-09 16:14:53 UTC
Copying additional commits requested from RHEL 7.7 bug:

--- Comment #10 from Dan <danis> ---
Hi Eduardo, Rick - updating bug.
As mentioned, there were some issues with the package, we have approved commits
upstream, can you add these two fixes to the 18.5 package you prepared please?

Is there any chance you can get this back to us on Monday, so we test and
report back?

https://github.com/cloud-init/cloud-init/commit/0dc3a77f41f4544e4cb5a41637af7693410d4cdf
Azure: Ensure platform random_seed is always serializable as JSON.
Enables persisting Azure datasource (ds) data in the obj.pkl “pickled” config
in the instance directory

https://github.com/cloud-init/cloud-init/commit/528366820bb48c13957d0c58afc2a46a3ba84bef
Azure: Treat _unset network configuration as if it were absent
Make the Azure datasource correctly handle the unpickled ds data when the
network_config was
deliberately cleared before the config was persisted

Thanks,

Comment 4 Yuxin Sun 2019-06-10 09:32:51 UTC
Verified with cloud-init-18.5-4.el8 in standard provisioning. Pass.

Known issues:
1. Error logs in /var/log/messages: (the same as https://bugzilla.redhat.com/show_bug.cgi?id=1648375#c19)
2019-06-10 06:58:26,249 - handlers.py[DEBUG]: finish: azure-ds/load_azure_ds_dir: FAIL: load_azure_ds_dir
2019-06-10 06:58:29,807 - handlers.py[DEBUG]: finish: azure-ds/_get_value_from_leases_file: FAIL: _get_value_from_leases_file
2019-06-10 06:58:29,809 - handlers.py[DEBUG]: finish: azure-ds/find_endpoint: FAIL: find_endpoint
2. BZ#1598834
3. BZ#1692914 

Hi @Rick, according to https://bugzilla.redhat.com/show_bug.cgi?id=1692914#c1, is it necessary to fix BZ#1692914 in RHEL-8.1.0? Thanks!

Comment 5 Rick Barry 2019-06-10 13:52:55 UTC
(In reply to Yuxin Sun from comment #4)
> Verified with cloud-init-18.5-4.el8 in standard provisioning. Pass.
> 
> Known issues:
> 1. Error logs in /var/log/messages: (the same as
> https://bugzilla.redhat.com/show_bug.cgi?id=1648375#c19)
> 2019-06-10 06:58:26,249 - handlers.py[DEBUG]: finish:
> azure-ds/load_azure_ds_dir: FAIL: load_azure_ds_dir
> 2019-06-10 06:58:29,807 - handlers.py[DEBUG]: finish:
> azure-ds/_get_value_from_leases_file: FAIL: _get_value_from_leases_file
> 2019-06-10 06:58:29,809 - handlers.py[DEBUG]: finish:
> azure-ds/find_endpoint: FAIL: find_endpoint
> 2. BZ#1598834
> 3. BZ#1692914 
> 
> Hi @Rick, according to
> https://bugzilla.redhat.com/show_bug.cgi?id=1692914#c1, is it necessary to
> fix BZ#1692914 in RHEL-8.1.0? Thanks!

Hi Yuxin,

Yes, there are two BZs that we plan to fix for RHEL 8.1 to reach parity with the
fast provisioning code in 7.7 and 8.0.1:

1691987 - [8.1] [Azure] [RHEL 8] cloud-init dhcp.py dhcp_discovery() race with dhclient with preprovisioned VM in Azure
1692914 - [8.1] [WALA][cloud] cloud-init dhclient-hook script has some unexpected side-effects on Azure

Comment 8 errata-xmlrpc 2019-11-05 20:46:05 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, 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/RHBA-2019:3342