Skip to content

Commit

Permalink
test: Copy tarball from cluster edit
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Hershberger <[email protected]>
  • Loading branch information
MggMuggins committed Jul 12, 2024
1 parent 9562a40 commit bb50d39
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions test/suites/clustering.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3172,25 +3172,9 @@ test_clustering_edit_configuration() {
sed -e "s/:8443/:9393/" -i "${config}"
LXD_DIR="${LXD_ONE_DIR}" lxd cluster edit < "${config}"

LXD_DIR="${LXD_TWO_DIR}" lxd cluster show > "${config}"
sed -e "s/:8443/:9393/" -i "${config}"
LXD_DIR="${LXD_TWO_DIR}" lxd cluster edit < "${config}"

LXD_DIR="${LXD_THREE_DIR}" lxd cluster show > "${config}"
sed -e "s/:8443/:9393/" -i "${config}"
LXD_DIR="${LXD_THREE_DIR}" lxd cluster edit < "${config}"

LXD_DIR="${LXD_FOUR_DIR}" lxd cluster show > "${config}"
sed -e "s/:8443/:9393/" -i "${config}"
LXD_DIR="${LXD_FOUR_DIR}" lxd cluster edit < "${config}"

LXD_DIR="${LXD_FIVE_DIR}" lxd cluster show > "${config}"
sed -e "s/:8443/:9393/" -i "${config}"
LXD_DIR="${LXD_FIVE_DIR}" lxd cluster edit < "${config}"

LXD_DIR="${LXD_SIX_DIR}" lxd cluster show > "${config}"
sed -e "s/:8443/:9393/" -i "${config}"
LXD_DIR="${LXD_SIX_DIR}" lxd cluster edit < "${config}"
for other_dir in "${LXD_TWO_DIR}" "${LXD_THREE_DIR}" "${LXD_FOUR_DIR}" "${LXD_FIVE_DIR}" "${LXD_SIX_DIR}"; do
cp "${LXD_ONE_DIR}/database/recovery_db.tar.gz" "${other_dir}/database/"
done

# Respawn the nodes
LXD_NETNS="${ns1}" respawn_lxd "${LXD_ONE_DIR}" false
Expand Down

0 comments on commit bb50d39

Please sign in to comment.