[2.4] python3-maas-client doesn't depend on macaroonbakery

Bug #1768796 reported by Florian Guitton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Alberto Donato

Bug Description

Good day to you all !

After proceeding successfully to an OS upgrade from 16.04.4 LTS to 18.04 LST the maas CLI refuses to work, pointing to a missing python module:

maas-region:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS"

maas-region:~# uname -a
Linux maas-region 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

maas-region:~# apt install maas-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
maas-cli is already the newest version (2.4.0~beta2-6865-gec43e47e6-0ubuntu1).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

maas-region:~# maas login -k dsi-maas https://maas.cip.dsi.ic.ac.uk/MAAS/
Traceback (most recent call last):
  File "/usr/bin/maas", line 4, in <module>
    import maascli
  File "/usr/lib/python3/dist-packages/maascli/__init__.py", line 12, in <module>
    from maascli.parser import prepare_parser
  File "/usr/lib/python3/dist-packages/maascli/parser.py", line 15, in <module>
    from maascli.cli import register_cli_commands
  File "/usr/lib/python3/dist-packages/maascli/cli.py", line 18, in <module>
    from maascli.auth import (
  File "/usr/lib/python3/dist-packages/maascli/auth.py", line 20, in <module>
    from macaroonbakery import httpbakery
ModuleNotFoundError: No module named 'macaroonbakery'

Related branches

description: updated
Changed in maas:
milestone: none → 2.4.0rc1
assignee: nobody → Alberto Donato (ack)
summary: - [2.3.2 -> 2.4.0~beta2] MAAS missing 'macaroonbakery' import after snap
- refresh
+ [2.4] python3-maas-client doesn't depend on macaroonbakery
Revision history for this message
Alberto Donato (ack) wrote :

There's a missing dependency on python3-macaroonbakery in python3-maas-client.

A workaround until the fix lands is to install python3-macaroonbakery manually

Changed in maas:
status: New → In Progress
Revision history for this message
Alberto Donato (ack) wrote :

The bug title mentions "snap refresh" but it seems you're using deb packages (at least, the error comes from the deb-packaged CLI).
Could you please confirm you're not using the snap?

Changed in maas:
importance: Undecided → High
Revision history for this message
Florian Guitton (f-guitton) wrote :

You are correct. I realized later that it wasn't the snap package and meant to change the title but my spotty connection dropped. I must apologize, thank you for picking it up.

Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.