juju deploy jammy when focal requested

Bug #2039179 reported by Heather Lanigan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Heather Lanigan
3.1
Fix Released
High
Heather Lanigan

Bug Description

`juju deploy postgresql --series focal` should fail today charm revision, 288, at the tip of the default channel, 1.4/stable only supports jammy. Instead a jammy only channel was deployed on focal.

This also reproduces in 3.1 and 3.2, but not 3.3.beta2 right now

$ juju deploy postgresql --series focal
Located charm "postgresql" in charm-hub, revision 288
Deploying "postgresql" from charm-hub charm "postgresql", revision 288 in channel 14/stable on focal

juju:PRIMARY> db.charms.find({"_id" : "97b73441-4d56-471c-80f0-c64d19e2ca9a:ch:amd64/focal/postgresql-288"},{"meta.series":1, "manifest":1}).pretty()
{
 "_id" : "97b73441-4d56-471c-80f0-c64d19e2ca9a:ch:amd64/focal/postgresql-288",
 "meta" : {
  "series" : [
   "jammy"
  ]
 },
 "manifest" : {
  "bases" : [
   {
    "name" : "ubuntu",
    "channel" : {
     "track" : "22.04",
     "risk" : "stable",
     "branch" : ""
    },
    "architectures" : [
     "amd64"
    ]
   }
  ]
 }
}

Revision history for this message
John A Meinel (jameinel) wrote :

I get this error when trying to use the 3.3 client:
$ juju --logging-config "#charmhub=TRACE" deploy postgresql --base ubuntu@20.04
ERROR base "ubuntu@20.04/stable" is not supported, supported bases are: ubuntu@22.04
ERROR failed to deploy charm "postgresql"

So it seems we are doing the right thing in 3.3, we just need to fix earlier revisions to refuse to deploy a charm that doesn't support the requested series.

Changed in juju:
assignee: Jack Shaw (jack-shaw) → Heather Lanigan (hmlanigan)
Changed in juju:
status: Triaged → In Progress
Ian Booth (wallyworld)
no longer affects: juju/3.2
Changed in juju:
milestone: 2.9.46 → 2.9.47
Revision history for this message
Heather Lanigan (hmlanigan) wrote :

This was fixed in 2.9.46

Changed in juju:
status: In Progress → Fix Committed
Ian Booth (wallyworld)
Changed in juju:
milestone: 2.9.47 → 2.9.46
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.