Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Not possible to run shimv2 tests on opensuse Leap 15 #1251

Closed
GabyCT opened this issue Feb 27, 2019 · 3 comments
Closed

Not possible to run shimv2 tests on opensuse Leap 15 #1251

GabyCT opened this issue Feb 27, 2019 · 3 comments

Comments

@GabyCT
Copy link
Contributor

GabyCT commented Feb 27, 2019

While trying to run the shimv2 tests on opensuse, we are getting the following error

make shimv2
bash integration/containerd/shimv2/shimv2-tests.sh
Set up environment
HEAD is now at da0c016c Merge pull request #1049 from Random-Liu/cherrypick-#1045-release-1.2
make[1]: Entering directory '/home/gabyleap15/go/src/github.com/containerd/cri'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/gabyleap15/go/src/github.com/containerd/cri'
make[1]: Entering directory '/home/gabyleap15/go/src/github.com/containerd/cri'
Cloning into '/tmp/cri-install-runc.FO0y/src/github.com/opencontainers/runc'...
remote: Enumerating objects: 12, done.
remote: Counting objects: 100% (12/12), done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 19227 (delta 1), reused 3 (delta 0), pack-reused 19215
Receiving objects: 100% (19227/19227), 7.19 MiB | 22.32 MiB/s, done.
Resolving deltas: 100% (12424/12424), done.
Fetching origin
Note: checking out '12f6a991201fdb8f82579582d5e00e28fba06d0a'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 12f6a991 merge branch 'pr-1962'
make[2]: Entering directory '/tmp/cri-install-runc.FO0y/src/github.com/opencontainers/runc'
CGO_ENABLED=1 go build  -tags "seccomp apparmor netgo osusergo static_build" -installsuffix netgo -ldflags "-w -extldflags -static -X main.gitCommit="12f6a991201fdb8f82579582d5e00e28fba06d0a" -X main.version=1.0.0-rc6+dev " -o runc .
# github.com/opencontainers/runc
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -lseccomp
collect2: error: ld returned 1 exit status

make[2]: *** [Makefile:43: static] Error 2
make[2]: Leaving directory '/tmp/cri-install-runc.FO0y/src/github.com/opencontainers/runc'
make[1]: *** [Makefile:162: install.deps] Error 2
make[1]: Leaving directory '/home/gabyleap15/go/src/github.com/containerd/cri'
Retrieve CNI plugins repository

However, I have installed the following packages

S  | Name              | Summary                                                                       | Type
---+-------------------+-------------------------------------------------------------------------------+--------
i+ | libseccomp-devel  | Development files for libseccomp, an enhanced Seccomp (mode 2) helper library | package
i+ | libseccomp-tools  | Utilities for the seccomp API                                                 | package
i  | libseccomp2       | An enhanced Seccomp (mode 2) helper library                                   | package

/cc @marcov

GabyCT added a commit to GabyCT/tests-1 that referenced this issue Feb 27, 2019
Currently shimv2 tests are not working on openSUSE Leap
(kata-containers#1251).

Fixes kata-containers#1252

Signed-off-by: Gabriela Cervantes <[email protected]>
@marcov
Copy link
Contributor

marcov commented Feb 28, 2019

Hi @GabyCT, this is because the test is trying to build runc in static mode, and the linker requires a static library file (libseccomp.a).
However the libseccomp* packages only provides shared libraries files (libseccomp.so).
Thanks for reporting, I'll investigate on this.

GabyCT added a commit to GabyCT/tests-1 that referenced this issue Apr 2, 2019
shim2 tests are not working on SLES kata-containers#1251.

Fixes kata-containers#1391

Signed-off-by: Gabriela Cervantes <[email protected]>
GabyCT added a commit to GabyCT/tests-1 that referenced this issue Apr 11, 2019
shim2 tests are not working on SLES kata-containers#1251.

Fixes kata-containers#1391

Signed-off-by: Gabriela Cervantes <[email protected]>
GabyCT added a commit to GabyCT/tests-1 that referenced this issue Apr 11, 2019
Currently shimv2 tests are not working on openSUSE Leap
(kata-containers#1251).

Fixes kata-containers#1252

Signed-off-by: Gabriela Cervantes <[email protected]>
GabyCT added a commit to GabyCT/tests-1 that referenced this issue Apr 11, 2019
shim2 tests are not working on SLES kata-containers#1251.

Fixes kata-containers#1391

Signed-off-by: Gabriela Cervantes <[email protected]>
GabyCT added a commit to GabyCT/tests-1 that referenced this issue Apr 12, 2019
Currently shimv2 tests are not working on openSUSE Leap
(kata-containers#1251).

Fixes kata-containers#1252

Signed-off-by: Gabriela Cervantes <[email protected]>
GabyCT added a commit to GabyCT/tests-1 that referenced this issue Apr 12, 2019
shim2 tests are not working on SLES kata-containers#1251.

Fixes kata-containers#1391

Signed-off-by: Gabriela Cervantes <[email protected]>
GabyCT added a commit to GabyCT/tests-1 that referenced this issue Apr 12, 2019
Currently shimv2 tests are not working on openSUSE Leap
(kata-containers#1251).

Fixes kata-containers#1252

Signed-off-by: Gabriela Cervantes <[email protected]>
GabyCT added a commit to GabyCT/tests-1 that referenced this issue Apr 12, 2019
shim2 tests are not working on SLES kata-containers#1251.

Fixes kata-containers#1391

Signed-off-by: Gabriela Cervantes <[email protected]>
@GabyCT
Copy link
Contributor Author

GabyCT commented Nov 12, 2019

Closing this issue as they are running on SLES

@GabyCT GabyCT closed this as completed Nov 12, 2019
@chavafg
Copy link
Contributor

chavafg commented Mar 27, 2020

This still happens on opensuse, re-opening

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

Fixes: kata-containers#1251.

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

Fixes: kata-containers#1251.

Signed-off-by: Salvador Fuentes <[email protected]>
chavafg added a commit to chavafg/tests-1 that referenced this issue 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 issue 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 issue 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 issue 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 issue 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 issue 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

Signed-off-by: Salvador Fuentes <[email protected]>
chavafg added a commit to chavafg/tests-1 that referenced this issue 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

Signed-off-by: Salvador Fuentes <[email protected]>
chavafg added a commit to chavafg/tests-1 that referenced this issue 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]>
GabyCT pushed a commit to GabyCT/tests-1 that referenced this issue 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]>
GabyCT pushed a commit to GabyCT/tests-1 that referenced this issue 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

Signed-off-by: Salvador Fuentes <[email protected]>
GabyCT pushed a commit to GabyCT/tests-1 that referenced this issue 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

Signed-off-by: Salvador Fuentes <[email protected]>
chavafg added a commit to GabyCT/tests-1 that referenced this issue Apr 17, 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

Signed-off-by: Salvador Fuentes <[email protected]>
@GabyCT GabyCT closed this as completed Mar 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants