juju export-bundle --include-charm-defaults fails with "ERROR charm "cs:<charm name>" not found (not found)"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
If I export a bundle and include defaults, I get the following error (after what seems like a timeout):
$ juju export-bundle -m lma --include-
22:21:50 INFO juju.cmd supercommand.go:56 running juju [2.9.27 0 acb32588d1752e8
22:21:50 DEBUG juju.cmd supercommand.go:57 args: []string{
22:21:50 INFO juju.juju api.go:78 connecting to API addresses: [10.216.
22:21:50 DEBUG juju.api apiclient.go:1153 successfully dialed "wss://
22:21:50 INFO juju.api apiclient.go:688 connection established to "wss://
22:21:53 DEBUG juju.api monitor.go:35 RPC connection died
ERROR charm "cs:canonical-
22:21:53 DEBUG cmd supercommand.go:537 error stack:
charm "cs:canonical-
/build/
/build/
/build/
It appears as if the controller is trying to query charmhub for the defaults of an unqualified charmstore charm, but the error message is very opaque.
Note:
* the charm name is irrelevant, canonical-livepatch is the first app in my model alphabetically
* the export succeeds if I don't include defaults
* the export succeeds on 2.9.16, even with defaults, but not on 2.9.22
This is specific to models with charmstore charms deployed. Local and charmhub charms do not exhibit this issue.