upgrade-charm --force-units does not upgrade k8s charm

Bug #1830259 reported by Stuart Bishop
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Ian Booth

Bug Description

A k8s unit was in an error state due to a charm bug. The charm was fixed, and 'juju upgrade-charm --force-units directory' run. Juju reported success: "Added charm "cs:~stub/generik8s-10" to the model".

However, "juju resolved directory/0" did not appear to trigger a new upgrade-charm hook. Further 'juju upgrade-charm' commands fail, as Juju claims the latest version is already deployed. And, interestingly, further 'juju resolved' commands fail, with Juju claiming that the unit is not in an error state. However, 'juju status' disagrees, clearly showing the error state.

ubuntu@blimp:~$ juju upgrade-charm --force-units directory
ERROR already running latest charm "cs:~stub/generik8s-10"

ubuntu@blimp:~$ juju resolved directory/0
ERROR cannot set resolved mode for unit "directory/0": already resolved

ubuntu@blimp:~$ juju status
Model Controller Cloud/Region Version SLA Timestamp
k8smodel localhost-localhost myk8s 2.6.2 unsupported 16:51:52Z

App Version Status Scale Charm Store Rev OS Address Notes
directory error 1 generik8s jujucharms 10 kubernetes hook failed: "upgrade-charm"

Unit Workload Agent Address Ports Message
directory/0 error idle hook failed: "upgrade-charm"

Offer Application Charm Rev Connected Endpoint Interface Role
directory-db directory generik8s 10 1/1 postgres pgsql requirer

Tags: k8s
Ian Booth (wallyworld)
tags: added: k8s
Revision history for this message
Stuart Bishop (stub) wrote :

The charm had yet to spin up a pod, as it was still attempting (and failing) to setup relations needed for the pod config.

Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.6.3
assignee: nobody → Ian Booth (wallyworld)
importance: Undecided → High
status: New → In Progress
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
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.