Skip to content

Commit 8c25a85

Browse files
committed
Add support volume backup_driver config option
The depends-on patch adds a new backup_driver option to tempest. The goal of this change is to be able to do a proper cleanup of containers when swift is used as a backup driver. Thich change makes sure that the new option is properly set to "swift" when Swift is used as the driver. Depends-On: https://review.opendev.org/c/openstack/tempest/+/896011/13 Change-Id: I76e7fd712ee352051f8aa2f2912a29abad9ad017
1 parent 68ca133 commit 8c25a85

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/tempest

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
# - ``DEFAULT_INSTANCE_USER``
3030
# - ``DEFAULT_INSTANCE_ALT_USER``
3131
# - ``CINDER_ENABLED_BACKENDS``
32+
# - ``CINDER_BACKUP_DRIVER``
3233
# - ``NOVA_ALLOW_DUPLICATE_NETWORKS``
3334
#
3435
# ``stack.sh`` calls the entry points in this order:
@@ -571,6 +572,9 @@ function configure_tempest {
571572
TEMPEST_VOLUME_REVERT_TO_SNAPSHOT=${TEMPEST_VOLUME_REVERT_TO_SNAPSHOT:-True}
572573
fi
573574
iniset $TEMPEST_CONFIG volume-feature-enabled volume_revert $(trueorfalse False TEMPEST_VOLUME_REVERT_TO_SNAPSHOT)
575+
if [[ "$CINDER_BACKUP_DRIVER" == *"swift"* ]]; then
576+
iniset $TEMPEST_CONFIG volume backup_driver swift
577+
fi
574578
local tempest_volume_min_microversion=${TEMPEST_VOLUME_MIN_MICROVERSION:-None}
575579
local tempest_volume_max_microversion=${TEMPEST_VOLUME_MAX_MICROVERSION:-"latest"}
576580
if [ "$tempest_volume_min_microversion" == "None" ]; then

0 commit comments

Comments
 (0)