need a way to "refresh" relations after upgrade

Reported by Clint Byrum on 2011-10-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
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
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  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints