Comment 13 for bug 1996794

Revision history for this message
Heather Lanigan (hmlanigan) wrote : Re: juju deploy machine charm with --force fails with "ERROR no releases found for channel"

There is a regression when --force is used to deploy a charm with a different series than the charm supports. `juju refresh` of a charm deployed with --force for series will also fail:

$ juju deploy ubuntu --series kinetic --force --revision 20 --channel stable
Located charm "ubuntu" in charm-hub, revision 20
Deploying "ubuntu" from charm-hub charm "ubuntu", revision 20 in channel stable on kinetic

$ juju refresh ubuntu-twenty
ERROR downloading charm "ch:amd64/jammy/ubuntu-21" from origin {charm-hub charm DksXQKAQTZfsUmBAGanZAhpoS4dpmXel 458c7bde333165ae1c3360c8eb7bad911688506dea2a768aeba56bf2eebe1b6b 0xc0039de558 stable amd64/ubuntu/22.10 }: revision-not-found: No revision was found in the Store.

The wrong base is being saved in the charm origin of the application doc. It should be the base of the charm deployed, not the base used to create the machine.