~gandelman-a/charms/precise/nova-cloud-controller/do_upgrade

« back to all changes in this revision

Viewing changes to hooks/lib/nova/nova-common

  • Committer: Adam Gandelman
  • Date: 2012-10-12 19:37:13 UTC
  • Revision ID: adamg@canonical.com-20121012193713-m14fpx0pvmel0429
Remove redundant relation interfaces.

Removes the cloud-controller and network-controller relations.  All of the
functionality contained in these hooks can be easily condensed into the
cloud-compute/nova-volume-services interfaces.  This simplifies deployment,
avoids redundant and ambigious relations and makes things generally cleaner.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
function trigger_remote_service_restarts() {
58
58
  # Trigger a service restart on all other nova nodes that have a relation
59
59
  # via the cloud-controller interface.
60
 
  local r_ids=$(relation-ids cloud-controller)
61
 
  for r_id in $r_ids ; do
62
 
    juju-log "$CHARM: Triggering a service restart on relation $r_id."
63
 
    relation-set -r $r_id restart-trigger=$(uuid)
 
60
 
 
61
  # possible relations to other nova services.
 
62
  local relations="cloud-compute nova-volume-service"
 
63
 
 
64
  for rel in $relations; do
 
65
    local r_ids=$(relation-ids $rel)
 
66
    for r_id in $r_ids ; do
 
67
      juju-log "$CHARM: Triggering a service restart on relation $r_id."
 
68
      relation-set -r $r_id restart-trigger=$(uuid)
 
69
    done
64
70
  done
65
71
}
66
72