Upgrading MAAS

Upgrade 2.4 to 2.5

To upgrade MAAS from 2.4 to 2.5:

sudo apt upgrade

Upgrading from 2.0/1/2/3 of MAAS to 2.5

If you’re running MAAS 2.3 or older, please see the following for more information about an upgrade path that makes sense for your installation. MAAS 2.3 was the last version to support Ubuntu 16.04 LTS.

Upgrading from 1.9

If you’re running MAAS 1.9, please start with the following and then see the section above. MAAS 1.9 was the last version to support Ubuntu 14.04 LTS.

See the Releases section on the Ubuntu wiki for more information about the Ubuntu release schedule.

There seems no comment for upgrading MAAS to latest version, for example as of now 2.6.
If there is nothing special to comment, we could change ‘2.5’ to ‘2.5 or later’.

I have tried to upgrade from 2.4.2 to 2.6 on Bionic but the upgrade has failed :

Applying maasserver.0165_remove_and_rename_power_parameters… OK
Applying maasserver.0166_auto_select_s390x_extra_arches…Traceback (most recent call last):
File “/usr/sbin/maas-region”, line 65, in
File “/usr/sbin/maas-region”, line 61, in main
File “/usr/sbin/maas-region”, line 49, in run
File “/usr/lib/python3/dist-packages/django/core/management/init.py”, line 364, in execute_from_command_line
File “/usr/lib/python3/dist-packages/django/core/management/init.py”, line 356, in execute
File “/usr/lib/python3/dist-packages/django/core/management/base.py”, line 283, in run_from_argv
self.execute(*args, **cmd_options)
File “/usr/lib/python3/dist-packages/django/core/management/base.py”, line 330, in execute
output = self.handle(*args, **options)
File “/usr/lib/python3/dist-packages/maasserver/management/commands/dbupgrade.py”, line 108, in handle
call_command(“migrate”, interactive=False)
File “/usr/lib/python3/dist-packages/django/core/management/init.py”, line 131, in call_command
return command.execute(*args, **defaults)
File “/usr/lib/python3/dist-packages/django/core/management/base.py”, line 330, in execute
output = self.handle(*args, **options)
File “/usr/lib/python3/dist-packages/django/core/management/commands/migrate.py”, line 204, in handle
File “/usr/lib/python3/dist-packages/django/db/migrations/executor.py”, line 115, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File “/usr/lib/python3/dist-packages/django/db/migrations/executor.py”, line 145, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File “/usr/lib/python3/dist-packages/django/db/migrations/executor.py”, line 244, in apply_migration
state = migration.apply(state, schema_editor)
File “/usr/lib/python3/dist-packages/django/db/migrations/migration.py”, line 129, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File “/usr/lib/python3/dist-packages/django/db/migrations/operations/special.py”, line 193, in database_forwards
self.code(from_state.apps, schema_editor)
File “/usr/lib/python3/dist-packages/maasserver/migrations/maasserver/0166_auto_select_s390x_extra_arches.py”, line 12, in add_s390x_to_pkg_repository_to_arches
File “/usr/lib/python3/dist-packages/django/db/models/manager.py”, line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File “/usr/lib/python3/dist-packages/django/db/models/query.py”, line 380, in get
fake.DoesNotExist: PackageRepository matching query does not exist.
dpkg: error processing package maas-region-controller (–configure):
installed maas-region-controller package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of maas:
maas depends on maas-region-controller (= 2.6.1-7832-g17912cdc9-0ubuntu1~18.04.1); however:
Package maas-region-controller is not configured yet.

dpkg: error processing package maas (–configure):
dependency problems - leaving unconfigured

I am sorry but I was just talking about the document not about an issue on upgrading MAAS. I think you should create a new topic for that.

Thanks I have found a similar issue here Upgrade MAAS from 2.4 to 2.5 version