From d36ba74332cd5e7aeac0b061a5903bcc63a18a20 Mon Sep 17 00:00:00 2001 From: Fatih Degirmenci Date: Thu, 14 Sep 2017 13:11:12 -0600 Subject: Disable strict host key checking for galera cluster check The command to check the galera cluster fails due to having strict host key checking enabled. This change disables strict host key checking for galera_container to ensure we can verify if the database cluster is operational. OSA does this for aio on their gate and put host key checking configuration to group_vars which we might need to do as well. Change-Id: Ifc59581d979c71f1db1b87126659470dc85cc2db Signed-off-by: Fatih Degirmenci --- xci/xci-deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xci/xci-deploy.sh b/xci/xci-deploy.sh index ced6fff0..ad4317f9 100755 --- a/xci/xci-deploy.sh +++ b/xci/xci-deploy.sh @@ -206,13 +206,13 @@ fi #------------------------------------------------------------------------------- echo "Info: Verifying database cluster" echo "-----------------------------------------------------------------------" -ssh root@$OPNFV_HOST_IP "ansible -vvv -i $OPENSTACK_OSA_PATH/playbooks/inventory/ \ - galera_container -m shell \ +ssh root@$OPNFV_HOST_IP "ansible --ssh-extra-args='-o StrictHostKeyChecking=no' \ + -i $OPENSTACK_OSA_PATH/playbooks/inventory/ galera_container -m shell \ -a \"mysql -h localhost -e \\\"show status like '%wsrep_cluster_%';\\\"\" | tee galera.log" scp root@$OPNFV_HOST_IP:~/galera.log $LOG_PATH/galera.log echo "-----------------------------------------------------------------------" # check the log to see if we have any error -if grep -q 'FAILED' $LOG_PATH/galera.log; then +if grep -q 'FAILED\|UNREACHABLE' $LOG_PATH/galera.log; then echo "Error: Database cluster verification failed!" exit 1 fi -- cgit