replace the long options to the shorter ones
This commit is contained in:
parent
5b1bb2a1f1
commit
c8be8632e5
10
fix_cloud.sh
10
fix_cloud.sh
@ -136,7 +136,7 @@ if [[ -n "${percona_cluster}" ]] ; then
|
||||
if [[ -n ${bootstrap_unit} ]]
|
||||
then
|
||||
${juju_run_action} --wait "${bootstrap_unit}" bootstrap-pxc
|
||||
${juju_run} --application mysql "hooks/update-status"
|
||||
${juju_run} -a mysql "hooks/update-status"
|
||||
until [[ $(check_unit_status mysql "Unit waiting for cluster bootstrap") -eq 1 ]]
|
||||
do
|
||||
sleep 10
|
||||
@ -188,7 +188,7 @@ if [[ -n "${mysql_innodb_cluster}" ]] ; then
|
||||
|
||||
fi
|
||||
|
||||
#${juju_run} --application mysql-innodb-cluster "hooks/update-status"
|
||||
#${juju_run} -a mysql-innodb-cluster "hooks/update-status"
|
||||
|
||||
# Run update-status on all mysql-router units, to ensure that theyave connected to the mysql-innodb-cluster
|
||||
#jq -r ".applications | to_entries[] | select(.value[\"charm-name\"] == \"mysql-router\") | .key" "${juju_status}" \
|
||||
@ -206,13 +206,13 @@ wait
|
||||
|
||||
# cleanup all crm resources
|
||||
jq -r ".applications | to_entries[] | select(.value[\"charm-name\"] == \"hacluster\") | .key" "${juju_status}" \
|
||||
| xargs -I{} ${juju_run} --unit "{}"/leader -- 'sudo crm_resource -l | sed s/:.*//g | uniq | xargs -i sudo crm resource cleanup \"\{\}\"'
|
||||
| xargs -I{} ${juju_run} -u "{}"/leader -- 'sudo crm_resource -l | sed s/:.*//g | uniq | xargs -i sudo crm resource cleanup \"\{\}\"'
|
||||
|
||||
do_vault
|
||||
|
||||
# remove DNS entry for external network
|
||||
${juju_run} --all -- sudo sed -i -e s/192.168.1.13,//g -e s/192.168.1.9,//g /etc/netplan/99-juju.yaml
|
||||
${juju_run} --all -- "sudo netplan apply ; sudo systemctl restart systemd-resolved"
|
||||
${juju_run} -a -- sudo sed -i -e s/192.168.1.13,//g -e s/192.168.1.9,//g /etc/netplan/99-juju.yaml
|
||||
${juju_run} -a -- "sudo netplan apply ; sudo systemctl restart systemd-resolved"
|
||||
|
||||
ceph_osd_apps=$(jq -rc ".applications | to_entries[] | select(.value[\"charm-name\"] == \"ceph-osd\") | .key" "${juju_status}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user