Better error message when charm cannot be found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Medium
|
Unassigned | ||
Snap Store Server |
New
|
Undecided
|
Unassigned |
Bug Description
Seems like juju (3.1.6) is having trouble deploying a charm from a temporary branch (edge/325).
Tried to deploy a bundle + overlay:
juju deploy --channel=edge cos-lite --trust --overlay /home/ubuntu/
This errored out:
ERROR cannot deploy bundle: cannot resolve charm or bundle "loki-k8s": selecting releases: ambiguous arch and series with channel "edge/325", specify both arch and series along with channel
The offensive section looks like this:
--- # overlay.yaml
applications:
loki:
channel: edge/325
options:
ingestion
ingestion
resources:
loki-image: ubuntu/
Seems odd that juju (3.1.6) requires arch and series when there is one and only combo available on charmhub.
Appendix 1
==========
After adding
arch: amd64
series: jammy
now it errors out with:
ERROR cannot deploy bundle: cannot resolve charm or bundle "loki-k8s": no releases found for channel "edge/325"
Appendix 2
==========
After changing to
channel: latest/edge/325
arch: amd64
series: jammy
it errors out with
ERROR cannot deploy bundle: cannot resolve charm or bundle "loki-k8s": no releases found for channel "latest/edge/325"
summary: |
- ambiguous arch and series with channel for bundle with temporary branch + Unable to deploy charm from temporary channel |
The issue is that the loki-k8s charm in edge/325 only supports 20.04 (focal). There's no jammy support.
This overlay works
applications: rate-mb: 60 burst-size- mb: 100 loki:2. 8.4-22. 04
loki:
channel: edge/325
arch: amd64
base: ubuntu@20.04
options:
ingestion-
ingestion-
resources:
loki-image: ubuntu/
The error message could be better. The response from charmhub does include the supported bases so that should be surfaced to let the user know how to correct the problem.