Can't manually add a machine to a model if cloud credentials are broken

Bug #1871512 reported by David Lawson
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Confirmed
Low
Unassigned

Bug Description

We're working through an issue with our Azure credentials with the Juju team and in the meantime had intended to deploy a few instances by hand and then add them via the manual provider, but it appears that's not possible:

$ juju add-machine ssh:ubuntu@X.X.X.X
ERROR cannot add a new machine: getting instance types: listing VM sizes: azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://management.azure.com/subscriptions/REDACTED/providers/Microsoft.Compute/skus?api-version=2017-09-01: StatusCode=401 -- Original Error: adal: Refresh request failed. Status Code = '401'. Response body: {"error":"invalid_client","error_description":"AADSTS7000215: Invalid client secret is provided.\r\nTrace ID: REDACTED\r\nCorrelation ID: REDACTED\r\nTimestamp: 2020-04-08 00:42:41Z","error_codes":[7000215],"timestamp":"2020-04-08 00:42:41Z","trace_id":"REDACTED","correlation_id":"REDACTED","error_uri":"https://login.windows.net/error?code=7000215"}

I realize what it's probably trying to do is figure out what instance type this is, etc. but it means that credential issues in the client or controller can completely block deployments which isn't great.

Revision history for this message
Haw Loeung (hloeung) wrote :

Should 'add-machine ssh:' rely on talking to Azure or any of the cloud providers Juju supports? I think it really shouldn't.

Revision history for this message
Tim Penhey (thumper) wrote : Re: [Bug 1871512] Re: Can't manually add a machine to a model if cloud credentials are broken

No, adding an ssh machine shouldn't talk to the cloud provider at all.

On Wed, Apr 8, 2020 at 1:20 PM Haw Loeung <email address hidden> wrote:

> Should 'add-machine ssh:' rely on talking to Azure or any of the cloud
> providers Juju supports? I think it really shouldn't.
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: Juju bugs
> https://bugs.launchpad.net/bugs/1871512
>
> Title:
> Can't manually add a machine to a model if cloud credentials are
> broken
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1871512/+subscriptions
>

Haw Loeung (hloeung)
Changed in juju:
status: New → Confirmed
Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.8.1
importance: Undecided → High
Ian Booth (wallyworld)
Changed in juju:
milestone: 2.8.1 → 2.8.2
Changed in juju:
milestone: 2.8.2 → 2.8.3
Pen Gale (pengale)
Changed in juju:
milestone: 2.8.4 → 2.9-beta1
Changed in juju:
milestone: 2.9-beta1 → 2.9-rc1
Pen Gale (pengale)
Changed in juju:
importance: High → Medium
milestone: 2.9-rc1 → none
tags: added: azure-provider
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.