juju deploy doesn't pick one default series, focal sometimes then jammy other times
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Won't Fix
|
Undecided
|
Unassigned | ||
Snap Store Server |
New
|
Undecided
|
Unassigned |
Bug Description
At this moment, it's probably impossible to know which series to be used for a charm deployment in advance. Previously this behavior never happened because there was a value for "default-series" in model-config out of the box.
$ juju version
2.9.37-ubuntu-amd64
$ juju model-config | grep series
default-series default ""
^^^ the default-series is empty by default probably after this change:
https:/
$ juju deploy ubuntu
Located charm "ubuntu" in charm-hub, revision 21
Deploying "ubuntu" from charm-hub charm "ubuntu", revision 21 in channel stable on focal
^^^ focal was deployed (the charm supports both focal and jammy)
$ juju deploy --channel edge magpie
Located charm "magpie" in charm-hub, revision 8
Deploying "magpie" from charm-hub charm "magpie", revision 8 in channel edge on jammy
^^^ jammy was deployed (the charm supports both focal and jammy)
This is a surprising behavior since focal is used for some charm deployments while jammy is used for other charms. Comparing two outputs below, it's not obvious which series would be picked.
$ juju info ubuntu | grep supports:
supports: xenial, bionic, focal, jammy
$ juju info --channel edge magpie | grep supports:
supports: bionic, focal, impish, jammy, kinetic
[After setting an explicit default series]
$ juju model-config default-
$ juju deploy ubuntu ubuntu-
Located charm "ubuntu" in charm-hub, revision 21
Deploying "ubuntu-
^^^ focal was deployed
$ juju deploy --channel edge magpie magpie-
Located charm "magpie" in charm-hub, revision 8
Deploying "magpie-
^^^ focal was deployed
Changed in juju: | |
status: | New → Won't Fix |
$ juju deploy ubuntu --dry-run --show-log --logging- config= '<root> =TRACE' id":5," type":" Charms" ,"version" :5,"request" :"ResolveCharms ","params" :{"resolve" :[{"reference" :"ch:ubuntu" ,"charm- origin" :{"source" :"charm- hub","type" :"","id" :"","architectu re":"amd64" ,"base" :{"name" :"","channel" :""}}}] }} id":5," response" :{"Results" :[{"url" :"ch:amd64/ focal/ubuntu- 21","charm- origin" :{"source" :"charm- hub","type" :"charm" ,"id":" ","risk" :"stable" ,"revision" :21,"architectu re":"amd64" ,"base" :{"name" :"","channel" :""},"series" :"focal" ,"os":" ubuntu" ,"channel" :"20.04" },"supported- series" :["focal" ,"bionic" ,"xenial" ,"jammy" ]}]}} juju.applicatio n.deployer charm.go:494 Using series "focal" from [focal bionic xenial jammy] to deploy ch:ubuntu
...
16:54:09 TRACE juju.rpc.jsoncodec codec.go:227 -> {"request-
16:54:10 TRACE juju.rpc.jsoncodec codec.go:121 <- {"request-
16:54:10 TRACE juju.cmd.
"ubuntu" from charm-hub charm "ubuntu", revision 21 in channel stable on focal would be deployed
$ juju deploy --channel edge magpie --dry-run --show-log --logging- config= '<root> =TRACE' id":5," type":" Charms" ,"version" :5,"request" :"ResolveCharms ","params" :{"resolve" :[{"reference" :"ch:magpie" ,"charm- origin" :{"source" :"charm- hub","type" :"","id" :"","risk" :"edge" ,"architecture" :"amd64" ,"base" :{"name" :"","channel" :""}}}] }} id":5," response" :{"Results" :[{"url" :"ch:amd64/ jammy/magpie- 8","charm- origin" :{"source" :"charm- hub","type" :"charm" ,"id":" ","risk" :"edge" ,"revision" :8,"architectur e":"amd64" ,"base" :{"name" :"","channel" :""},"series" :"jammy" ,"os":" ubuntu" ,"channel" :"22.04" },"supported- series" :["jammy" ,"focal" ,"bionic" ,"impish" ]}]}} juju.applicatio n.deployer charm.go:494 Using series "jammy" from [jammy focal bionic impish] to deploy ch:magpie
...
16:52:56 TRACE juju.rpc.jsoncodec codec.go:227 -> {"request-
16:52:57 TRACE juju.rpc.jsoncodec codec.go:121 <- {"request-
16:52:57 TRACE juju.cmd.
"magpie" from charm-hub charm "magpie", revision 8 in channel edge on jammy would be deployed