summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Vyvial <cp16net@gmail.com>2016-01-21 17:00:13 -0600
committerCraig Vyvial <cp16net@gmail.com>2016-02-01 19:49:39 +0000
commit00697701f8120b7db91a2abce1930ece861b724c (patch)
tree820da01b12cda68aac08470af078afe620495b01
parentb5e7c20bd893b2abf816ea432437607de00fe5a0 (diff)
downloadtrove-integration-00697701f8120b7db91a2abce1930ece861b724c.tar.gz
Allow redstack to force kvm in devstack
Force kvm is useful if you have an environment where you can use kvm as the virtualization for nested instances. Change-Id: I89ac30243e3c47cbd36b0a0890242a2a8031bea4
-rw-r--r--scripts/local.conf.d/use_kvm.rc4
-rwxr-xr-xscripts/redstack2
-rw-r--r--scripts/redstack.rc1
3 files changed, 6 insertions, 1 deletions
diff --git a/scripts/local.conf.d/use_kvm.rc b/scripts/local.conf.d/use_kvm.rc
new file mode 100644
index 0000000..06bc2eb
--- /dev/null
+++ b/scripts/local.conf.d/use_kvm.rc
@@ -0,0 +1,4 @@
+[[local|localrc]]
+
+# force kvm as the libvirt type.
+LIBVIRT_TYPE=kvm
diff --git a/scripts/redstack b/scripts/redstack
index 6161d50..97a17b3 100755
--- a/scripts/redstack
+++ b/scripts/redstack
@@ -1097,7 +1097,7 @@ function cmd_dsvm_gate_tests() {
NETWORK_GATEWAY=${5:-'10.1.0.1'}
ESCAPED_PATH_TROVE=${6:-'\/opt\/stack\/new\/trove'}
- if [[ $BRANCH_OVERRIDE == "stable/liberty" || $BRANCH_OVERRIDE == "stable/liberty" ]]; then
+ if [[ $BRANCH_OVERRIDE == "stable/liberty" ]]; then
# Devstack in liberty doesn't copy the clouds.yaml file to /etc so we need to
# ensure we have access to the clouds.yaml file set up by devstack-gate
sudo mkdir -p ~/.config/openstack
diff --git a/scripts/redstack.rc b/scripts/redstack.rc
index 4d5c024..5ccce26 100644
--- a/scripts/redstack.rc
+++ b/scripts/redstack.rc
@@ -23,6 +23,7 @@ LIBS_FROM_GIT_ALL_OSLO=$(get_bool LIBS_FROM_GIT_ALL_OSLO false)
# Don't include certain .rc files in local.conf.d by default
USING_VAGRANT=$(get_bool USING_VAGRANT false)
+USE_KVM=$(get_bool USE_KVM false)
USE_UUID_TOKEN=$(get_bool USE_UUID_TOKEN false)
# Specify configuration for Ceilometer