Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
4.15
-
No
-
OSDOCS Sprint 250
-
1
-
False
-
Description
Description of problem:
Details are missing in steps 3 of `Uploading the RHCOS cluster image and bootstrap Ignition config file.` on how to get <architecture> value as its not talking arm64 when installing it using arm64.
Details:
Uploading the RHCOS cluster image and bootstrap Ignition config file.
3. Export the URL of the RHCOS VHD to an environment variable:
$ export VHD_URL=`openshift-install coreos print-stream-json | jq -r '.architectures.<architecture>."rhel-coreos-extensions"."azure-disk".url'`
- If we execute above command by giving arm64 or Arm64 in place of <architecture> the export command work s but if we check the VHD_URL parameter is give null value:
$echo $VHD_URL
null
- Later if we execute the next step 4 and step 5, 5th step will fail with `ValueError: Invalid URL.` error:
$ az storage blob copy start --account-name ${CLUSTER_NAME}sa --account-key ${ACCOUNT_KEY} --destination-blob "rhcos.vhd" --destination-container vhd --source-uri "${VHD_URL}" The command failed with an unexpected error. Here is the traceback: Invalid URL. Provide a blob_url with a valid blob and container name. Traceback (most recent call last): File "/opt/az/lib/python3.11/site-packages/knack/cli.py", line 233, in invoke cmd_result = self.invocation.execute(args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 664, in execute raise ex File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 729, in _run_jobs_serially results.append(self._run_job(expanded_arg, cmd_copy)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 721, in _run_job return cmd_copy.exception_handler(ex) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/az/lib/python3.11/site-packages/azure/cli/command_modules/storage/__init__.py", line 430, in new_handler first(ex) File "/opt/az/lib/python3.11/site-packages/azure/cli/command_modules/storage/__init__.py", line 429, in new_handler raise ex File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 698, in _run_job result = cmd_copy(params) ^^^^^^^^^^^^^^^^ File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 334, in __call__ return self.handler(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler return op(**command_args) ^^^^^^^^^^^^^^^^^^ File "/opt/az/lib/python3.11/site-packages/azure/cli/command_modules/storage/operations/blob.py", line 1016, in copy_blob src_client = client.from_blob_url(source_url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/az/lib/python3.11/site-packages/azure/multiapi/storagev2/blob/v2022_11_02/_blob_client.py", line 274, in from_blob_url raise ValueError(msg_invalid_url) ValueError: Invalid URL. Provide a blob_url with a valid blob and container name. To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
To fix we need to add below in <architecture>
- aarch64
We can get the details from :
$ openshift-install coreos print-stream-json | jq -r '.architectures.*."rhel-coreos-extensions"' { "azure-disk": { "release": "415.92.202311241643-0", "url": "https://rhcos.blob.core.windows.net/imagebucket/rhcos-415.92.202311241643-0-azure.aarch64.vhd" } }
or
$./openshift-install coreos print-stream-json | jq -r | grep -i arch
**
Resolution:
- A note should be added on how to get the details for <architecture> in step 3 command.
Version-Release number of selected component (if applicable):
4.15
How reproducible:
Everytime
Steps to Reproduce:
Run below command with x64 and Arm64 in place of <architecture> in steps 3 of upoading the RHCOS cluster image and bootstrap Ignition config file
$ export VHD_URL=`openshift-install coreos print-stream-json | jq -r '.architectures.<architecture>."rhel-coreos-extensions"."azure-disk".url'`
Actual results:
Its giving null value for VHD_URL
Expected results:
Steps should be given on how to obtain that value
Additional info: