documentation about who can run maas command is inconsistent/wrong

Bug #1284789 reported by James Troup on 2014-02-25
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Julian Edwards

Bug Description says:

| Create a superuser account
| Once MAAS is installed, you’ll need to create an administrator
| account:
| $ sudo maas createadmin --username=root --<email address hidden>

(Notice the '$' prompt and use of sudo) says:

| The very first item is a list of MAAS keys. One will have already been
| generated when the system was installed. It’s easiest to just select
| and copy the key (it’s quite long!) and then paste it into the
| commandline. The format of the login command is:
| $ maas login <profile-name> <hostname> <key>

(Notice the '$' prompt and no sudo)

When I try this, it doesn't work

| james@mabolo:~$ maas login root A[...]u
| This utility may only be run as root.

Tags: doc Edit Tag help

Related branches

James Troup (elmo) on 2014-02-25
tags: added: doc
James Troup (elmo) wrote :

Oh, and it gets better:

| root@mabolo:~# maas login root A[...]u
| Unknown command: 'login'
| Type 'django-admin help' for usage.
| root@mabolo:~#

Julian Edwards (julian-edwards) wrote :

Mark asked for maas-cli to get renamed to just "maas" and the old "maas" is renamed to "maas-region-admin". Thanks for pointing out a place we missed updating in the docs. Unfortunately it was not supposed to get published until trusty was released :(

Julian Edwards (julian-edwards) wrote :

Unless you are running trusty, you need

$ sudo maas ....
$ maas-cli login ....

Trusty onwards it's:

$ sudo maas-region-admin
$ maas login ...

Changed in maas:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Julian Edwards (julian-edwards)
Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
milestone: none → 14.04
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