Prefered series could not selected for the applications in Kubernetes Bundles
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Harry Pidcock |
Bug Description
Hello,
We have a kubernetes bundle https:/
We would like to deploy the charm with series jammy in a bundle. However, series is not allowed for application in kubernetes bundles. Even changing model config as following does not work for us. "juju model-config default-
A sample charm status:
charmcraft status osm-lcm
Track Base Channel Version Revision Resources
latest ubuntu 20.04 (aarch64) stable 1 1 image (r1)
ubuntu 20.04 (amd64) stable 1 1 image (r1)
ubuntu 20.04 (arm64) stable 1 1 image (r1)
ubuntu 22.04 (amd64) stable - - -
Steps to reproduce:
juju add model dev microk8s
juju deploy osm --channel=
juju show-application osm-lcm
Output:
lcm:
charm: osm-lcm
series: focal
channel: beta
constraints:
arch: amd64
principal: true
exposed: false
remote: false
life: alive
endpoint-
"": alpha
kafka: alpha
mongodb: alpha
ro: alpha
vca: alpha
The expectation:
Application deployed with series: jammy.
Could you please help on this ?
Many thanks!
Changed in juju: | |
assignee: | nobody → Harry Pidcock (hpidcock) |
status: | Triaged → In Progress |
Changed in juju: | |
milestone: | 2.9.35 → 2.9.36 |
Changed in juju: | |
milestone: | 2.9.36 → 2.9.37 |
Changed in juju: | |
milestone: | 2.9.37 → 2.9.38 |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Built one of the charm by adding assumes expression in to metadata.yaml such as:
name: osm-lcm
display-name: OSM LCM
assumes:
- any-of:
- juju >= 2.9
- K8s-api
It throws the error 'parsing "any-of" expression: malformed feature expression "K8s-api"'
$ juju deploy ./osm.zip --trust
Located charm "osm-lcm" in charm-hub, channel beta
Located charm "zookeeper-k8s" in charm-hub, channel stable
Executing changes: jammy/osm- lcm-10" from origin {charm-hub charm 0xc004e1d258 beta amd64/ubuntu/jammy }: parsing expression 1 in top level "assumes" block: parsing "any-of" expression: malformed feature expression "K8s-api"
- upload charm osm-lcm from charm-hub for series jammy from channel latest/beta with architecture=amd64
ERROR cannot deploy bundle: cannot add charm "osm-lcm": downloading charm "ch:amd64/