From aff1ce1ef1803929cace0480d4000b6cab666aad Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Fri, 22 Jul 2022 09:42:40 +0100 Subject: [PATCH] Add some DNS fixes --- fix_cloud.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fix_cloud.sh b/fix_cloud.sh index 1b349fd..7c05453 100755 --- a/fix_cloud.sh +++ b/fix_cloud.sh @@ -195,6 +195,11 @@ jq -r ".applications | to_entries[] | select(.value[\"charm-name\"] == \"haclust 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 + +# Ensure DNS works on all the nodes juju run --all -- sudo systemctl restart systemd-resolved ceph_osd_apps=$(jq -rc ".applications | to_entries[] | select(.value[\"charm-name\"] == \"ceph-osd\") | .key" "${juju_status}")