~james-page/charms/precise/nova-cloud-controller/ha-support

« back to all changes in this revision

Viewing changes to hooks/lib/nova/folsom

  • Committer: James Page
  • Date: 2013-01-18 12:22:44 UTC
  • mfrom: (51.2.1 nova-cloud-controller)
  • Revision ID: james.page@canonical.com-20130118122244-auu33jf4991mmmgm
Merged updates from adam_g for live migration and grizzly support.

Updated quantum integration to configure pool for floating IP addresses
for use with nova floating-* and pass quantum host and port to
quantum-network-service for use in nova-api-metadata proxy services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
  local quantum_conf=${QUANTUM_CONF:-/etc/quantum/quantum.conf}
16
16
  local quantum_api_conf=${QUANTUM_API_CONF:-/etc/quantum/api-paste.ini}
17
17
  local quantum_plugin_conf=${QUANTUM_PLUGIN_CONF:-/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini}
 
18
  local libvirtd_conf=${LIBVIRTD_CONF:-/etc/libvirt/libvirtd.conf}
18
19
 
19
20
  [[ -z $key ]] && juju-log "$CHARM: set_or_update: value $value missing key" && exit 1
20
21
  [[ -z $value ]] && juju-log "$CHARM: set_or_update: key $key missing value" && exit 1
27
28
                  pattern="$key="
28
29
                  out=$pattern
29
30
                  ;;
30
 
    "$api_conf") match="^$key = "
31
 
                 pattern="$match"
32
 
                 out="$key = "
33
 
                 ;;
34
 
    "$quantum_conf"|"$quantum_api_conf"|"$quantum_plugin_conf")
 
31
    "$api_conf"|"$quantum_conf"|"$quantum_api_conf"|"$quantum_plugin_conf"| \
 
32
    "$libvirtd_conf")
35
33
                 match="^$key = "
36
34
                 pattern="$match"
37
35
                 out="$key = "