juju add-machine lxd:N --constraints INVALID does not show provisioning error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
John A Meinel |
Bug Description
If we fail to provision an LXD container (for any reason), that message should show up as part of the LXD container status. Right now we just show 'pending'
In the log I see:
2016-12-15 11:28:20 ERROR juju.provisioner provisioner_
But in 'juju status --format=yaml' we just see:
containers:
0/lxd/1:
current: down
message: agent is not communicating with the server
since: 15 Dec 2016 15:28:20+04:00
current: pending
since: 15 Dec 2016 15:28:17+04:00
series: xenial
1) 'agent is not communicating with the server' is bogus, the machine doesn't exist yet, and should be reported as such
2) 'pending' but really it is in a failed state, we need to report that back up the stack.
Changed in juju: | |
milestone: | none → 2.1.0 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
I did eventually see:
juju-status:
instance- id: pending
machine- status:
0/lxd/1:
current: error
message: 'cannot match subnets to zones: space "space-1" not found'
since: 15 Dec 2016 15:28:20+04:00
life: dead
current: pending
since: 15 Dec 2016 15:28:17+04:00
series: xenial
So maybe we do report it, but only after trying a few times?
bug #1650253 is that we should be validating the constraints much earlier than after actually trying to start the instance.