documentation about who can run maas command is inconsistent/wrong

Bug #1284789 reported by James Troup
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Julian Edwards

Bug Description

http://maas.ubuntu.com/docs/install.html#post-install 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)

http://maas.ubuntu.com/docs/maascli.html#api-key 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 http://127.0.0.1/MAAS/api/1.0 A[...]u
| This utility may only be run as root.

Tags: doc

Related branches

James Troup (elmo)
tags: added: doc
Revision history for this message
James Troup (elmo) wrote :

Oh, and it gets better:

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

Revision history for this message
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 :(

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Unless you are running trusty, you need

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

Trusty onwards it's:

$ sudo maas-region-admin
and
$ 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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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