[2.0,2.1] Allocate using subnets or not_subnets with space fails
Bug #1637192 reported by
Martin Packman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Mike Pontillo | ||
1.9 |
Won't Fix
|
High
|
Mike Pontillo | ||
2.0 |
Won't Fix
|
High
|
Mike Pontillo |
Bug Description
Attempting to use the undocumented subnets or not_subnets params to `machines allocate` with spaces as suggested in bug 1636919 results in a MAAS internal server error due to unorderable types.
$ maas env20 machines allocate subnets=space:0 verbose=true dry_run=true --debug
500 INTERNAL SERVER ERROR
Transfer-
X-Frame-
unorderable types: Subnet() < Subnet()
Related branches
lp:~mpontillo/maas/allocate-with-subnet-constraint--bug-1637192
- Andres Rodriguez (community): Approve
- Martin Packman (community): Approve
-
Diff: 71 lines (+28/-7)2 files modifiedsrc/maasserver/api/tests/test_machines.py (+15/-0)
src/maasserver/node_constraint_filter_forms.py (+13/-7)
summary: |
- Allocate using subnets or not_subnets with space fails + [2.0,2.1] Allocate using subnets or not_subnets with space fails |
Changed in maas: | |
assignee: | nobody → Mike Pontillo (mpontillo) |
importance: | Critical → High |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Can you please attach logs ? /var/log/maas/*.log