Lack of any return message on command that required admin privs

Bug #1952672 reported by Brad Figg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Alberto Donato

Bug Description

I'm using MAAS 2.9.2 cli. I encountered several possible issues when trying to add a tag to a machine. I'm not sure any of these are truly bugs but I'll specify them anyway:

1. I was logged in as a MAAS user (jenkins) and not an admin and ran the command 'maas jenkins tags create name=bjf comment=bjf". Nothing was returned. However, when I ran 'maas jenkins tags read' I did not see a tag named 'bjf'. I re-logged in as a MAAS admin (bradf) and tried again and this time I got back a message that indicated it had succeeded and 'maas bradf tags read' listed it among all the other tags.

2. I started this by going to the link: https://maas.io/docs/snap/2.9/cli/how-to-use-machine-tags#heading--assign-machine-tags-to-a-machine . This does not mention that first a tag must be created before being assigned to a machine. I assumed that simply running the command to assign a tag created the tag on for the given machine. I think it would be helpful if this was more clearly spelled out with a pointer to the documentation on creating a tag.

3. When I ran the command "maas jenkins tag update-nodes add=xxxxx" what I got back was "Not Found". It would have been helpful if it said "Tag not found".

Related branches

Revision history for this message
Huw Wilkins (huwshimi) wrote :

Another point of confusion was:

4. Running maas $PROFILE tag --help includes the following:

...
    update-nodes Add or remove nodes by tag
...

This seems to suggest that the nodes will be added or removed rather than the tags.

Alberto Donato (ack)
Changed in maas:
milestone: none → next
importance: Undecided → Medium
status: New → Triaged
assignee: nobody → Alberto Donato (ack)
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
milestone: next → 3.2.0-beta1
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.