-
Notifications
You must be signed in to change notification settings - Fork 48
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
app_nonat test #591
app_nonat test #591
Conversation
a152362
to
f135296
Compare
The test fails in the current state. EVE configs from this test:
and ztest:
looks more or less similar, but pings through eth1 not passed. Log file: |
After adding the default gw route for eth1 to the test, the ping passes. But it still gets through after removing the acl rules from the |
With a such changes on EVE:
|
e6a2015
to
3fc77ff
Compare
bdc1b56
to
0509adb
Compare
message 'Switching network' | ||
eden pod modify eclient --networks indirect --networks=direct --acl='direct:' | ||
test eden.app.test -test.v -timewait 30m RUNNING eclient | ||
|
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.
@sadov please add here
message 'Checking accessibility'
exec -t 5m bash wait_ssh.sh
eden pod modify
will restart app in this case, so we must wait for ssh
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.
Reasonably
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.
Please add wait for ssh after pod modify and take a look at my comments
tests/eclient/testdata/app_nonat.txt
Outdated
! exec -t 1m bash ping.sh | ||
stdout '100% packet loss' | ||
|
||
message 'Resource cleanng' |
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.
cleanng->cleaning
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.
OK
tests/eclient/testdata/app_nonat.txt
Outdated
EDEN={{EdenConfig "eden.root"}}/{{EdenConfig "eden.bin-dist"}}/{{EdenConfig "eden.eden-bin"}} | ||
HOST=$($EDEN eve ip) | ||
|
||
for p in $* |
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.
Any reason to use this loop here?
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.
This was developed empirically - in some cases, the system did not fully initialize after going into the RUNNING state. We use such loops in many tests.
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.
We have the inner loop here for that (for i in seq 20
), right?
tests/eclient/testdata/app_nonat.txt
Outdated
exec -t 1m bash ping.sh | ||
stdout '0% packet loss' | ||
|
||
message 'Switching network' |
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.
Please add comment, that we remove all ACLs for direct network for which one eth1 of eclient connected.
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.
Sure -- mentioning the ACL here will make sense, but the exact wording will need to be coordinated with the network documentation and the second is planned to be created.
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.
Well, I think if we remove all ACLs, we can be independent from spelling, we just remove them.
tests/eclient/testdata/app_nonat.txt
Outdated
#echo {{template "ssh"}}$HOST route add default gw 192.168.0.2 dev eth1 | ||
#{{template "ssh"}}$HOST route add default gw 192.168.0.2 dev eth1 |
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.
Should we remove comments here?
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.
Sure
8f76765
to
ed1a925
Compare
Signed-off-by: Oleg Sadov <[email protected]>
OK - moved to "large". |
At this time blocked by #589.
Signed-off-by: Oleg Sadov [email protected]