controller upgrade fails to progress

Bug #1876652 reported by Tim Penhey
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Tim Penhey

Bug Description

An HA controller upgrade was requested. All three controllers downloaded the new agent binaries and restarted. All three controllers checked in to start the upgrade.

Machine 2 hit an error during the upgrade and failed. This left the upgrade in a broken state.

Problem was disk space, and after cleanup, agent was restarted.

Restarting the machine agent didn't fix the problem as the database upgrade worker failed to start.

2020-05-04 02:11:19 ERROR juju.worker.upgradedatabase worker.go:284 timed out waiting for primary database upgrade

Looking at the code, worker/upgradedatabase/worker.go, it seems that the worker is expecting a watcher change, and it didn't check the initial state of the upgrade info. Since the primary had already completed its upgrade, there was no watcher fired. Since the worker didn't get an update, it failed to progress, and aborted.

The fix should be to start the watcher, then look at the info. If the info is already in the right state, it should progress as if the change was signalled.

Tim Penhey (thumper)
tags: added: upgrade-controller
removed: upgrade-con
Tim Penhey (thumper)
Changed in juju:
assignee: nobody → Tim Penhey (thumper)
status: Triaged → In Progress
Revision history for this message
Tim Penhey (thumper) wrote :
tags: added: canonical-is
Tim Penhey (thumper)
Changed in juju:
status: In Progress → Fix Committed
Harry Pidcock (hpidcock)
Changed in juju:
status: Fix Committed → Fix Released
Revision history for this message
Drew Freiberger (afreiberger) wrote :

This fix needs to be backported to 2.7.8 for those systems still running 2.6 and running upgrade-model to 2.7, or a workaround is needed to be documented in this bug.

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

We currently have no plans to release another 2.7 minor version, modulo major security patches.

We don't recommend upgrading to 2.7, however. 2.6 can be upgraded directly to 2.8, with no need to pass through intermediate versions.

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.