manual provider hangs indefinitely on interrupted install

Bug #1916232 reported by Peter Sabaini
6
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.

Revision history for this message
Pen Gale (pengale) wrote :

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 :-)

Changed in juju:
status: New → Confirmed
importance: Undecided → Medium
tags: added: bitesize
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This Medium-priority bug has not been updated in 60 days, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.