Hemanth Nakkina 8ca8d63e3a
[tempest-k8s] Add tempest config overrides
Add tempest config override for object storage.
Ceph reef supports SHA1 for hash tempurl related APIs
where as tempest uses SHA256 by default. Override
tempest config to use SHA1 for object-storage hash
calulation.

Change-Id: I618bc55bc91c4f7b24803918574cac7fcc4cd718
2024-08-17 06:43:21 +05:30

22 lines
667 B
Django/Jinja

#!/bin/bash
# Do not change this file, this file is managed by juju.
# set -e is important, to ensure the script bails out
# if there are issues, such as lock not acquired,
# or failure in one of the tempest steps.
set -ex
(flock -n 9 || (echo "lock could not be acquired"; exit 1)
# clean up before initialising everything
rm -rf "$TEMPEST_WORKSPACE_PATH"
rm -rf "${TEMPEST_HOME}/.tempest"
tempest init --name "$TEMPEST_WORKSPACE" "$TEMPEST_WORKSPACE_PATH"
discover-tempest-config --out "$TEMPEST_CONF" --create $TEMPEST_CONFIG_OVERRIDES
tempest account-generator -r "$TEMPEST_ACCOUNTS_COUNT" -c "$TEMPEST_CONF" "$TEMPEST_TEST_ACCOUNTS"
) 9>/var/lock/tempest