From 11de5021f9c061539b13f90f52da236611e6cc0b Mon Sep 17 00:00:00 2001 From: Naresh Maharaj <42941747+nareshmaharaj-consultant@users.noreply.github.com> Date: Thu, 11 Nov 2021 18:13:16 +0000 Subject: [PATCH] 'enable' required for asadm privileges --- recipes/quiesce-wait-for-mig-stop.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/quiesce-wait-for-mig-stop.yml b/recipes/quiesce-wait-for-mig-stop.yml index 3c552fd..f3763d3 100644 --- a/recipes/quiesce-wait-for-mig-stop.yml +++ b/recipes/quiesce-wait-for-mig-stop.yml @@ -22,7 +22,7 @@ shell: | set -e asinfo -v 'quiesce:' - asadm -e "asinfo -v 'recluster:'" + asadm -e 'enable; asinfo -v "recluster:"' # Wait for migrations to complete while [[ $(asinfo -v 'cluster-stable:') =~ ^ERROR ]] @@ -87,7 +87,7 @@ exit 1 fi - asadm {% if tls_enabled %}--tls-enable --tls-name={{ cluster_name }} --tls-cafile=/etc/aerospike/certs/ca.crt -p {{ tls_service_port }} {% endif %} -e 'asinfo -v "recluster:"' + asadm {% if tls_enabled %}--tls-enable --tls-name={{ cluster_name }} --tls-cafile=/etc/aerospike/certs/ca.crt -p {{ tls_service_port }} {% endif %} -e 'enable; asinfo -v "recluster:"' $ASINFO -v 'roster:' echo "Roster set and reclustered" when: sc