need a way to "refresh" relations after upgrade

Bug #873116 reported by Clint Byrum
6
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
Revision history for this message
Jim Baker (jimbaker) wrote :

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.

Changed in juju:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.