Skip to content

Commit

Permalink
Added sleep for LXD to settle
Browse files Browse the repository at this point in the history
Signed-off-by: utkarsh bhatt <[email protected]>
  • Loading branch information
UtkarshBhatthere committed Nov 18, 2024
1 parent e41ce00 commit 85d5bed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ jobs:

- name: clean iptables legacy
run: |
# Sleep for some time for LXD to settle.
sleep 2m
for ipt in iptables iptables-legacy ip6tables ip6tables-legacy; do sudo $ipt --flush; sudo $ipt --flush -t nat; sudo $ipt --delete-chain; sudo $ipt --delete-chain -t nat; sudo $ipt -P FORWARD ACCEPT; sudo $ipt -P INPUT ACCEPT; sudo $ipt -P OUTPUT ACCEPT; done
sudo systemctl reload snap.lxd.daemon
sleep 5
Expand All @@ -107,6 +109,8 @@ jobs:
lxc storage volume create default osd_one --type block
lxc storage volume create default osd_two --type block
lxc storage volume create default osd_three --type block
# Sleep for LXD VM to come up before attaching the disks
sleep 2m
lxc storage volume attach default osd_one cephadm
lxc storage volume attach default osd_two cephadm
lxc storage volume attach default osd_three cephadm
Expand Down

0 comments on commit 85d5bed

Please sign in to comment.