-
Bug
-
Resolution: Unresolved
-
Undefined
-
4.21
-
None
-
None
-
False
-
-
None
-
Moderate
-
None
-
None
-
None
-
None
-
In Progress
-
Bug Fix
-
A change in API version caused the storage account checking function to not work as Microsoft does not provide storage account functions in all their APIs. Changing it back to the right version works.
-
None
-
None
-
None
-
None
This is a clone of issue OCPBUGS-67816. The following is the description of the original issue:
—
Description of problem:
Failed to create cluster with UserManaged Boot Diagnostics on Azure Gov Cloud.
Install-config.yaml
======================
controlPlane:
name: master
platform:
azure:
type: Standard_E4s_v3
bootDiagnostics:
type: UserManaged
storageAccountName: 5d5d60ca8467f0fsa
resourceGroup: 5d5d60ca8467f0f-rg
compute:
- name: worker
replicas: 3
platform:
azure:
type: Standard_E4s_v3
bootDiagnostics:
type: UserManaged
storageAccountName: 5d5d60ca8467f0fsa
resourceGroup: 5d5d60ca8467f0f-rg
Error in openshift-install.log
======================
time="2025-12-14T03:25:03Z" level=error msg="failed to fetch Master Machines: failed to load asset \"Install Config\": failed to create install config: [platform.azure.controlPlane.bootDiagnostics: Invalid value: {\"type\":\"UserManaged\",\"resourceGroup\":\"5d5d60ca8467f0f-rg\",\"storageAccountName\":\"5d5d60ca8467f0fsa\"}: GET https://management.usgovcloudapi.net/subscriptions/8fe0c1b4-8b05-4ef7-8129-7cf5680f27e7/resourceGroups/5d5d60ca8467f0f-rg/providers/Microsoft.Storage/storageAccounts/5d5d60ca8467f0fsa\n--------------------------------------------------------------------------------\nRESPONSE 400: 400 Bad Request\nERROR CODE: NoRegisteredProviderFound\n--------------------------------------------------------------------------------\n{\n \"error\": {\n \"code\": \"NoRegisteredProviderFound\",\n \"message\": \"No registered resource provider found for location 'usgovvirginia' and API version '2019-11-01' for type 'storageAccounts'. The supported api-versions are '2025-06-01, 2025-01-01, 2024-01-01, 2023-05-01, 2023-04-01, 2023-01-01, 2022-09-01, 2022-05-01, 2021-09-01, 2021-08-01, 2021-06-01, 2021-05-01, 2021-04-01, 2021-02-01, 2021-01-01, 2020-08-01-preview, 2019-06-01, 2019-04-01, 2018-11-01, 2018-07-01, 2018-03-01-preview, 2018-02-01, 2017-10-01, 2017-06-01, 2016-12-01, 2016-07-01, 2016-05-01, 2016-01-01, 2015-06-15, 2015-05-01-preview'. The supported locations are 'usgovvirginia, usgovtexas, usgovarizona, usdodeast, usdodcentral'.\"\n }\n}\n--------------------------------------------------------------------------------\n, platform.azure.compute[0].bootDiagnostics: Invalid value: {\"type\":\"UserManaged\",\"resourceGroup\":\"5d5d60ca8467f0f-rg\",\"storageAccountName\":\"5d5d60ca8467f0fsa\"}: GET https://management.usgovcloudapi.net/subscriptions/8fe0c1b4-8b05-4ef7-8129-7cf5680f27e7/resourceGroups/5d5d60ca8467f0f-rg/providers/Microsoft.Storage/storageAccounts/5d5d60ca8467f0fsa\n--------------------------------------------------------------------------------\nRESPONSE 400: 400 Bad Request\nERROR CODE: NoRegisteredProviderFound\n--------------------------------------------------------------------------------\n{\n \"error\": {\n \"code\": \"NoRegisteredProviderFound\",\n \"message\": \"No registered resource provider found for location 'usgovvirginia' and API version '2019-11-01' for type 'storageAccounts'. The supported api-versions are '2025-06-01, 2025-01-01, 2024-01-01, 2023-05-01, 2023-04-01, 2023-01-01, 2022-09-01, 2022-05-01, 2021-09-01, 2021-08-01, 2021-06-01, 2021-05-01, 2021-04-01, 2021-02-01, 2021-01-01, 2020-08-01-preview, 2019-06-01, 2019-04-01, 2018-11-01, 2018-07-01, 2018-03-01-preview, 2018-02-01, 2017-10-01, 2017-06-01, 2016-12-01, 2016-07-01, 2016-05-01, 2016-01-01, 2015-06-15, 2015-05-01-preview'. The supported locations are 'usgovvirginia, usgovtexas, usgovarizona, usdodeast, usdodcentral'.\"\n }\n}\n--------------------------------------------------------------------------------\n]"
Version-Release number of selected component (if applicable):
4.21 nightly build
How reproducible:
Always
Steps to Reproduce:
1. Create storage account
2. Configure UserManaged bootDiagnostics in install-config.yaml
3. Create cluster
Actual results:
cluster failed to be created
Expected results:
cluster installation succeeded
Additional info:
Failed CI job:
https://qe-private-deck-ci.apps.ci.l2s4.p1.openshiftapps.com/view/gs/qe-private-deck/logs/periodic-ci-openshift-verification-tests-main-installation-nightly-4.21-azure-ipi-mag-boot-diagnostics-usermanaged-arm-f28/2000041824407785472
Maybe related with commit https://github.com/openshift/installer/commit/a9af27250bf500a1de6c561e03c9eb26f20fb102, The API version `2019-11-01` is not supported for `storageAccounts`
in Azure Gov Cloud. Below are valid versions on Gov Cloud.
$ az provider show -n Microsoft.Storage --query "resourceTypes[?resourceType=='storageAccounts'].apiVersions"
[
[
"2025-06-01",
"2025-01-01",
"2024-01-01",
"2023-05-01",
"2023-04-01",
"2023-01-01",
"2022-09-01",
"2022-05-01",
"2021-09-01",
"2021-08-01",
"2021-06-01",
"2021-05-01",
"2021-04-01",
"2021-02-01",
"2021-01-01",
"2020-08-01-preview",
"2019-06-01",
"2019-04-01",
"2018-11-01",
"2018-07-01",
"2018-03-01-preview",
"2018-02-01",
"2017-10-01",
"2017-06-01",
"2016-12-01",
"2016-07-01",
"2016-05-01",
"2016-01-01",
"2015-06-15",
"2015-05-01-preview"
]
]
- clones
-
OCPBUGS-67816 Azure: Failed to create cluster with UserManaged Boot Diagnostics
-
- Verified
-
- is blocked by
-
OCPBUGS-67816 Azure: Failed to create cluster with UserManaged Boot Diagnostics
-
- Verified
-
- links to