Lack of any return message on command that required admin privs
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:/
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
- MAAS Lander: Needs Fixing
- Adam Collard (community): Approve
-
Diff: 71 lines (+23/-8)2 files modifiedsrc/maascli/tests/test_utils.py (+19/-8)
src/maascli/utils.py (+4/-0)
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 |
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.