sudo maas init --mode region fails

Bug #1750371 reported by Arno van Huyssteen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Incomplete
Undecided
Unassigned
ubuntu-snappy (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

$ snap info maas
name: maas
summary: Metal as a Service
publisher: maas
contact: <email address hidden>
description: |
  Total automation of you physical servers for amazing data center
  operational efficiency.
snap-id: shY22YTZ3RhJJDOj0MfmShTNZTEb1Jiq
channels:
  stable: 2.3.0-6434-gd354690-snap (1349) 101MB -
  candidate: 2.3.0-6434-gd354690-snap (1349) 101MB -
  beta: 2.3.0-6434-gd354690-snap (1349) 101MB -
  edge: 2.4.0~alpha2-6599-g02a034b-snap (1753) 95MB -

$ sudo snap install --devmode --stable maas
maas 2.3.0-6434-gd354690-snap from 'maas' installed
ubuntu@OrangeBox104:/srv/obinstall$ snap list
Name Version Rev Developer Notes
core 16-2.30 3887 canonical core
kubectl 1.9.3 328 canonical classic
maas 2.3.0-6434-gd354690-snap 1349 maas devmode

## WORKING --mode all

$ sudo maas init --mode all
MAAS URL [default=http://172.27.104.1:5240/MAAS]:
Create first admin account:
Username: admin
Password:
Again:
Email: <email address hidden>
Import SSH keys [] (lp:user-id or gh:user-id):

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

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This looks like a bug in maas, not snapd.

Changed in ubuntu-snappy (Ubuntu):
status: New → Invalid
Revision history for this message
Blake Rouse (blake-rouse) wrote :

Are you re-initializing or on fresh install you hit this issue?

From the description of the bug I cannot tell.

Changed in maas:
status: New → Incomplete
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.