deploy by revision, fails to validate architecture
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Undecided
|
Unassigned |
Bug Description
I have a blank model on a Juju 2.9.44 LXD based controller on an arm64 machine and I deploy the grafana charm at a specific revision:
$ juju deploy grafana --channel=stable --revision=66
The deploy works and the charm is deployed as expected:
$ juju status
Model Controller Cloud/Region Version SLA Timestamp
foo appliance appliance/default 2.9.42 unsupported 13:42:28Z
App Version Status Scale Charm Channel Rev Exposed Message
grafana active 1 grafana stable 66 no Ready
Unit Workload Agent Machine Public address Ports Message
grafana/0* active idle 0 240.6.0.23 3000/tcp Ready
Machine State Address Inst id Series AZ Message
0 started 240.6.0.23 juju-401313-0 focal Running
When I now want to refresh the charm (there is no newer revision available), something weird happens:
$ juju upgrade-charm grafana
Added charm-hub charm "grafana", revision 51 in channel stable, to the model
ERROR cannot downgrade from v2 charm format to v1
Why does Juju find that revision 51 is latest? Looking at the charm on Charmhub (https:/
Revision 51 is most likely a charm build with older metadata, so the format error is not an issue.
This has been recently working and initial found on a 2.9.42 controller. Interestingly this has worked without issue until recently (not sure when), so I doubt it's a Juju issue.
Changed in juju: | |
status: | New → Triaged |
summary: |
- Juju finds incorrect charm revision on Charmhub + deploy by revision, fails to validate architecture |
$ juju info grafana --arch arm64
name: grafana
...
channels: |
latest/stable: 51 2021-10-18 (51) 7MB ubuntu@20.04, ubuntu@18.04, ubuntu@16.04
latest/candidate: 51 2021-10-18 (51) 7MB ubuntu@20.04, ubuntu@18.04, ubuntu@16.04
latest/beta: ↑
latest/edge: ↑