need a way to "refresh" relations after upgrade
Bug #873116 reported by
Clint Byrum
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
High
|
Unassigned |
Bug Description
Short of removing and re-creating relationships, on upgrade-charm, users will need a way to refresh the relationships after they deploy a new charm. There may be new pieces of data exchanged between nodes after an upgrade, and currently there's no good way to cause the hooks to execute again in the right context.
Changed in juju: | |
importance: | Undecided → High |
Changed in juju: | |
status: | New → Triaged |
milestone: | none → florence |
To post a comment you must log in.
As of r514, use some variant of the following in the upgrade-charm hook:
for relation_id in $(relation-ids [optional relation name]); do
relation-set -r $relation_id ready=true
done
where "ready" is an arbitrarily named setting to cause the relation-changed hooks to rerun.