"maas init" doesn't create admin user

Bug #1871356 reported by Junien F
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Alberto Donato
2.7
Won't Fix
High
Unassigned

Bug Description

Running MAAS snap 2.7.0-8235-g.fea3a1678. This is a fresh install on an empty database.

I ran "maas init" in mode "region+rack", and specified all 3 admin options on the command line (ie --admin-{username,email,password}) and the admin user didn't get created (well at least I couldn't login with the provided credentials)

I had to run "maas createadmin" to get a usable admin user.

Thanks

Related branches

Alberto Donato (ack)
Changed in maas:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.8.0b1
Revision history for this message
Alberto Donato (ack) wrote :

So it seems this is actually always been the behavior when any mode other than "all" is selected.
I think the reason is that only "all" mode assumes the maas database is being initialized, therefore asking for additional configurations (first admin, external auth config, ...).

When running as "region" or "region+rack", the command currently doesn't know whether it's a new install or a new region is being added.

Revision history for this message
Junien F (axino) wrote :

I think it should check if the database is empty (which was my case), and if so display the "first admin" questions.

One more thing, the web login page didn't tell me there was no account configured.

Alberto Donato (ack)
Changed in maas:
milestone: 2.8.0b1 → 2.8.0b2
Alberto Donato (ack)
Changed in maas:
milestone: 2.8.0b2 → 2.8.0rc1
Alberto Donato (ack)
Changed in maas:
milestone: 2.8.0b3 → 2.8.0rc1
Changed in maas:
assignee: nobody → Alberto Donato (ack)
Alberto Donato (ack)
Changed in maas:
milestone: 2.8.0b4 → 2.8.0rc1
Alberto Donato (ack)
Changed in maas:
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Alberto Donato (ack)
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.