maas-cli listing nodes filtered by hostname doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Chris Glass |
Bug Description
When trying to scripting against maas-cli it's often necessary to acquire the system-id via a listing filtered by some other attribute. This works well with, for example mac_address:
tealeg@
node-
.. but if I try to do the same thing with a hostname instead of MAC address I don't get the result I'd expect:
tealeg@
node-
node-
node-
node-
node-
node-
node-
node-
node-
.. that is a listing of all nodes on my maas. I'd rather see a syntax error if filtering on hostname is not allowed, but better still it should work.
Related branches
- Gavin Panella (community): Approve
-
Diff: 51 lines (+21/-1)2 files modifiedsrc/maasserver/api.py (+6/-0)
src/maasserver/tests/test_api_nodes.py (+15/-1)
summary: |
- maas-cli listing nodes filtered by hostname doesn't work + Unused API parameters are silently dropped |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: api papercut |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | none → 14.04 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Hi all,
I have link a related branch that adds the capability of filtering by hostname to the list API call, which is really what's biting us at the moment.
Maybe we could defer the more general case of raising errors instead of returning unfiltered results to another bug?