upgrade-charm --force-units fails if already latest

Bug #1684413 reported by Stuart Bishop
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Medium
Unassigned

Bug Description

If you mistakenly run 'juju upgrade-charm' against an application with a failing hook, then the upgrade will not run. However, the latest version of the charm is uploaded to the controller and deployed on other units. Running 'juju upgrade-charm --force-units' to result the problem then fails, because the application already has the latest version of the charm, so there is no way to push out the latest version to the failing unit to stop it failing.

Work around is to fake an update (annoying if you are deploying from the charm store), or to ssh into the unit and manually fix things.

juju upgrade-charm --force-units should push out the latest version of the charm to all units, even if the latest version already exists on the controller and there is no need to refresh it there.

Revision history for this message
Stuart Bishop (stub) wrote :

It is also possible to 'juju resolved --no-retry' the unit until the original upgrade-charm hook has had a chance to run, but this would still be better resolved by 'juju upgrade-charm --force-units' doing what it is told and forcing an upgrade onto the units.

tags: added: canonical-is
Revision history for this message
Tim Penhey (thumper) wrote :

I do think we need to look at why the unit is currently failing, and the implications that might happen should we skip a number of other pending hook executions in order to force the charm update.

Perhaps the force unit update would just push the upgrade to the front of the pending queue? Not entirely sure.

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

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
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.