Browse code

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

Matt Riedemann authored on 2015/10/29 01:50:01
Showing 1 changed files
... ...
@@ -531,6 +531,8 @@ function configure_tempest {
531 531
     if [ "$VIRT_DRIVER" = "libvirt" ] && [ "$LIBVIRT_TYPE" = "lxc" ]; then
532 532
         iniset $TEMPEST_CONFIG compute-feature-enabled rescue False
533 533
         iniset $TEMPEST_CONFIG compute-feature-enabled resize False
534
+        iniset $TEMPEST_CONFIG compute-feature-enabled shelve False
535
+        iniset $TEMPEST_CONFIG compute-feature-enabled snapshot False
534 536
         iniset $TEMPEST_CONFIG compute-feature-enabled suspend False
535 537
     fi
536 538
 
... ...
@@ -548,6 +550,12 @@ function configure_tempest {
548 548
         fi
549 549
     done
550 550
 
551
+    if [ "$VIRT_DRIVER" = "libvirt" ] && [ "$LIBVIRT_TYPE" = "lxc" ]; then
552
+        # libvirt-lxc does not support boot from volume or attaching volumes
553
+        # so basically anything with cinder is out of the question.
554
+        iniset $TEMPEST_CONFIG service_available cinder "False"
555
+    fi
556
+
551 557
     if is_ssl_enabled_service "key" || is_service_enabled tls-proxy; then
552 558
         # Use the ``BOTO_CONFIG`` environment variable to point to this file
553 559
         iniset -sudo $BOTO_CONF Boto ca_certificates_file $SSL_BUNDLE_FILE