Unable to create Machines with error Invalid client secret provided in OpenShift 4 running on Azure
Issue
- Not able to create new
Machinesin OpenShift 4 cluster installed in Azure. -
Errors like the following one are shown in the
machine-controllerand other components requiring access to Azure:Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app '[random-id]' -
New
Machineis stuck in failed state with below error:CreateError: failed to reconcile machine "address.domain-url"s: failed to create nic example-nic for machine example-machine-name unable to create VM network interface: failed to obtain instance type information for VMSize 'Standard_name' from Azure: failed to refresh resource sku cache: could not list resource skus: azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://cloud-platform-url: StatusCode=401 -- Original Error: adal: Refresh request failed. Status Code = '401'. Response body: {"error":"invalid_client","error_description":"ID: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app 'random-id'.\r\nTrace ID: ID\r\nCorrelation ID: Random-ID\nTimestamp: Y-M-H HH:MM:SSZ","error_codes":[7000215],"timestamp":"2Y-M-H HH:MM:SSZ","
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- Azure
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.