maas-cli missing dependencies: netifaces, tempita

Bug #1724181 reported by Dmitrii Shcherbakov on 2017-10-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
High
Andres Rodriguez
2.2
Undecided
Unassigned

Bug Description

maas -h
Traceback (most recent call last):
  File "/usr/bin/maas", line 12, in <module>
    sys.exit(maascli.main())
  File "/usr/lib/python3/dist-packages/maascli/__init__.py", line 24, in main
    parser = prepare_parser(argv)
  File "/usr/lib/python3/dist-packages/maascli/parser.py", line 71, in prepare_parser
    register_cli_commands(parser)
  File "/usr/lib/python3/dist-packages/maascli/cli.py", line 192, in register_cli_commands
    from maascli import snappy
  File "/usr/lib/python3/dist-packages/maascli/snappy.py", line 30, in <module>
    import netifaces
ImportError: No module named 'netifaces'

$ dpkg -l '*maas*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===================================================-==============================-==============================-============================================================================================================
ii maas-cli 2.2.2-6099-g8751f91-0ubuntu1~1 all MAAS client and command-line interface
un maas-region-controller-min <none> <none> (no description available)
un python-maas-client <none> <none> (no description available)
ii python3-maas-client 2.2.2-6099-g8751f91-0ubuntu1~1 all MAAS python API client (Python 3)

Related branches

Dmitrii Shcherbakov (dmitriis) wrote :

Also missing tempita:

Traceback (most recent call last):
  File "/usr/bin/maas-cli", line 12, in <module>
    sys.exit(maascli.main())
  File "/usr/lib/python3/dist-packages/maascli/__init__.py", line 24, in main
    parser = prepare_parser(argv)
  File "/usr/lib/python3/dist-packages/maascli/parser.py", line 71, in prepare_parser
    register_cli_commands(parser)
  File "/usr/lib/python3/dist-packages/maascli/cli.py", line 192, in register_cli_commands
    from maascli import snappy
  File "/usr/lib/python3/dist-packages/maascli/snappy.py", line 31, in <module>
    import tempita
ImportError: No module named 'tempita'
Command failed: pods create type=virsh name=<redacted> power_address=qemu+ssh://root@10.30.20.1/system

Traceback (most recent call last):
  File "foundation/bin/configure-pod-vm", line 49, in <module>
    configure_pod_vm()
  File "foundation/bin/configure-pod-vm", line 34, in configure_pod_vm
    host['user'])
  File "/home/ubuntu/<redacted>/foundation/bin/maas_cli.py", line 305, in add_virsh_pod
    return cmd(maas_profile, command)
  File "/home/ubuntu/<redacted>/foundation/bin/maas_cli.py", line 77, in cmd
    raise error
subprocess.CalledProcessError: Command '['maas-cli', 'admin', 'pods', 'create', 'type=virsh', 'name=<redacted>', 'power_address=qemu+ssh://root@10.30.20.1/system']' returned non-zero exit status 1
Makefile:109: recipe for target 'pod' failed
make: *** [pod] Error 1

tags: added: cpe-onsite
summary: - maas-cli missing dependency: netifaces
+ maas-cli missing dependency: netifaces, tempita
summary: - maas-cli missing dependency: netifaces, tempita
+ maas-cli missing dependencies: netifaces, tempita
no longer affects: maas (Ubuntu)
Changed in maas:
milestone: none → 2.3.0beta3
Changed in maas:
assignee: nobody → Andres Rodriguez (andreserl)
importance: Undecided → Critical
status: New → In Progress
importance: Critical → High
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  Edit
Everyone can see this information.

Other bug subscribers