maas-cli from PPA errors out with traceback - ModuleNotFoundError: No module named 'provisioningserver'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Anton Troyanov | ||
3.2 |
Fix Released
|
Medium
|
Anton Troyanov | ||
3.3 |
Fix Committed
|
Medium
|
Anton Troyanov |
Bug Description
at some point in the recent past, the maas cli (not maas-cli which is, confusingly an entirely different tool) has started throwing a traceback:
$ maas --help
Traceback (most recent call last):
File "/usr/bin/maas", line 11, in <module>
load_
File "/usr/lib/
return get_distributio
File "/usr/lib/
return ep.load()
File "/usr/lib/
return self.resolve()
File "/usr/lib/
module = __import_
File "/usr/lib/
from maascli.parser import get_deepest_
File "/usr/lib/
from maascli.cli import register_
File "/usr/lib/
from provisioningser
ModuleNotFoundE
I'm unable to use the maas cli tool now.
Note this is from the 3.2 debs on Focal. I was able to use maas cli from the 3.2 snap on a different machine. HOWEVER, I don't want to install a 150MB snap on my local machine just to get remote api access. The 3.2 debs are only a few KB in size:
$ ll /var/cache/
-rw-r--r-- 1 root root 37K Aug 3 15:48 /var/cache/
-rw-r--r-- 1 root root 67K Aug 3 15:48 /var/cache/
So just over 100KB in size compared to the full MAAS snap:
3.2/stable: 3.2.2-12005-
Related branches
- Anton Troyanov: Approve
- MAAS Lander: Approve
-
Diff: 174 lines (+36/-16)5 files modifiedsrc/maascli/cli.py (+7/-3)
src/maascli/snap.py (+3/-1)
src/maascli/tests/test_snap.py (+5/-4)
src/provisioningserver/certificates.py (+0/-8)
utilities/check-imports (+21/-0)
- Anton Troyanov: Approve
- MAAS Lander: Approve
-
Diff: 97 lines (+28/-11)3 files modifiedsrc/maascli/cli.py (+7/-3)
src/provisioningserver/certificates.py (+0/-8)
utilities/check-imports (+21/-0)
- MAAS Lander: Approve
- Adam Collard (community): Approve
-
Diff: 174 lines (+36/-16)5 files modifiedsrc/maascli/cli.py (+7/-3)
src/maascli/snap.py (+3/-1)
src/maascli/tests/test_snap.py (+5/-4)
src/provisioningserver/certificates.py (+0/-8)
utilities/check-imports (+21/-0)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Medium |
description: | updated |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 3.4.0 → 3.4.0-beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
The module "provisioningse rver" is offered by python3- maas-provisioni ngserver, but maas-cli doesn't depends on it and it will consume ~50MB disk space additionally in the current packaging structure.
==== babel-localedat a python3-babel python3-bcrypt python3-boto python3-bs4 python3-bson python3-bson-ext python3-crochet python3-curtin python3-dateutil python3-decorator maas-provisioni ngserver python3-paramiko python3-pbr python3-prettytable python3- prometheus- client requests- toolbelt python3- seamicroclient python3- simplestreams python3-soupsieve python3-txtftp python3-uvloop webencodings python3-ws4py
The following NEW packages will be installed:
curtin-common python-
python3-dnspython python3-formencode python3-html5lib python3-iso8601 python3-lxml python3-
python3-pylxd python3-pyparsing python3-pypureomapi python3-pyvmomi python3-
python3-
0 upgraded, 34 newly installed, 0 to remove and 15 not upgraded.
Need to get 9340 kB of archives.
After this operation, 49.4 MB of additional disk space will be used.
====