now that charmhub supports multiple bases this caveat becomes more important (to me), because in the CI we use a lot of "juju deploy --dry-run" to determine if a given bundle is "reasonably correct", and knowing if juju will find a charm to run in the desired architecture[0] and series is important.
~ $ cat bundle.yaml
series: jammy
applications:
ubuntu:
charm: ch:ubuntu
num_units: 1
~ $ juju deploy --dry-run ./bundle.yaml
Located charm "ubuntu" in charm-hub, channel stable
Changes to deploy bundle:
- upload charm ubuntu from charm-hub for series jammy with architecture=amd64
- deploy application ubuntu from charm-hub on jammy
- add unit ubuntu/0 to new machine 0
~ $ juju deploy ./bundle.yaml
Located charm "ubuntu" in charm-hub, channel stable
Executing changes:
- upload charm ubuntu from charm-hub for series jammy with architecture=amd64
- deploy application ubuntu from charm-hub on jammy
ERROR cannot deploy bundle: series "jammy" not supported by charm, supported series are: focal, bionic, xenial, groovy
[0] OpenStack charms support amd64, arm64, ppc64el, s390x
now that charmhub supports multiple bases this caveat becomes more important (to me), because in the CI we use a lot of "juju deploy --dry-run" to determine if a given bundle is "reasonably correct", and knowing if juju will find a charm to run in the desired architecture[0] and series is important.
~ $ cat bundle.yaml
series: jammy
applications:
ubuntu:
charm: ch:ubuntu
num_units: 1
~ $ juju deploy --dry-run ./bundle.yaml
Located charm "ubuntu" in charm-hub, channel stable
Changes to deploy bundle:
- upload charm ubuntu from charm-hub for series jammy with architecture=amd64
- deploy application ubuntu from charm-hub on jammy
- add unit ubuntu/0 to new machine 0
~ $ juju deploy ./bundle.yaml
Located charm "ubuntu" in charm-hub, channel stable
Executing changes:
- upload charm ubuntu from charm-hub for series jammy with architecture=amd64
- deploy application ubuntu from charm-hub on jammy
ERROR cannot deploy bundle: series "jammy" not supported by charm, supported series are: focal, bionic, xenial, groovy
[0] OpenStack charms support amd64, arm64, ppc64el, s390x