Failed to upgrade MAAS from 2.8.7 to 3.3/stable on Ubuntu 22.04 with Postgresql 16

~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
~$ sudo snap info maas
name:      maas
summary:   Metal as a Service
publisher: Canonical✓
store-url: https://snapcraft.io/maas
contact:   https://discourse.maas.io/
license:   unset
description: |
  Total automation of your physical servers for amazing data center operational efficiency.
commands:
  - maas
services:
  maas.supervisor: simple, enabled, active
snap-id:      shY22YTZ3RhJJDOj0MfmShTNZTEb1Jiq
tracking:     2.8/stable
refresh-date: 7 days ago, at 00:07 GMT
channels:
  3.3/stable:       3.3.4-13189-g.f88272d1e         2023-06-21 (28521) 138MB -
  3.3/candidate:    3.3.1-13169-g.94920eb1e         2023-03-14 (26658) 138MB -
  3.3/beta:         3.3.5-13201-g.2715332b6         2023-08-04 (29855) 138MB -
  3.3/edge:         3.3.5-13217-g.bc62ea88d         2023-12-15 (32313) 138MB -
  latest/stable:    –
  latest/candidate: –
  latest/beta:      –
  latest/edge:      3.5.0~alpha1-15445-g.f5c5d5717  2023-12-15 (32330) 195MB -
  3.4/stable:       –
  3.4/candidate:    3.4.0~rc2-14317-g.15c0dc219     2023-11-09 (31463) 138MB -
  3.4/beta:         3.4.0-14319-g.3ab76533f         2023-12-04 (32085) 138MB -
  3.4/edge:         3.4.0~rc2-14324-g.354f71f94     2023-12-15 (32320) 138MB -
  3.2/stable:       3.2.9-12055-g.c3d5597a7         2023-10-06 (31022) 148MB -
  3.2/candidate:    3.2.9-12055-g.c3d5597a7         2023-12-19 (32354) 148MB -
  3.2/beta:         3.2.10~alpha1-12059-g.1ec3972b6 2023-10-06 (30948) 148MB -
  3.2/edge:         3.2.10~alpha1-12062-g.609885010 2023-11-06 (31542) 148MB -
  3.1/stable:       3.1.2-10926-g.5ad7060e5         2023-09-25 (30495) 142MB -
  3.1/candidate:    3.1.1-10918-g.9cbd96fd2         2023-12-20 (32361) 142MB -
  3.1/beta:         ↑
  3.1/edge:         3.1.2-10927-g.bd1dde499         2023-10-02 (30939) 142MB -
  3.0/stable:       3.0.1-10052-g.82c730c57         2023-06-20 (28871) 143MB -
  3.0/candidate:    3.0.0-10029-g.986ea3e45         2022-11-15 (24909) 143MB -
  3.0/beta:         ↑
  3.0/edge:         3.0.1-10054-g.1276a4b39         2023-10-02 (30942) 143MB -
  2.9/stable:       2.9.3-9276-g.76e9dd1e6          2023-08-29 (30206) 141MB -
  2.9/candidate:    ↑
  2.9/beta:         2.9.3-9276-g.76e9dd1e6          2023-08-29 (30206) 141MB -
  2.9/edge:         2.9.3-9276-g.76e9dd1e6          2023-08-23 (30206) 141MB -
  2.8/stable:       2.8.7-8610-g.4a04daa43          2021-09-16 (16381) 135MB -
  2.8/candidate:    2.8.7-8610-g.4a04daa43          2021-09-16 (16381) 135MB -
  2.8/beta:         ↑
  2.8/edge:         2.8.9~rc1-8615-g.235c64cb7      2022-10-26 (24701) 136MB -
  2.7/stable:       2.7.3-8290-g.ebe2b9884          2020-08-21  (8724) 144MB -
  2.7/candidate:    ↑
  2.7/beta:         ↑
  2.7/edge:         2.7.3-8297-g.68a767295          2021-02-16 (11806) 143MB -
installed:          2.8.7-8610-g.4a04daa43                     (16381) 135MB -
~$ sudo snap refresh --channel=3.3 maas
error: snap "maas" is not available on 3.3/stable but is available to install on the following
       channels:

       3.3/candidate  snap refresh --channel=3.3/candidate maas
       3.3/beta       snap refresh --channel=3.3/beta maas
       3.3/edge       snap refresh --channel=3.3/edge maas

       Please be mindful pre-release channels may include features not completely tested or
       implemented. Get more information with 'snap info maas'.
~$ sudo psql --version
psql (PostgreSQL) 16.1 (Ubuntu 16.1-1.pgdg22.04+1)

The host OS was upgraded from Ubuntu 18 LTS → 20.04 LTS → 22.04.3 LTS.
The PostgreSQL was upgraded manually from 10 to 16.

Successfully manually upgraded maas from 2.8.7 → 2.9/stable → 3.0/stable (3.0.1) → 3.1/stable (3.1.2) → 3.3/stable (3.3.4). That’s a interesting workaround…

That trail of updates looks suspiciously like our snap epochs.
That aside, congrats on the upgrade!

1 Like

Thanks for the clarification!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.