Postgresql charm doesn't support Jammy 22.04 yet

Just wanted to ask how I can work around the fact that… one of my charms seems to not support 22.04 … is there a way to call out for that charm to just back off the jammy series and use 20.04’s base?

this blocks me using a bundle on 22.04 but I feel like there must be an easy way to just tell my bundle for that specific charm it’s okay to use focal/bionic etc…?

EDIT: asked the team via launchpad

when I tried simply adding the series under postgresql

series: jammy 
applications:
  postgresql:
    charm: postgresql
    series: focal
    num_units: 1
    to:
    - "1"

I get this

- add unit postgresql/0 to new machine 0
ERROR cannot deploy bundle: cannot add unit for application "postgresql": acquiring machine to host unit "postgresql/0": cannot assign unit "postgresql/0" to machine 0: series does not match

I was able to specify a focal charm in a jammy bundle as follows:

mthaddon@tenaya:~/Documents/tmp/working-charms$ juju deploy ./bundle.yaml
Located charm "postgresql" in charm-hub, channel stable
Executing changes:
- upload charm postgresql from charm-hub for series focal with architecture=amd64
- deploy application postgresql from charm-hub on focal
  added resource wal-e
- add unit postgresql/0 to new machine 0
Deploy of bundle completed.
mthaddon@tenaya:~/Documents/tmp/working-charms$ cat bundle.yaml 
series: jammy 
applications:
  postgresql:
    charm: postgresql
    series: focal
    num_units: 1

Will now try and test with placement as well.

1 Like

I was able to get a deploy working with placement as follows:

mthaddon@tenaya:~/Documents/tmp/working-charms$ cat bundle.yaml
series: jammy
applications:
  postgresql:
    charm: postgresql
    series: focal
    num_units: 1
  pg-manual:
    charm: postgresql
    series: focal
    num_units: 1
    to:
      - "1"

machines:
  "1":
    series: focal
mthaddon@tenaya:~/Documents/tmp/working-charms$ juju deploy ./bundle.yaml
Located charm "postgresql" in charm-hub, channel stable
Located charm "postgresql" in charm-hub, channel stable
Executing changes:
- upload charm postgresql from charm-hub for series focal with architecture=amd64
- deploy application pg-manual from charm-hub on focal using postgresql
  added resource wal-e
- deploy application postgresql from charm-hub on focal
  added resource wal-e
- add new machine 0 (bundle machine 1)
- add unit pg-manual/0 to new machine 0
- add unit postgresql/0 to new machine 1
Deploy of bundle completed.
1 Like