-
Notifications
You must be signed in to change notification settings - Fork 372
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
adding new option for network check in persist_firewall test #3257
Conversation
if [[ $? -eq 0 ]]; then | ||
echo "Network is accessible" | ||
return 0 | ||
else: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this else:
may be a syntax error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
|
||
echo "$(date --utc +%FT%T.%3NZ): Network still not accessible" | ||
echo "Unable to connect to network, giving up" | ||
retun 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
syntax error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Description
We use ping to 8.8.8.8 to verify network connectivity before we verify firewall rules was added at boot before network is ready.
Seems ping check not reliable way to verify network is ready. It keeps failing even though network seem ok in the system.
Now I added different option which calls ipconfig.io service. We assume network is ready if this call succeeds. Adding as temporary option, if it's fails, we check ping 8.8.8.8 also fails or not. Later, if this option looks stable, we remove other options.
This pr also adding fix for iptables command not found issue
Issue #
PR information
Quality of Code and Contribution Guidelines