Image Registry degraded or progressing with message failed to get keys for the storage account in OpenShift 4 installed in Azure
Issue
-
The Image Registry Cluster Operator is reporting messages like the following ones in Azure:
Progressing: Unable to apply resources: unable to sync storage configuration: failed to get keys for the storage account [mystorageacc001]: storage.AccountsClient#ListKeys: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="ResourceGroupNotFound" Message="Resource group 'myresourcegrp-xxxxx-rg' could not be found."...
Progressing: Unable to apply resources: unable to sync storage configuration: failed to get keys for the storage account [mystorageacc001]: azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://management.azure.com/subscriptions/xxxxxxxxx/resourceGroups/myresourcegrp-xxxxx-rg/providers/Microsoft.Storage/storageAccounts/imageregistryxxxxxxxxx/listKeys?xxxxxxxxxxxxx: StatusCode=0 -- Original Error: adal: Failed to execute the refresh request. Error = 'Post "https://login.microsoftonline.com/xxxxxxxxxxxxx/oauth2/token?api-version=1.0": dial tcp 10.0.0.1:443: i/o timeout'
- Failed to pull image from internal registry in OpenShift cluster deployed on Azure.
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- Azure
- Image Registry
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.