From 8da819bcf250844e3551f140bf14412d29bee546 Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Sun, 28 Oct 2012 21:23:22 -0700 Subject: [PATCH] fix minor compute issues This commit resolves a few minor issues uncovered when fixing the spec tests. --- manifests/compute.pp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/manifests/compute.pp b/manifests/compute.pp index 082db9f..479e457 100644 --- a/manifests/compute.pp +++ b/manifests/compute.pp @@ -103,7 +103,12 @@ class openstack::compute ( # if the compute node should be configured as a multi-host # compute installation - if $quantum == false { + if ! $quantum { + + if ! $fixed_range { + fail("Must specify the fixed range when using nova-networks") + } + if $multi_host { include keystone::python nova_config { @@ -157,7 +162,10 @@ class openstack::compute ( volume_group => $nova_volume, } - nova_config { 'volume_api_class': value => 'nova.volume.cinder.API' } + # set in nova::api + if ! defined(Nova_config['volume_api_class']) { + nova_config { 'volume_api_class': value => 'nova.volume.cinder.API' } + } } else { # Set up nova-volume }