Juju prompted for a password in the middle of a bundle deploy

Bug #1960635 reported by Heitor
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Simon Richardson

Bug Description

Juju just asked me for my password for an AWS controller in the middle of a bundle deploy:

$ juju deploy ./slurm-core/bundle.yaml \
            --overlay ./slurm-core/clouds/aws.yaml \
            --overlay ./slurm-core/series/centos7.yaml \
            --overlay ./slurm-core/charms/local-development.yaml
Located charm "percona-cluster" in charm-store, revision 293
Executing changes:
- upload charm percona-cluster from charm-store for series bionic with architecture=amd64
- deploy application percona-cluster from charm-store on bionic
- upload charm /home/h/projects/slurm-charms/slurmctld.charm for series centos7 with architecture=amd64
please enter password for heitor on foocontroller:

- deploy application slurmctld on centos7
...

This shouldn't happen mid-way. Juju should query this information _before_ trying anything.

Revision history for this message
Ian Booth (wallyworld) wrote :

Juju mints login macaroons with a TTL of 24 hours. It looks like at least some of the deploy steps did complete, but with unlucky timing, the macaroon expired par way through.
Juju could look at the TTL caveat on the macaroon and prompt to login again if a reasonable time is not remaining.

Changed in juju:
importance: Undecided → Medium
status: New → Triaged
tags: added: usability
Revision history for this message
Heitor (heitorpbittencourt) wrote :

I am not sure that is the issue. I had just logged in this AWS controller and tried to deploy the bundle.

The first charm (percona-cluster) comes from Charmhub, the remaining are local files. Maybe this has something to do with it?

Revision history for this message
james beedy (jamesbeedy) wrote :

I'm hitting this and I just logged in and got a new token a few minutes ago (see the timestamp in the PS1)

20:49 $ make aws-focal
juju deploy ./slurm-core/bundle.yaml \
            --overlay ./slurm-core/clouds/aws.yaml \
            --overlay ./slurm-core/series/focal.yaml \
            --overlay ./slurm-core/charms/local-development.yaml
Located charm "percona-cluster" in charm-store, revision 293
Executing changes:
- upload charm percona-cluster from charm-store for series bionic with architecture=amd64
- deploy application percona-cluster from charm-store on bionic
- upload charm /home/bdx/allcode/github/omnivector/slurm-charms/slurmctld.charm for series focal with architecture=amd64
please enter password for rats on omnicontroller: make: *** [Makefile:30: aws-focal] Interrupt

$ cat .local/share/juju/cookies/omnicontroller.json
[{"Name":"macaroon-b4a5b6fc4c755b664825202d2112dc5d217dcf897ec89db331e9bfd9d3c2865e","Value":"****","Domain":"aeae9dde-58ac-49fc-8884-39f0f6434c13","Path":"/","Secure":false,"HttpOnly":false,"Persistent":true,"HostOnly":true,"Expires":"2022-02-22T20:48:10.942752182Z","Creation":"2022-02-21T20:48:12.443855648Z","LastAccess":"2022-02-21T20:49:31.306691442Z","Updated":"2022-02-21T20:48:12.443855648Z","CanonicalHost":"aeae9dde-58ac-49fc-8884-39f0f6434c13"}]

Revision history for this message
Simon Richardson (simonrichardson) wrote :
Changed in juju:
status: Triaged → In Progress
assignee: nobody → Simon Richardson (simonrichardson)
milestone: none → 2.9.26
milestone: 2.9.26 → 2.9.27
Changed in juju:
milestone: 2.9.27 → 2.9.26
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
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.