[1.9] Multiple negative spaces constraints given and rejected by MAAS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Michael Foord | ||
2.0 |
Fix Released
|
High
|
Michael Foord | ||
MAAS |
Invalid
|
Undecided
|
Unassigned | ||
1.9 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Juju 2.0 translates a constraint that a machine must be in neither of two spaces into a not_networks parameter that MAAS 1.9 rejects.
With two spaces, each with one subnet (here gz-test -> 10.0.50.0/24 and gz-test-b -> 10.0.60.0/24) juju accepts a constraint that a machine should be in neither space, which is rejected by MAAS 1.9 on acquire:
$ juju bootstrap munna-vmaas --config test-mode=true --bootstrap-
19:29:36 INFO juju.cmd supercommand.go:63 running juju [2.0.1 gc go1.6.2]
...
19:29:37 INFO juju.cmd.
...
19:29:49 ERROR cmd supercommand.go:458 failed to bootstrap model: cannot start bootstrap instance: cannot run instances: cannot run instances: ServerError: 400 BAD REQUEST ({"not_networks": ["No matching subnets found."]})
From the maas.log for this machine:
Oct 26 19:30:11 deafening-thrill maas.api: [INFO] Request from user root to acquire a node with constraints <QueryDict: {u'agent_name': [u'01bce9c6-
See bug 1636919 for related constraint issue with MAAS 2.0+ accepting but ignoring parameters.
Related branches
- Andres Rodriguez (community): Approve
-
Diff: 34 lines (+24/-0)1 file modifiedsrc/maasserver/tests/test_node_constraint_filter_forms.py (+24/-0)
summary: |
[1.9] Multiple negative spaces constraints given and rejected by MAAS - 1.9 |
no longer affects: | maas/2.0 |
Changed in juju: | |
status: | New → Invalid |
Changed in maas: | |
status: | Invalid → Fix Committed |
Changed in juju: | |
assignee: | nobody → Michael Foord (mfoord) |
Changed in juju: | |
status: | Triaged → In Progress |
no longer affects: | maas/2.0 |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
milestone: | 2.1.0 → 2.1-beta1 |
status: | Fix Committed → Fix Released |
Martin,
Can you confirm the exact version of MAAS please?