Deployment of private charms is broken in 2.9 (was working in 2.8)

Bug #1932072 reported by Nikolay Vinogradov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Simon Richardson

Bug Description

Hi,

I was trying to deploy a private charm with Juju 2.9.4 and I got this, while deploying a bundle with it:
....
15:35:51 DEBUG cmd supercommand.go:537 error stack:
cannot resolve charm URL "cs:<private_charm_path>": cannot get "/<private_charm_path>/meta/any?include=id&include=supported-series&include=published": cannot get discharge from "https://api.jujucharms.com/identity": cannot start interactive session: interaction required but not possible
/build/snapcraft-juju-35d6cf/parts/juju/src/cmd/juju/application/deployer/bundlehandler.go:343: cannot resolve charm or bundle "<private_charm>"
/build/snapcraft-juju-35d6cf/parts/juju/src/cmd/juju/application/deployer/bundlehandler.go:97:
/build/snapcraft-juju-35d6cf/parts/juju/src/cmd/juju/application/deployer/bundle.go:172: cannot deploy bundle

If I switch to Juju 2.8.11 on the same host the bundle is deployed just fine:
.....
Resolving charm: cs:~<private_charm_path>
Opening an authorization web page in your browser.
If it does not open, please open this URL:
https://api.jujucharms.com/identity/login?did=<token>

John A Meinel (jameinel)
Changed in juju:
importance: Undecided → High
status: New → Triaged
milestone: none → 2.9.9
Changed in juju:
assignee: nobody → Simon Richardson (simonrichardson)
status: Triaged → In Progress
Revision history for this message
Simon Richardson (simonrichardson) wrote :

I can reproduce this one easily.
I'll work on a fix asap.

Revision history for this message
Simon Richardson (simonrichardson) wrote :

Note: the workaround for this is to use an older client against the new controller. I deployed a private charm easily by doing:

    snap install juju --channel=2.8/stable
    juju deploy cs:<private_charm_path>

Revision history for this message
Simon Richardson (simonrichardson) wrote :
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.