Piston3 error when upgraded to Ubuntu 22.04

We are currently running MAAS 3.2.7, and upgraded Ubuntu from 20.04 to 22.04. Everything seemed fine until we tried to login on the MAAS interface and was not able to. The regiond logs showed this Traceback:

Traceback (most recent call last): File "/usr/sbin/regiond", line 11, in <module> load_entry_point('maas==3.2.7', 'console_scripts', 'regiond')() File "/usr/lib/python3/dist-packages/maasserver/server.py", line 107, in run runMasterServices() File "/usr/lib/python3/dist-packages/maasserver/server.py", line 21, in runMasterServices runService("maas-regiond-master") File "/usr/lib/python3/dist-packages/provisioningserver/server.py", line 90, in runService UnixApplicationRunner(config).run() File "/usr/lib/python3/dist-packages/twisted/application/app.py", line 370, in run self.application = self.createOrGetApplication() File "/usr/lib/python3/dist-packages/twisted/application/app.py", line 432, in createOrGetApplication ser = plg.makeService(self.config.subOptions) File "/usr/lib/python3/dist-packages/maasserver/plugin.py", line 215, in makeService self._configureDjango() File "/usr/lib/python3/dist-packages/maasserver/plugin.py", line 86, in _configureDjango django.setup() File "/usr/lib/python3/dist-packages/django/__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 91, in populate app_config = AppConfig.create(entry) File "/usr/lib/python3/dist-packages/django/apps/config.py", line 224, in create import_module(entry) File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlockedModuleNotFoundError: No module named 'piston3

Would upgrading to MAAS 3.3 resolve this error? Has anyone faced this issue?

hey @audreys!

First of all welcome to the community :slight_smile: Sorry to hear that your are having troubles with this.

Let me try to reproduce the issue and then check if an upgrade would fix this. Did you install maas with snap or deb?

We used the package install method. Thanks for assisting, any help would be appreciated!

Hello @audreys

If you want to run MAAS on 22.04, you have to use version 3.3 PPA

Here is a blog post highlighting new features available in MAAS 3.3

1 Like

Thanks @troyanov, should I upgrade to MAAS 3.3 before upgrading to Ubuntu 22.04 then?

Hi @audreys,

For the tests I’ve made you can upgrade to Ubuntu 22.04 and then upgrade MAAS to 3.3. But please note that you must upgrade to Postgresql 14 first otherwise the upgrade from 3.2 to 3.3 would have issues. Backup your data before making any change.

1 Like

Hi @r00ta that’s brilliant news. Thank you very much. We will do the upgrades this week and report back.

@r00ta and @troyanov, here to confirm that our upgrade to Ubuntu 22.04 and MAAS 3.3 was successful. Thanks again!

2 Likes

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