snap maas init region with no arguments gives traceback

Bug #1797988 reported by Spencer Seidel
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Unassigned

Bug Description

This is with the stable and edge versions of the maas snap.

To reproduce:

$ sudo snap install maas --stable --devmode
maas 2.3.3-6498-ge4db91d-snap from Canonical✓ installed
$ sudo maas init --mode region
MAAS URL [default=http://192.168.1.12:5240/MAAS]:
Traceback (most recent call last):
  File "/snap/maas/2589/bin/maas", line 24, in <module>
    sys.exit(run())
  File "/snap/maas/2589/bin/maas", line 21, in run
    return maascli.main()
  File "/snap/maas/2589/lib/python3.5/site-packages/maascli/__init__.py", line 29, in main
    options.execute(options)
  File "/snap/maas/2589/lib/python3.5/site-packages/maascli/snappy.py", line 582, in __call__
    raise exc
  File "/snap/maas/2589/lib/python3.5/site-packages/maascli/snappy.py", line 579, in __call__
    self.handle(options)
  File "/snap/maas/2589/lib/python3.5/site-packages/maascli/snappy.py", line 679, in handle
    help_text=ARGUMENTS['database_host']['help'])
KeyError: 'database_host'

Tags: snap
summary: - snap maas init region with no arguments gives stack trace
+ snap maas init region with no arguments gives traceback
Changed in maas:
milestone: none → 2.5.0rc1
tags: added: snap
Changed in maas:
status: New → Triaged
importance: Undecided → Medium
Changed in maas:
milestone: 2.5.0rc1 → 2.5.0
Changed in maas:
milestone: 2.5.0 → 2.5.x
Changed in maas:
milestone: 2.5.x → 2.6.0
Alberto Donato (ack)
no longer affects: maas/2.3
Alberto Donato (ack)
Changed in maas:
milestone: 2.6.0 → 2.7.0
status: Triaged → Fix Committed
Changed in maas:
milestone: 2.7.0 → 2.7.0b3
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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