Skip to content

[release/1.1 backport] travis configuration updates#3157

Closed
thaJeztah wants to merge 6 commits intocontainerd:release/1.1from
thaJeztah:1.1_backport_travis_changes
Closed

[release/1.1 backport] travis configuration updates#3157
thaJeztah wants to merge 6 commits intocontainerd:release/1.1from
thaJeztah:1.1_backport_travis_changes

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

backports of;

avagin and others added 6 commits April 1, 2019 23:28
Signed-off-by: Andrei Vagin <[email protected]>
(cherry picked from commit 29c76b1)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
containerd now only supports Go 1.10+, and travis is not
configured to run on older versions, so this check became
redundant.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 108c9cd)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Prior PR fixed the wrong use of `exit` built-in within a Travis script,
but lost the reporting of a failure result of CRI testing in the process.

Signed-off-by: Phil Estes <[email protected]>
(cherry picked from commit 9622369)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Many of the setup/dev programs installed are not used because no testing
is executed on GOOS=darwin builds. Makes sense to remove them and make
darwin runs much shorter.

Signed-off-by: Phil Estes <[email protected]>
(cherry picked from commit b215a65)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Remove local copies of common containerd/project located scripts for
DCO, fileheader, and vendor checks.

Signed-off-by: Phil Estes <[email protected]>
(cherry picked from commit bd93a66)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Michael Crosby <[email protected]>
(cherry picked from commit 5e84069)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@dmcgowan
Copy link
Copy Markdown
Member

dmcgowan commented Apr 1, 2019

LGTM

But is there something wrong with the change or is Travis having issues?

@thaJeztah
Copy link
Copy Markdown
Member Author

But is there something wrong with the change or is Travis having issues?

hmm.... good one; I see one job is "cancelled" for some reason (not failed). My previous PR took a very long time before it got scheduled, so perhaps there's something with travis?

Disclaimer: I can't exclude that there's something with my changes (e.g. if the CRIU bump wasn't good for this branch), so let's make sure it does a full run of CI 👍

@thaJeztah
Copy link
Copy Markdown
Member Author

hm.. is this a known issue, or introduced by my changes?

Test Suite Failed
--- FAIL: TestCRISuite (0.28s)
    cri_test.go:122: Failed to run tests in paralllel: exit status 1
FAIL

time="2019-04-02T04:07:31Z" level=info msg="Start snapshots syncer" 
time="2019-04-02T04:07:31Z" level=info msg="Start streaming server" 
time="2019-04-02T04:07:31Z" level=error msg="Failed to start streaming server" error="listen tcp 10.20.11.20:10010: bind: address already in use" 
time="2019-04-02T04:07:31Z" level=info msg="Stop CRI service" 
time="2019-04-02T04:07:31Z" level=info msg="Event monitor stopped" 
time="2019-04-02T04:07:31Z" level=info msg="Stream server stopped" 
time="2019-04-02T04:07:31Z" level=fatal msg="Failed to run CRI service" error="stream server error: listen tcp 10.20.11.20:10010: bind: address already in use" 

@thaJeztah
Copy link
Copy Markdown
Member Author

Looks indeed unrelated #2577 (comment)

I'm a bit confused though, as I'm not able to find that file, nor the test (TestCRISuite)

@thaJeztah
Copy link
Copy Markdown
Member Author

thaJeztah commented Apr 2, 2019

@thaJeztah
Copy link
Copy Markdown
Member Author

@estesp
Copy link
Copy Markdown
Member

estesp commented Apr 2, 2019

I think you are getting caught by the StreamServer* settings that changed in the CRI plugin:
release/1.1:

./vendor/github.com/containerd/cri/pkg/config/config.go:139:            StreamServerAddress:     "",
./vendor/github.com/containerd/cri/pkg/config/config.go:140:            StreamServerPort:        "10010",

master:

./vendor/github.com/containerd/cri/pkg/config/config.go:197:            StreamServerAddress: "127.0.0.1",
./vendor/github.com/containerd/cri/pkg/config/config.go:198:            StreamServerPort:    "0",

It could be that by changing the underlying Ubuntu release in the Travis config, there is now a service actually listening on 10010 that didn't exist in the older Ubuntu image? I don't believe you are hitting any issue with parallel containerd runs, as the containerd socket already in use would be hit before the CRI streaming server issue, which is what the latest Travis run shows:

time="2019-04-02T04:05:27Z" level=info msg="Start streaming server" 
time="2019-04-02T04:05:27Z" level=error msg="Failed to start streaming server" error="listen tcp 10.20.11.20:10010: bind: address already in use" 
time="2019-04-02T04:05:27Z" level=info msg="Stop CRI service" 

@thaJeztah
Copy link
Copy Markdown
Member Author

Hm. Good call; wasn't that actually a bug / undesired situation (the stream server being enabled by default instead of opt-in?). Wondering if that change would have to be backported to 1.1

@thaJeztah
Copy link
Copy Markdown
Member Author

Hm... change was in moby; moby/moby#37519, let me dig further what was discussed in containerd

@thaJeztah
Copy link
Copy Markdown
Member Author

Change in containerd/cri was containerd/cri#858

@Random-Liu do you think that should be backported to the containerd/cri 1.1 branch, or would that be a breaking change?

@fuweid
Copy link
Copy Markdown
Member

fuweid commented May 25, 2019

any update here? @thaJeztah and @Random-Liu

@crosbymichael
Copy link
Copy Markdown
Member

Going to close this for now until we figureout if we are going to backport cri changes or not

@thaJeztah thaJeztah deleted the 1.1_backport_travis_changes branch March 13, 2021 10:50
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.

6 participants