Allocate using subnets params gives unhelpful errors

Bug #1637203 reported by Martin Packman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Wishlist
Unassigned

Bug Description

Calling `machines allocate` with 'subnets' or 'not_subnets' params, or for MAAS 1.9 calling 'nodes acquire' with 'networks' or 'not_networks' params, unhelpfully only ever returns the same error:

$ maas env21 machines allocate subnets=bogus verbose=true dry_run=true
{"subnets": ["No matching subnets found."]}

This means slight mistakes in the under-documented mini-language give no feedback as to what is actually wrong.

Changed in maas:
importance: Undecided → Low
status: New → Triaged
milestone: none → 2.1.1
Revision history for this message
Andres Rodriguez (andreserl) wrote :

I think this is a more widespread problem:

roaksoax@unleashed:~/Desktop/project/maas$ maas admin vlans create names=1
Not Found

'names' doesn't exist

Revision history for this message
Mike Pontillo (mpontillo) wrote :

Yeah. The "mini-language" (which we call 'specifiers') is under-documented (and not as robust as I would like, and doesn't cover all objects in MAAS) because it was developed rapidly in order to meet the requirements for the 'interfaces' constraint.

I do think we should make it more robust and more available to all applicable APIs. But this is more a wishlist for a future release than a bug fix, in my mind.

Changed in maas:
importance: Low → Wishlist
milestone: 2.1.1 → next
Revision history for this message
Adam Collard (adam-collard) wrote :

This bug has not seen any activity in the last 6 months, so it is being automatically closed.

If you are still experiencing this issue, please feel free to re-open.

MAAS Team

Changed in maas:
status: Triaged → Invalid
Changed in maas:
milestone: next → none
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.