[2.0 b3] tag only supports 'nodes' and and not 'machines' or 'controller's
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Trying to list all machines with a specific tag, I came across this command:
retcode for maas maas ['tag', 'machines', 'all']: {{{2}}}
stderr for maas maas ['tag', 'machines', 'all']: {{{
usage: /usr/bin/maas maas tag [-h] COMMAND ...
Manage a Tag.
optional arguments:
-h, --help show this help message and exit
drill down:
COMMAND
update-nodes
Add or remove nodes being associated with this tag.
read Read a specific Tag.
update Update a specific Tag.
rebuild Manually trigger a rebuild the tag <=> node mapping.
nodes Get the list of nodes that have this tag.
delete Delete a specific Tag.
Tags are properties that can be associated with a Node and serve as
criteria for selecting and allocating nodes.
A Tag is identified by its name.
argument COMMAND: invalid choice: 'machines' (choose from 'update-nodes', 'read', 'update', 'rebuild', 'nodes', 'delete')
}}}
MAAS should allow the following:
maas <user> tag *machines* <tag_name> # All machines
maas <user> tag *controllers* <tag_name> # all controllers
maas <user> tag *nodes* <tag_name> # all machines, controllers, devices, etc.
Related branches
- Blake Rouse (community): Approve
-
Diff: 304 lines (+165/-20)7 files modifiedsrc/maasserver/api/tags.py (+45/-7)
src/maasserver/api/tests/test_tag.py (+98/-4)
src/maasserver/models/node.py (+4/-0)
src/maasserver/models/tests/test_node.py (+12/-0)
src/maasserver/websockets/handlers/controller.py (+4/-5)
src/maasserver/websockets/handlers/device.py (+1/-2)
src/maasserver/websockets/handlers/machine.py (+1/-2)
Changed in maas: | |
milestone: | none → 2.0.0 |
importance: | Undecided → Medium |
status: | New → Triaged |
summary: |
- [2.0 beta 3] tag only supports 'nodes' and don't specifically support + [2.0 b3] tag only supports 'nodes' and don't specifically support 'machines' or 'controller's |
summary: |
- [2.0 b3] tag only supports 'nodes' and don't specifically support - 'machines' or 'controller's + [2.0 b3] tag only supports 'nodes' and and not 'machines' or + 'controller's |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |