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

adding new option for network check in persist_firewall test #3257

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

nagworld9
Copy link
Contributor

@nagworld9 nagworld9 commented Nov 7, 2024

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

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made

Quality of Code and Contribution Guidelines

if [[ $? -eq 0 ]]; then
echo "Network is accessible"
return 0
else:
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

maddieford
maddieford previously approved these changes Nov 8, 2024

echo "$(date --utc +%FT%T.%3NZ): Network still not accessible"
echo "Unable to connect to network, giving up"
retun 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax error

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@nagworld9 nagworld9 merged commit 0686d38 into Azure:develop Nov 13, 2024
11 checks passed
@nagworld9 nagworld9 deleted the cronscript branch November 13, 2024 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants