Browse code

Disable resize tests in Tempest if using cells with custom flavors

By default, devstack creates it's own test flavors for Tempest runs.

These are not in the cells API database since they are non-default
for nova so any resize tests in Tempest with cells and these custom
flavors fail.

Configure Tempest to not run resize tests if using cells and custom
flavors.

This allows us to also clean up a bunch of the resize skips found
in nova/devstack/tempest-dsvm-cells-rc.

Change-Id: I20f46024e45e32c60275703a193a56ae8cfe7eca
Closes-Bug: #1513925
(cherry picked from commit 6cd616a9edf6561ebc802f3083eb24f2713d4e96)

Matt Riedemann authored on 2015/11/07 03:26:14
Showing 1 changed files
... ...
@@ -403,6 +403,15 @@ function configure_tempest {
403 403
         iniset $TEMPEST_CONFIG compute-feature-enabled shelve False
404 404
         # Cells doesn't support hot-plugging virtual interfaces.
405 405
         iniset $TEMPEST_CONFIG compute-feature-enabled interface_attach False
406
+
407
+        if  [[ -z "$DEFAULT_INSTANCE_TYPE" ]]; then
408
+            # Cells supports resize but does not currently work with devstack
409
+            # because of the custom flavors created for Tempest runs which are
410
+            # not in the cells database.
411
+            # TODO(mriedem): work on adding a nova-manage command to sync
412
+            # flavors into the cells database.
413
+            iniset $TEMPEST_CONFIG compute-feature-enabled resize False
414
+        fi
406 415
     fi
407 416
 
408 417
     # Network