-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fix tang test (part 2) #510
Conversation
e2e16a1
to
94bccea
Compare
Signed-off-by: Jeremi Piotrowski <[email protected]>
94bccea
to
4256012
Compare
platform/local/cluster.go
Outdated
@@ -93,6 +93,20 @@ func (lc *LocalCluster) GetOmahaHostPort() (string, error) { | |||
return net.JoinHostPort(lc.hostIP(), port), nil | |||
} | |||
|
|||
func (lc *LocalCluster) NewTangListener() (*net.Listener, 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.
This does not seem to be specific at all to Tang, so maybe name it NewListenerInsideClusterNS
?
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.
makes sense - pushed the change
The current version of the test creates a host socket which is affected by host iptables settings. This is why both tang tests are currently failing on our hosted infra. Rework the test to create a listener in the network namespace of the kola flight, which avoids host networking issues. We still have to dynamically find a port to avoid test case port collision, because kola runs all (qemu) tests inside the same network namespace. Signed-off-by: Jeremi Piotrowski <[email protected]>
3a1c7dc
to
41c9bf9
Compare
I ran a test with this PRs container image here: http://jenkins.infra.kinvolk.io:8080/job/container/job/test/20754/console |
Are they still failing?
|
Yes, it still fails because we're missing this fix (WIP): flatcar/bootengine#90. That will come later. |
Fix the tang test by moving the tang listener into the qemu network namespace.
Also an attempt to speed up container build so the second commit will be pushed after the first build completes.