juju wont tell you what channel a charm is on and ERRORs out

Bug #1880973 reported by Erik Lönroth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Achilleas Anagnostopoulos

Bug Description

I was trying to upgrade nextcloud using my latest release, but charmstore seems no to find it.

I first thought is was a delay for the release to be indexed..

Juju threw its usual ERROR as below...

$ juju upgrade-charm nextcloud --path=cs:~erik-lonroth/nextcloud-5
ERROR cannot resolve URL "cs:~erik-lonroth/nextcloud-5": charm or bundle not found
$ charm list
cs:~erik-lonroth/nextcloud-5
$ juju upgrade-charm nextcloud --path=cs:~erik-lonroth/nextcloud-5
ERROR cannot resolve URL "cs:~erik-lonroth/nextcloud-5": charm or bundle not found
$ juju upgrade-charm nextcloud --revision 5
ERROR cannot resolve URL "cs:~erik-lonroth/nextcloud-5": charm or bundle not found

.... so I opened up a thread to discuss it on discourse: https://discourse.juju.is/t/charmstore-releases-takes-a-long-time-to-appear/3123

It then turns out that juju tracks which channel the charm is at in my model. I had to discover that by running the command juju upgrade-charm nextcloud --revision 5 --debug, which revealed a API url where I could see the channel name "edge" for the currently installed charm for my model.

... so, I ran instead the command:

juju upgrade-charm nextcloud --revision 5 --channel stable

... which then worked and the charm comes into place.

== What to do about this? ==

I think is should be a better way of telling me what channel the charm is from since its not visible in the juju status, nor getting informed by the juju upgrade-charm command failure.

Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.8.1
importance: Undecided → High
status: New → Triaged
Changed in juju:
status: Triaged → In Progress
assignee: nobody → Achilleas Anagnostopoulos (achilleasa)
Revision history for this message
Achilleas Anagnostopoulos (achilleasa) wrote :

PR https://github.com/juju/juju/pull/11763 contains a fix for the 2.8 branch

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.