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.
Description:
cloud-init-18.5-6.el7_8.4.x86_64.rpm provisioning failed in Azure.
Version-Release number of selected components (if applicable):
Version:
RHEL-7.9
cloud-init-18.5-6.el7_8.4.x86_64.rpm
How reproducible:
100%
Steps to Reproduce:
1. Create a RHEL-7.9 in Azure with cloud-init-18.5-6.el7_8.4.x86_64.rpm enabled (without WALA).
Actual results:
Provisioning failed.
Expected results:
Provisioning successfully
Additional info:
- Seems the root cause is in cloudinit/url_helper.py. I used the url_helper.py in cloud-init-18.5-6.el7_8.3 to replace it in cloud-init-18.5-6.el7_8.4, and worked well.
2020-05-06 08:19:32,860 - url_helper.py[DEBUG]: [0/11] open 'http://168.63.129.16/machine/?comp=goalstate' with {'url': 'http://168.63.129.16/machine/?comp=goalstate', 'headers': {'User-Agent': 'Cloud-Init/18.5'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 5.0} configuration
2020-05-06 08:19:32,898 - url_helper.py[DEBUG]: Please wait 1 seconds while we wait to try again
2020-05-06 08:19:33,899 - url_helper.py[DEBUG]: [1/11] open 'http://168.63.129.16/machine/?comp=goalstate' with {'url': 'http://168.63.129.16/machine/?comp=goalstate', 'headers': {'User-Agent': 'Cloud-Init/18.5'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 5.0} configuration
2020-05-06 08:19:33,903 - url_helper.py[DEBUG]: Please wait 1 seconds while we wait to try again
2020-05-06 08:19:34,904 - url_helper.py[DEBUG]: [2/11] open 'http://168.63.129.16/machine/?comp=goalstate' with {'url': 'http://168.63.129.16/machine/?comp=goalstate', 'headers': {'User-Agent': 'Cloud-Init/18.5'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 5.0} configuration
2020-05-06 08:19:34,908 - url_helper.py[DEBUG]: Please wait 1 seconds while we wait to try again
2020-05-06 08:19:35,909 - url_helper.py[DEBUG]: [3/11] open 'http://168.63.129.16/machine/?comp=goalstate' with {'url': 'http://168.63.129.16/machine/?comp=goalstate', 'headers': {'User-Agent': 'Cloud-Init/18.5'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 5.0} configuration
2020-05-06 08:19:35,912 - url_helper.py[DEBUG]: Please wait 1 seconds while we wait to try again
......
2020-05-06 08:22:18,534 - url_helper.py[DEBUG]: [10/11] open 'http://168.63.129.16/machine/?comp=goalstate' with {'url': 'http://168.63.129.16/machine/?comp=goalstate', 'headers': {'User-Agent': 'Cloud-Init/18.5'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 5.0} configuration
2020-05-06 08:22:18,538 - handlers.py[DEBUG]: finish: azure-ds/register_with_azure_and_fetch_data: FAIL: register_with_azure_and_fetch_data
2020-05-06 08:22:18,538 - util.py[DEBUG]: Recursively deleting /run/cloud-init/tmp/tmpqoe6cr
2020-05-06 08:22:18,538 - handlers.py[DEBUG]: finish: azure-ds/get_metadata_from_fabric: FAIL: get_metadata_from_fabric
2020-05-06 08:22:18,538 - DataSourceAzure.py[WARNING]: Error communicating with Azure fabric; You may experience.connectivity issues.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceAzure.py", line 678, in _negotiate
fabric_data = metadata_func()
File "/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/azure.py", line 40, in impl
return func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/azure.py", line 493, in get_metadata_from_fabric
return shim.register_with_azure_and_fetch_data(pubkey_info=pubkey_info)
File "/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/azure.py", line 40, in impl
return func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/azure.py", line 428, in register_with_azure_and_fetch_data
'http://{0}/machine/?comp=goalstate'.format(self.endpoint))
File "/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/azure.py", line 106, in get
return url_helper.read_file_or_url(url, headers=headers)
File "/usr/lib/python2.7/site-packages/cloudinit/url_helper.py", line 107, in read_file_or_url
exception_cb=exception_cb)
File "/usr/lib/python2.7/site-packages/cloudinit/url_helper.py", line 307, in readurl
raise excps[-1]
UrlError: 400 Client Error: Bad Request
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-2020:2654