From cf94edcbbdde75de3ce627d7e092936bc014d5f6 Mon Sep 17 00:00:00 2001 From: Matt Riedemann <mriedem@us.ibm.com> Date: Wed, 28 Oct 2015 09:50:01 -0700 Subject: [PATCH] Disable shelve/snapshot/cinder when running Tempest with libvirt+lxc The libvirt+lxc backend in nova does not support shelve, image snapshot or any volume-related actions (so pretty much anything to do with cinder), so we need to configure tempest to not run tests that hit those operations/service when using libvirt/lxc. This is part of an overall effort to get a CI job running for nova with the libvirt+lxc configuration per: Ic07c39e219121ba6b8b20de2b83a193bb735133d Change-Id: I4decfcc5a5dfbabdecb3eb9fc93f1d1d6c2af805 --- lib/tempest | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/tempest b/lib/tempest index 10dd652750..565e965836 100644 --- a/lib/tempest +++ b/lib/tempest @@ -531,6 +531,8 @@ function configure_tempest { if [ "$VIRT_DRIVER" = "libvirt" ] && [ "$LIBVIRT_TYPE" = "lxc" ]; then iniset $TEMPEST_CONFIG compute-feature-enabled rescue False iniset $TEMPEST_CONFIG compute-feature-enabled resize False + iniset $TEMPEST_CONFIG compute-feature-enabled shelve False + iniset $TEMPEST_CONFIG compute-feature-enabled snapshot False iniset $TEMPEST_CONFIG compute-feature-enabled suspend False fi @@ -548,6 +550,12 @@ function configure_tempest { fi done + if [ "$VIRT_DRIVER" = "libvirt" ] && [ "$LIBVIRT_TYPE" = "lxc" ]; then + # libvirt-lxc does not support boot from volume or attaching volumes + # so basically anything with cinder is out of the question. + iniset $TEMPEST_CONFIG service_available cinder "False" + fi + if is_ssl_enabled_service "key" || is_service_enabled tls-proxy; then # Use the ``BOTO_CONFIG`` environment variable to point to this file iniset -sudo $BOTO_CONF Boto ca_certificates_file $SSL_BUNDLE_FILE