spaces constraints should fail if you use an unknown space name
Bug #1650253 reported by
John A Meinel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Unassigned |
Bug Description
If I do:
juju add-machine lxd:0 --constraints space=BLAH
And "BLAH" isn't a known space, the add-machine request goes through, but the machine never gets provisioned. And thanks to bug #1650252, the container just shows up as 'pending' forever.
We should reject spaces that we don't know when we parse the constraint. That way you get rejected immediately instead of having a machine that we will never be able to provision.
I assume this is also true without LXD (juju add-machine --constraints spaces=BLAH), but I didn't test that.
To post a comment you must log in.
It appears that "--bind blah" does validate that 'blah' is a known space, but "--constraints spaces=blah" is not validated.