I can't seem to upgrade MAAS

I can’t seem to upgrade MAAS.

I installed MAAS 2.7.3 with snap (maas 2.7/stable) and it works without any problems.
As expected, the version is old, so I tried to upgrade to 3.2.10.

As a result, the following results were displayed. Is there no MAAS 3.2/Stable?

$ sudo snap refresh --channel=3.2/stable maas
error: snap "maas" is not available on 3.2/stable but is available to install on the
       following channels:

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

       Please be mindful pre-release channels may include features not completely tested or
       implemented. Get more information with 'snap info maas'.
$ sudo snap refresh --channel=3.2 maas
error: snap "maas" is not available on 3.2/stable but is available to install on the
       following channels:

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

       Please be mindful pre-release channels may include features not completely tested or
       implemented. Get more information with 'snap info maas'.
       
$ sudo snap refresh --channel=3.1/stable maas
error: snap "maas" is not available on 3.1/stable but is available to install on the
       following channels:

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

       Please be mindful pre-release channels may include features not completely tested or
       implemented. Get more information with 'snap info maas'.       

P.S. MAAS 2.7.3 is currently running on Ubuntu 20.04.

Oh…
I was able to update as long as I didn’t upgrade all at once.

$ sudo snap refresh --channel=2.8/stable maas ok

$ sudo snap refresh --channel=2.9/stable maas failed

2024-03-26T07:42:46Z INFO Waiting for "snap.maas.supervisor.service" to stop.
error: cannot perform the following tasks:
- Run post-refresh hook of "maas" snap if present (run hook "post-refresh":
-----
The snap is configured in "all" mode (running the PostgreSQL database within
the snap), which is no longer supported.

It won't be possible to refresh the snap to this new version until the
installation is converted to a supported mode (e.g "region+rack").

Please run the following script to migrate the database to the host system:

  sudo /snap/maas/current/helpers/migrate-snap-database
-----)
$ sudo /snap/maas/current/helpers/migrate-snap-database
PostgreSQL is already installed on this machine.

If you proceed with migration of the MAAS database from the snap, existing
database setup will be replaced.

Current databases will be backed up:
  maas

Proceed? [Y/n]: y
* Migrating database from the snap to the host
Previous PostgreSQL databases left in /var/lib/postgresql/12/main.bak
* Updating the snap configuration

...and try again.
$ sudo snap refresh --channel=2.9/stable maas ok
2024-03-26T07:45:39Z INFO Waiting for "snap.maas.supervisor.service" to stop.
maas (2.9/stable) 2.9.3-9276-g.76e9dd1e6 from Canonical✓ refreshed

$ sudo snap refresh --channel=3.0/stable maas ok
2024-03-26T07:47:13Z INFO Waiting for "snap.maas.supervisor.service" to stop.
maas (3.0/stable) 3.0.2-10056-g.089ec66c2 from Canonical✓ refreshed

$ sudo snap refresh --channel=3.1/stable maas ok
2024-03-26T07:52:04Z INFO Waiting for "snap.maas.supervisor.service" to stop.
maas (3.1/stable) 3.1.3-10930-g.2eb4e7525 from Canonical✓ refreshed

$ sudo snap refresh --channel=3.2/stable maas ok
2024-03-26T07:53:59Z INFO Waiting for "snap.maas.supervisor.service" to stop.
maas (3.2/stable) 3.2.10-12065-g.0093bc7ec from Canonical✓ refreshed

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