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.
@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
giggsoff
left a comment
There was a problem hiding this comment.
Please add wait for ssh after pod modify and take a look at my comments
| ! exec -t 1m bash ping.sh | ||
| stdout '100% packet loss' | ||
|
|
||
| message 'Resource cleanng' |
| 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.
Any reason to use this loop here?
There was a problem hiding this comment.
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.
We have the inner loop here for that (for i in seq 20), right?
| exec -t 1m bash ping.sh | ||
| stdout '0% packet loss' | ||
|
|
||
| message 'Switching network' |
There was a problem hiding this comment.
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.
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.
Well, I think if we remove all ACLs, we can be independent from spelling, we just remove them.
| #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.
Should we remove comments here?
8f76765 to
ed1a925
Compare
Signed-off-by: Oleg Sadov <oleg@zededa.com>
|
OK - moved to "large". |
At this time blocked by #589.
Signed-off-by: Oleg Sadov oleg@zededa.com