Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Update go to v1.13.8 #2536

Merged
merged 1 commit into from
Mar 30, 2020
Merged

Conversation

saschagrunert
Copy link
Contributor

@saschagrunert saschagrunert commented Mar 18, 2020

We need this update for building Kubernetes and CRI-O with the latest go 1.13
version.

/cc @chavafg

Releates to cri-o/cri-o#3392
Fixes #2537

@chavafg
Copy link
Contributor

chavafg commented Mar 18, 2020

hi @saschagrunert
thanks for the PR, can you please amend your commit message to follow these guidelines?
https://github.com/kata-containers/community/blob/master/CONTRIBUTING.md#patch-format

Basically, you'll need to:

  1. open an issue with current issue and then in the commit message add a line of Fixes: #nnn
  2. add a subsystem to the commit title, something like: versions: Update go to...

@saschagrunert
Copy link
Contributor Author

Alright, created and referred the issue

@chavafg
Copy link
Contributor

chavafg commented Mar 18, 2020

/test

@jodh-intel
Copy link
Contributor

Hmm, various juicy CI errors including:

15:11:24 === RUN   TestScanNetwork
15:11:24 fatal error: checkptr: unsafe pointer conversion
15:11:24 
15:11:24 goroutine 10 [running, locked to thread]:

But the F31 error is somewhat alarming (the kernel version part):

15:12:17 runtime: mlock of signal stack failed: 12
15:12:17 runtime: increase the mlock limit (ulimit -l) or
15:12:17 runtime: update your kernel to 5.3.15+, 5.4.2+, or 5.5+
15:12:17 fatal error: mlock failed

@saschagrunert
Copy link
Contributor Author

saschagrunert commented Mar 18, 2020

Is this a kernel bug? I read discussion regarding that some time ago...

Ref: golang/go#35777

@chavafg
Copy link
Contributor

chavafg commented Mar 18, 2020

I increased the memlock to 16384 and that error is now gone.
echo "* - memlock 16384" | sudo tee /etc/security/limits.d/95-memlock.conf

Seems like fedora keeps this limit very low. 64 on my local machine, while in ubuntu this is 16384.
Not sure if increasing the limit will have other implications.

@amshinde
Copy link
Member

@chavafg Looks like increasing the mlock limit is the only solution to this issue seen with go1.14 for kernels 5.2 to 5.4.1.
@saschagrunert Wondering if we can upgrade to 1.13 instead, I think thats the version still supported by kubernetes?

We need this update for building Kubernetes and CRI-O with the latest go
version.

Fixes kata-containers#2537

Signed-off-by: Sascha Grunert <[email protected]>
@saschagrunert saschagrunert changed the title Update go to v1.14 Update go to v1.13.8 Mar 19, 2020
@saschagrunert
Copy link
Contributor Author

Yes, I think go 1.13 would be fine too. Updated the PR

Copy link
Contributor

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

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

Thanks @saschagrunert.

lgtm.

@jodh-intel
Copy link
Contributor

/test

@devimc
Copy link

devimc commented Mar 19, 2020

seems like functional/integration tests are failing, I'll raise a PR to fix this

devimc pushed a commit to devimc/kata-tests that referenced this pull request Mar 19, 2020
Call to `tests.KataInit` in `TestMain` to support golang 1.13.

Depends-on: github.com/kata-containers/runtime#2536

Signed-off-by: Julio Montes <[email protected]>
devimc pushed a commit to devimc/kata-tests that referenced this pull request Mar 19, 2020
Call to `tests.KataInit` in `TestMain` to support golang 1.13.

Depends-on: github.com/kata-containers/runtime#2536

Signed-off-by: Julio Montes <[email protected]>
devimc pushed a commit to devimc/kata-tests that referenced this pull request Mar 20, 2020
Call to `tests.KataInit` in `TestMain` to support golang 1.13.

Depends-on: github.com/kata-containers/runtime#2536

Signed-off-by: Julio Montes <[email protected]>
@GabyCT
Copy link
Contributor

GabyCT commented Mar 23, 2020

/test

@GabyCT
Copy link
Contributor

GabyCT commented Mar 23, 2020

it looks like shimv2 tests are failing

@saschagrunert
Copy link
Contributor Author

it looks like shimv2 tests are failing

Is there anything I can do to fix those tests? I also see connection errors in the logs.

@codecov
Copy link

codecov bot commented Mar 25, 2020

Codecov Report

Merging #2536 into master will decrease coverage by 0.16%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2536      +/-   ##
==========================================
- Coverage   50.58%   50.42%   -0.17%     
==========================================
  Files         116      118       +2     
  Lines       16646    18105    +1459     
==========================================
+ Hits         8420     9129     +709     
- Misses       7199     7903     +704     
- Partials     1027     1073      +46

@chavafg
Copy link
Contributor

chavafg commented Mar 25, 2020

we use the containerd/cri tests for testing our shimv2 and current version we use doesn't have the fix to run with go 1.13. I opened a PR to backport the fix to the release-1.3 branch: commit , but now this needs to be re-vendored in containerd/containerd project. I opened containerd/containerd#4126 for this.
Then we will need to update our containerd entry in versions.yaml

@chavafg
Copy link
Contributor

chavafg commented Mar 26, 2020

/retest

chavafg added a commit to chavafg/tests-1 that referenced this pull request Mar 27, 2020
containerd cannot be build with seccomp enabled in
Opensuse 15. Disable it to be able to build and run the
tests.

Depends-on: github.com/kata-containers/runtime#2536

Fixes: kata-containers#1251.

Signed-off-by: Salvador Fuentes <[email protected]>
chavafg added a commit to chavafg/tests-1 that referenced this pull request Mar 27, 2020
containerd cannot be build with seccomp enabled in
Opensuse 15. Disable it to be able to build and run the
tests.

Depends-on: github.com/kata-containers/runtime#2536

Fixes: kata-containers#1251.

Signed-off-by: Salvador Fuentes <[email protected]>
chavafg added a commit to chavafg/tests-1 that referenced this pull request Mar 28, 2020
containerd cannot be build with seccomp enabled in
Opensuse 15. Disable it to be able to build and run the
tests.

Depends-on: github.com/kata-containers/runtime#2536

Fixes: kata-containers#1251.

Signed-off-by: Salvador Fuentes <[email protected]>
chavafg added a commit to chavafg/tests-1 that referenced this pull request Mar 28, 2020
containerd cannot be build with seccomp enabled in
Opensuse 15. Disable it to be able to build and run the
tests.

Depends-on: github.com/kata-containers/runtime#2536

Fixes: kata-containers#1251.

Signed-off-by: Salvador Fuentes <[email protected]>
@jodh-intel
Copy link
Contributor

OpenSUSE CI failed with:

which: no ctr in (/tmp/jenkins/workspace/kata-containers-runtime-opensuse-15-PR/go/bin:/usr/local/go/bin:/usr/sbin:/sbin:/tmp/jenkins/workspace/kata-containers-runtime-opensuse-15-PR/go/bin:/usr/local/go/bin:/usr/sbin:/home/jenkins/bin:/usr/local/bin:/usr/bin:/bin:/usr/lib/mit/bin:/usr/local/sbin:/usr/local/bin)
ctr is not in PATH
make[1]: *** [Makefile:96: test-integration] Error 1

Debian CI failed with:

23:08:00 # github.com/containerd/containerd/vendor/github.com/containerd/btrfs
23:08:00 vendor/github.com/containerd/btrfs/btrfs.go:38:10: fatal error: btrfs/ioctl.h: No such file or directory
23:08:00  #include <btrfs/ioctl.h>
23:08:00           ^~~~~~~~~~~~~~~
23:08:00 compilation terminated.
23:08:13 make[2]: *** [Makefile:183: bin/containerd] Error 2

Both issues are fixed by kata-containers/tests#2420.

chavafg added a commit to chavafg/tests-1 that referenced this pull request Mar 30, 2020
containerd cannot be build with seccomp enabled in
Opensuse 15. Disable it to be able to build and run the
tests.

Depends-on: github.com/kata-containers/runtime#2536

Fixes: kata-containers#1251.

Signed-off-by: Salvador Fuentes <[email protected]>
chavafg added a commit to chavafg/tests-1 that referenced this pull request Mar 30, 2020
containerd cannot be build with seccomp enabled in
Opensuse 15, and trying to remove `seccomp` from `BUILDTAGS`
variable is not working correctly.
Skip tests while investigation continues.
Related: kata-containers#1251

Depends-on: github.com/kata-containers/runtime#2536

Signed-off-by: Salvador Fuentes <[email protected]>
@jcvenegas jcvenegas merged commit 9fd7189 into kata-containers:master Mar 30, 2020
@saschagrunert saschagrunert deleted the golang-update branch March 30, 2020 20:39
GabyCT pushed a commit to GabyCT/tests-1 that referenced this pull request Apr 16, 2020
containerd cannot be build with seccomp enabled in
Opensuse 15, and trying to remove `seccomp` from `BUILDTAGS`
variable is not working correctly.
Skip tests while investigation continues.
Related: kata-containers#1251

Depends-on: github.com/kata-containers/runtime#2536

Signed-off-by: Salvador Fuentes <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update CRI-O CI go version to v1.13.8
7 participants