containers / buildah

A tool that facilitates building OCI images.
https://buildah.io
Apache License 2.0
7.37k stars 781 forks source link

buildah 1.11.3-2 fails on every command #1923

Closed maysunfaisal closed 4 years ago

maysunfaisal commented 5 years ago

Description

Steps to reproduce the issue:

  1. Download rpm from https://download-ib01.fedoraproject.org/pub/fedora/linux/updates/30/Everything/x86_64/Packages/b/buildah-1.11.3-2.fc30.x86_64.rpm
  2. Install buildah using yum
    
    yum -y --enablerepo=epel install buildah.rpm
    Loaded plugins: fastestmirror, ovl
    Examining buildah.rpm: buildah-1.11.3-2.fc30.x86_64
    Marking buildah.rpm as an update to buildah-1.11.2-2.git0bafbfe.fc30.x86_64
    Resolving Dependencies
    --> Running transaction check
    ---> Package buildah.x86_64 0:1.11.2-2.git0bafbfe.fc30 will be updated
    ---> Package buildah.x86_64 0:1.11.3-2.fc30 will be an update
    --> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================================================================== Package Arch Version Repository Size

Updating: buildah x86_64 1.11.3-2.fc30 /buildah 36 M

Transaction Summary

Upgrade 1 Package

Total size: 36 M Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : buildah-1.11.3-2.fc30.x86_64 1/2 Cleanup : buildah-1.11.2-2.git0bafbfe.fc30.x86_64 2/2 Verifying : buildah-1.11.3-2.fc30.x86_64 1/2 Verifying : buildah-1.11.2-2.git0bafbfe.fc30.x86_64 2/2

Updated: buildah.x86_64 0:1.11.3-2.fc30

Complete!


**Describe the results you received:**

[root@93fe8a5692a4 bin]# pwd /usr/bin [root@93fe8a5692a4 bin]# ls -la buildah -rwxr-xr-x 1 root root 37519624 Oct 4 18:20 buildah [root@93fe8a5692a4 bin]# buildah version buildah: symbol lookup error: buildah: undefined symbol: seccomp_api_set


**Describe the results you expected:**
Something like

buildah version Version: 1.11.2 Go Version: go1.12.9 Image Spec: 1.0.1 Runtime Spec: 1.0.1-dev CNI Spec: 0.4.0 libcni Version:
Git Commit:
Built: Thu Jan 1 00:00:00 1970 OS/Arch: linux/amd64


**Output of `rpm -q buildah` or `apt list buildah`:**

rpm -q buildah buildah-1.11.3-2.fc30.x86_64


**Output of `buildah version`:**

N/A, see above

**Output of `podman version` if reporting a `podman build` issue:**

(paste your output here)


**Output of `cat /etc/*release`:**

[root@codewind-workspaceemry865xg0d6rhrp-66cff68799-5c5zq bin]# cat /etc/*release CentOS Linux release 7.6.1810 (Core) NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.6.1810 (Core) CentOS Linux release 7.6.1810 (Core)


**Output of `uname -a`:**

uname -a Linux codewind-workspaceemry865xg0d6rhrp-66cff68799-5c5zq 3.10.0-957.12.1.el7.x86_64 #1 SMP Wed Mar 20 11:34:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


**Output of `cat /etc/containers/storage.conf`:**

(paste your output here)

TomSweeneyRedHat commented 5 years ago

@lsm5 any thoughts? I don't have a CentOS vm readily available.

lsm5 commented 5 years ago

@maysunfaisal try the centos SIG build instead. https://cbs.centos.org/koji/buildinfo?buildID=26863

maysunfaisal commented 5 years ago

@lsm5 downloaded the rpm from the link and it still gives me the same error:

[root@d46f29d39466 /]# buildah version
buildah: symbol lookup error: buildah: undefined symbol: seccomp_api_set
[root@d46f29d39466 /]# rpm -q buildah
buildah-1.11.3-2.el7.x86_64
rhatdan commented 5 years ago

Do we need a new version of libseccomp?

lsm5 commented 5 years ago

@maysunfaisal hmm, can you try installing libseccomp rpm from https://cbs.centos.org/koji/buildinfo?buildID=26448 and retry this? If it works, I'll update the minimum seccomp dependency in the rpm

maysunfaisal commented 5 years ago

@lsm5 yes, that seemed to work

[root@d46f29d39466 bin]# buildah version
Version:         1.11.3
Go Version:      go1.10.2
Image Spec:      1.0.1-dev
Runtime Spec:    1.0.1-dev
CNI Spec:        0.4.0
libcni Version:  
Git Commit:      
Built:           Thu Jan  1 00:00:00 1970
OS/Arch:         linux/amd64
lsm5 commented 5 years ago

updated dependency in buildah spec file. Closing...

lsm5 commented 5 years ago

New build happening at https://cbs.centos.org/koji/taskinfo?taskID=995101 which should take care of the dependency issue.

maysunfaisal commented 5 years ago

@lsm5 looks like the build has failed :(

lsm5 commented 5 years ago

Fixed https://cbs.centos.org/koji/taskinfo?taskID=995170

pixdrift commented 4 years ago

There appears to be a regression in the spec file and this issue has crept back into the 1.12 RPM. Looking at the spec, the libseccomp Requires implemented for CentOS fix is no longer there:

# buildah version
buildah: symbol lookup error: buildah: undefined symbol: seccomp_api_set

# rpm -q --requires buildah
container-selinux
containers-common
libassuan.so.0()(64bit)
libc.so.6()(64bit)
libc.so.6(GLIBC_2.14)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libdevmapper.so.1.02()(64bit)
libdevmapper.so.1.02(Base)(64bit)
libdevmapper.so.1.02(DM_1_02_97)(64bit)
libgpg-error.so.0()(64bit)
libgpgme.so.11()(64bit)
libgpgme.so.11(GPGME_1.0)(64bit)
libgpgme.so.11(GPGME_1.1)(64bit)
libpthread.so.0()(64bit)
libpthread.so.0(GLIBC_2.2.5)(64bit)
libpthread.so.0(GLIBC_2.3.2)(64bit)
libseccomp.so.2()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)
runc >= 1.0.0-17
slirp4netns >= 0.3-0
rpmlib(PayloadIsXz) <= 5.2-1

Version 1.11.3 spec file:

Name: %{repo}
Version: 1.11.3

...

%else
#### DO NOT REMOVE - NEEDED FOR CENTOS
Requires: libseccomp >= 2.4.1-0
Requires: container-selinux
Requires: slirp4netns >= 0.3-0
%endif

Version 1.12.0 spec file:

Name: %{repo}
Version: 1.12.0

...

%else
Requires: container-selinux
Requires: slirp4netns >= 0.3-0
%endif

Is there a source for this spec file that's publicly available?

Installing libseccomp = 2.4.1-0.el7 resolves the issue.

pixdrift commented 4 years ago

@TomSweeneyRedHat you OK to re-use this issue or would you like me to create a new one?

TomSweeneyRedHat commented 4 years ago

@pixdrift this is fine here.

TomSweeneyRedHat commented 4 years ago

@lsm5 any update?

lsm5 commented 4 years ago

@pixdrift have you tried the latest packages from OBS? See: https://github.com/containers/buildah/blob/master/install.md

rhatdan commented 4 years ago

Latest packages should be available.