config-changed should be invoked after charm upgrade

Bug #919745 reported by Kapil Thangavelu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Triaged
Low
Unassigned

Bug Description

after a charm is upgraded its configuration values/defaults may have changed, and the config-changed hook (idempotent) should be called after the upgrade hook so a service unit has a chance to respond to any configuration changes.

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

I've recently been writing this as my default upgrade-charm hook:

#!/bin/sh
set -e
home=`dirname $0`
$home/stop
$home/install
$home/config-changed
$home/start

Seems like that would be the logical workflow for all upgrades to take... I've never really understood having a separate upgrade-charm hook.

Changed in juju:
importance: Undecided → Medium
Changed in juju:
status: New → Triaged
Curtis Hovey (sinzui)
Changed in juju:
importance: Medium → Low
summary: - config-changed should be invoked after upgrade
+ config-changed should be invoked after charm upgrade
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.