Skip to content

Commit

Permalink
Improve logging for spaces_ec2
Browse files Browse the repository at this point in the history
The primary purpose of this is to debug some errors we're seeing.
However, this test could do with some logging here anyway
  • Loading branch information
jack-w-shaw committed Apr 13, 2023
1 parent 9e65818 commit 2cd5ace
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/suites/spaces_ec2/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ add_multi_nic_machine() {
# shellcheck disable=SC2086,SC2016
juju ssh ${juju_machine_id} 'sudo sh -c "echo \" gateway4: `ip route | grep default | cut -d\" \" -f3`\n ens6:\n dhcp4: true\n version: 2\n\" >> /etc/netplan/50-cloud-init.yaml"'
# shellcheck disable=SC2086,SC2016
echo "[+] Reconfiguring netplan:"
juju ssh ${juju_machine_id} 'sudo cat /etc/netplan/50-cloud-init.yaml'
# shellcheck disable=SC2086,SC2016
echo "[+] Applying"
juju ssh ${juju_machine_id} 'sudo netplan apply'
# shellcheck disable=SC2086,SC2016
juju ssh ${juju_machine_id} 'sudo systemctl restart jujud-machine-*'
Expand Down

0 comments on commit 2cd5ace

Please sign in to comment.