Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add retry for 'add host' #428

Merged
merged 1 commit into from
Jan 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions client/src/test/resources/docker-compose-casigned.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,14 @@ services:
- sh
- -c
- |
sleep 3 &&
nebula-console -addr graphd-casigned -port 9669 -u root -p nebula -enable_ssl=true -ssl_root_ca_path /share/resources/test.ca.pem -ssl_cert_path /share/resources/test.derive.crt -ssl_private_key_path /share/resources/test.derive.key --ssl_insecure_skip_verify=true -e 'ADD HOSTS "172.29.2.1":9779' &&
sleep 36000
for i in `seq 1 60`;do
var=`nebula-console -addr graphd0 -port 9669 -u root -p nebula -e 'ADD HOSTS "172.28.2.1":9779,"172.28.2.2":9779,"172.28.2.3":9779;'`;
if [[ $$? == 0 ]];then
break;
fi;
sleep 1;
echo "retry to add hosts.";
done && tail -f /dev/null;
volumes:
- ./ssl:/share/resources:Z
depends_on:
Expand Down
11 changes: 8 additions & 3 deletions client/src/test/resources/docker-compose-selfsigned.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,14 @@ services:
- sh
- -c
- |
sleep 3 &&
nebula-console -addr graphd-selfsigned -port 9669 -u root -p nebula -enable_ssl=true -ssl_root_ca_path /share/resources/test.ca.pem -ssl_cert_path /share/resources/test.derive.crt -ssl_private_key_path /share/resources/test.derive.key --ssl_insecure_skip_verify=true -e 'ADD HOSTS "172.30.2.1":9779' &&
sleep 36000
for i in `seq 1 60`;do
var=`nebula-console -addr graphd0 -port 9669 -u root -p nebula -e 'ADD HOSTS "172.28.2.1":9779,"172.28.2.2":9779,"172.28.2.3":9779;'`;
if [[ $$? == 0 ]];then
break;
fi;
sleep 1;
echo "retry to add hosts.";
done && tail -f /dev/null;
volumes:
- ./data/graph_self:/data/graph:Z
- ./logs/graph:/logs:Z
Expand Down
11 changes: 8 additions & 3 deletions client/src/test/resources/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,14 @@ services:
- sh
- -c
- |
sleep 3 &&
nebula-console -addr graphd0 -port 9669 -u root -p nebula -e 'ADD HOSTS "172.28.2.1":9779,"172.28.2.2":9779,"172.28.2.3":9779' &&
sleep 36000
for i in `seq 1 60`;do
var=`nebula-console -addr graphd0 -port 9669 -u root -p nebula -e 'ADD HOSTS "172.28.2.1":9779,"172.28.2.2":9779,"172.28.2.3":9779;'`;
if [[ $$? == 0 ]];then
break;
fi;
sleep 1;
echo "retry to add hosts.";
done && tail -f /dev/null;
depends_on:
- graphd0
networks:
Expand Down