~openstack-ubuntu-testing/charms/precise/nova-cloud-controller/trunk

« back to all changes in this revision

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

  • Committer: Adam Gandelman
  • Date: 2013-03-21 22:20:28 UTC
  • mfrom: (22.6.21 nova-cloud-controller)
  • Revision ID: adamg@canonical.com-20130321222028-lpuefuno3vzp0nl9
Merge current ha-support work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
configure_volume_service() {
34
34
  local svc="$1"
35
35
  local cur_vers="$(get_os_codename_package "nova-common")"
 
36
 
 
37
  # ensure all releases other than E + F default to cinder.
 
38
  [[ "$cur_vers" != "essex" ]] && [[ "$cur_vers" != "folsom" ]] &&
 
39
    svc="cinder"
 
40
 
36
41
  case "$svc" in
37
42
    "cinder")
38
43
      set_or_update "volume_api_class" "nova.volume.cinder.API" ;;