manual provider hangs indefinitely on interrupted install
Bug #1916232 reported by
Peter Sabaini
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Confirmed
|
Low
|
Unassigned |
Bug Description
I've had `juju add-machine ssh:x.x.x.x` hang indefinitely. This turned out to be due to an interrupted apt pkg install
Steps to reproduce:
On machine x.x.x.x bring the apt package system into an inconsistent state by interrupting a configuration step so that it needs to be repaired with `dpkg --configure -a`
Then proceed to add it to your model: `juju add-machine ssh:x.x.x.x`
Observed behaviour:
add-machine will hang
on x.x.x.x you can see a bash pipeline looping with "sleep 10" in between
Expected behaviour:
In case of a fault `juju add-machine` should return an error (possibly after a timeout) with some details on what went wrong
Cheers,
peter.
To post a comment you must log in.
I agree that we should handle this with a timeout and an informative error message, rather than hanging forever.
I believe this ticket will be addressed when add-machine for manual machines has a sensible timeout, and better error messaging.
Added "bitesize" tag, as this is an excellent candidate for a new developer task or community contribution :-)