From 9ea63dc300062e5e078a5f73ae72c2042846255f Mon Sep 17 00:00:00 2001 From: Roman Krček Date: Thu, 4 Jul 2024 13:44:27 +0200 Subject: Rewrite kolla-ansible CLI to python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Moving the CLI to python allows for easier maintenance and larger feature-set. This patch introduces a few breaking changes! The changes stem the nature of the cliff package. - the order of parameters must be kolla-ansible - mariadb_backup and mariadb_recovery now are mariadb-backup and mariadb-recovery Closes-bug: #1589020 Signed-off-by: Roman Krček Change-Id: I9749b320d4f5eeec601a055b597dfa7d8fb97ce2 --- tests/test-mariadb.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test-mariadb.sh') diff --git a/tests/test-mariadb.sh b/tests/test-mariadb.sh index a26b640c4..531d0f707 100755 --- a/tests/test-mariadb.sh +++ b/tests/test-mariadb.sh @@ -11,7 +11,7 @@ export PYTHONUNBUFFERED=1 function mariadb_stop { echo "Stopping the database cluster" - kolla-ansible -i ${RAW_INVENTORY} -vvv stop --yes-i-really-really-mean-it --tags mariadb --skip-tags common + kolla-ansible stop -i ${RAW_INVENTORY} -vvv --yes-i-really-really-mean-it --tags mariadb --skip-tags common if [[ $(sudo ${container_engine} ps -q | grep mariadb | wc -l) -ne 0 ]]; then echo "Failed to stop MariaDB cluster" return 1 @@ -21,7 +21,7 @@ function mariadb_stop { function mariadb_recovery { # Recover the database cluster. echo "Recovering the database cluster" - kolla-ansible -i ${RAW_INVENTORY} -vvv mariadb_recovery --tags mariadb --skip-tags common + kolla-ansible mariadb-recovery -i ${RAW_INVENTORY} -vvv --tags mariadb --skip-tags common } function test_recovery { @@ -32,7 +32,7 @@ function test_recovery { function test_backup { echo "Performing full backup" - kolla-ansible -i ${RAW_INVENTORY} -vvv mariadb_backup --full + kolla-ansible mariadb-backup -i ${RAW_INVENTORY} -vvv --full # Sleep for 30 seconds, not because it's absolutely necessary. # The full backup is already completed at this point, as the # ansible job is waiting for the completion of the backup script @@ -42,7 +42,7 @@ function test_backup { # data gets written within those 30 seconds. echo "Sleeping for 30 seconds" sleep 30 - kolla-ansible -i ${RAW_INVENTORY} -vvv mariadb_backup --incremental + kolla-ansible mariadb-backup -i ${RAW_INVENTORY} -vvv --incremental } function test_backup_with_retries { -- cgit v1.2.3