diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2017-09-14 13:11:12 -0600 |
---|---|---|
committer | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2017-09-15 04:23:37 +0000 |
commit | d36ba74332cd5e7aeac0b061a5903bcc63a18a20 (patch) | |
tree | 669985e9649e96b24ffdff612f9152fbf6a09307 | |
parent | 0c63da903cc5eefbdc7b796fa91b5887090f1f70 (diff) |
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 <fatih.degirmenci@ericsson.com>
-rwxr-xr-x | xci/xci-deploy.sh | 6 |
1 files 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 |