-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Regression on image built with kaniko between v0.16.0 and v0.17.1 #1039
Comments
I'm able to repro (thank you @tanguydelignieresaccenture for the detailed report) I'm seeing some strange output in a debugger at
It looks like files are being double whiteouted? I can't image a scenario where we would expect a file to have double |
at util/fs_util.go if err := os.RemoveAllI(filiepath.Join(dir, name)); err != nil {
dir => /
name => dev
path => /.wh.dev
os.RemoveAll("/dev") // OH NO! ya trying to remove |
If |
Looks like
|
I have a theory about this issue In #971 this code was added kaniko/pkg/snapshot/snapshot.go Line 183 in 8d9e6b8
In the issue example, this causes I think the solution here would be moving the kaniko/pkg/snapshot/snapshot.go Line 133 in 8d9e6b8
or duplicating the whitelist checks in |
@tanguydelignieresaccenture can you try tag I've just pushed these two tags and I'd like to test if they fix the issue you are seeing. Thanks! |
@cvgw After your observations that the issues #1038 #1024 and #1028 might all be related, and my involvement with the issues #1024 and #1028, I figured I could do a test on my own. I used the following Docker image:
I have build this Docker image 4 times: One time using tag These are the results:
So for me, |
One more comment: I am not sure if it is related or useful at all, but I noticed when going over the build logs that Build log |
@cvgw, I've made a test with Here are the results:
$ docker run --rm --entrypoint "" -v /host/path/to/kaniko/config.json:/kaniko/.docker/config.json -v /host/path/to/dockerfile/directory/kaniko/20200207-001/build1:/workspace gcr.io/kaniko-project/executor:debug-1039-fix-test /kaniko/executor --context /workspace --dockerfile /workspace/Dockerfile --destination index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-1039-fix-test
INFO[0002] Resolved base name registry.access.redhat.com/ubi7/ubi:7.7-214 to registry.access.redhat.com/ubi7/ubi:7.7-214
INFO[0002] Resolved base name registry.access.redhat.com/ubi7/ubi:7.7-214 to registry.access.redhat.com/ubi7/ubi:7.7-214
INFO[0002] Retrieving image manifest registry.access.redhat.com/ubi7/ubi:7.7-214
INFO[0004] Retrieving image manifest registry.access.redhat.com/ubi7/ubi:7.7-214
INFO[0005] Built cross stage deps: map[]
INFO[0005] Retrieving image manifest registry.access.redhat.com/ubi7/ubi:7.7-214
INFO[0006] Retrieving image manifest registry.access.redhat.com/ubi7/ubi:7.7-214
INFO[0008] Unpacking rootfs as cmd RUN yum --disableplugin=subscription-manager update -y && yum --disableplugin=subscription-manager install -y gcc-4.8.5-39.el7 gcc-c++-4.8.5-39.el7 make-3.82-24.el7 && yum --disableplugin=subscription-manager clean all requires it.
INFO[0122] Taking snapshot of full filesystem...
INFO[0124] RUN yum --disableplugin=subscription-manager update -y && yum --disableplugin=subscription-manager install -y gcc-4.8.5-39.el7 gcc-c++-4.8.5-39.el7 make-3.82-24.el7 && yum --disableplugin=subscription-manager clean all
INFO[0124] cmd: /bin/sh
INFO[0124] args: [-c yum --disableplugin=subscription-manager update -y && yum --disableplugin=subscription-manager install -y gcc-4.8.5-39.el7 gcc-c++-4.8.5-39.el7 make-3.82-24.el7 && yum --disableplugin=subscription-manager clean all]
Loaded plugins: ovl, product-id, search-disabled-repos
https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/devtools/1/os/repodata/a27718cc28ec6d71432e0ef3e6da544b7f9d93f6bb7d0a55aacd592d03144b70-comps.xml: [Errno 12] Timeout on https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi/server/7/7Server/x86_64/devtools/1/os/repodata/a27718cc28ec6d71432e0ef3e6da544b7f9d93f6bb7d0a55aacd592d03144b70-comps.xml: (28, 'Operation timed out after 30001 milliseconds with 0 out of 0 bytes received')
Trying other mirror.
Resolving Dependencies
--> Running transaction check
---> Package binutils.x86_64 0:2.27-41.base.el7_7.1 will be updated
---> Package binutils.x86_64 0:2.27-41.base.el7_7.2 will be an update
---> Package curl.x86_64 0:7.29.0-54.el7_7.1 will be updated
---> Package curl.x86_64 0:7.29.0-54.el7_7.2 will be an update
---> Package libcurl.x86_64 0:7.29.0-54.el7_7.1 will be updated
---> Package libcurl.x86_64 0:7.29.0-54.el7_7.2 will be an update
---> Package nss.x86_64 0:3.44.0-4.el7 will be updated
---> Package nss.x86_64 0:3.44.0-7.el7_7 will be an update
---> Package nss-softokn.x86_64 0:3.44.0-5.el7 will be updated
---> Package nss-softokn.x86_64 0:3.44.0-8.el7_7 will be an update
---> Package nss-softokn-freebl.x86_64 0:3.44.0-5.el7 will be updated
---> Package nss-softokn-freebl.x86_64 0:3.44.0-8.el7_7 will be an update
---> Package nss-sysinit.x86_64 0:3.44.0-4.el7 will be updated
---> Package nss-sysinit.x86_64 0:3.44.0-7.el7_7 will be an update
---> Package nss-tools.x86_64 0:3.44.0-4.el7 will be updated
---> Package nss-tools.x86_64 0:3.44.0-7.el7_7 will be an update
---> Package nss-util.x86_64 0:3.44.0-3.el7 will be updated
---> Package nss-util.x86_64 0:3.44.0-4.el7_7 will be an update
---> Package sqlite.x86_64 0:3.7.17-8.el7 will be updated
---> Package sqlite.x86_64 0:3.7.17-8.el7_7.1 will be an update
---> Package systemd.x86_64 0:219-67.el7_7.2 will be updated
---> Package systemd.x86_64 0:219-67.el7_7.3 will be an update
---> Package systemd-libs.x86_64 0:219-67.el7_7.2 will be updated
---> Package systemd-libs.x86_64 0:219-67.el7_7.3 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
binutils x86_64 2.27-41.base.el7_7.2 ubi-7 5.9 M
curl x86_64 7.29.0-54.el7_7.2 ubi-7 270 k
libcurl x86_64 7.29.0-54.el7_7.2 ubi-7 223 k
nss x86_64 3.44.0-7.el7_7 ubi-7 854 k
nss-softokn x86_64 3.44.0-8.el7_7 ubi-7 330 k
nss-softokn-freebl x86_64 3.44.0-8.el7_7 ubi-7 224 k
nss-sysinit x86_64 3.44.0-7.el7_7 ubi-7 65 k
nss-tools x86_64 3.44.0-7.el7_7 ubi-7 528 k
nss-util x86_64 3.44.0-4.el7_7 ubi-7 79 k
sqlite x86_64 3.7.17-8.el7_7.1 ubi-7 394 k
systemd x86_64 219-67.el7_7.3 ubi-7 5.1 M
systemd-libs x86_64 219-67.el7_7.3 ubi-7 411 k
Transaction Summary
================================================================================
Upgrade 12 Packages
Total download size: 14 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7Server/ubi-7/packages/curl-7.29.0-54.el7_7.2.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Public key for curl-7.29.0-54.el7_7.2.x86_64.rpm is not installed
--------------------------------------------------------------------------------
Total 768 kB/s | 14 MB 00:19
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Importing GPG key 0xFD431D51:
Userid : "Red Hat, Inc. (release key 2) <[email protected]>"
Fingerprint: 567e 347a d004 4ade 55ba 8a5f 199e 2f91 fd43 1d51
Package : redhat-release-server-7.7-10.el7.x86_64 (@anaconda/7.7)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Importing GPG key 0x2FA658E0:
Userid : "Red Hat, Inc. (auxiliary key) <[email protected]>"
Fingerprint: 43a6 e49c 4a38 f4be 9abf 2a53 4568 9c88 2fa6 58e0
Package : redhat-release-server-7.7-10.el7.x86_64 (@anaconda/7.7)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : nss-util-3.44.0-4.el7_7.x86_64 1/24
Updating : nss-softokn-freebl-3.44.0-8.el7_7.x86_64 2/24
Updating : systemd-libs-219-67.el7_7.3.x86_64 3/24
Updating : sqlite-3.7.17-8.el7_7.1.x86_64 4/24
Updating : nss-softokn-3.44.0-8.el7_7.x86_64 5/24
Updating : nss-sysinit-3.44.0-7.el7_7.x86_64 6/24
Updating : nss-3.44.0-7.el7_7.x86_64 7/24
Updating : libcurl-7.29.0-54.el7_7.2.x86_64 8/24
Updating : curl-7.29.0-54.el7_7.2.x86_64 9/24
Updating : systemd-219-67.el7_7.3.x86_64 10/24
Failed to get D-Bus connection: Operation not permitted
Updating : nss-tools-3.44.0-7.el7_7.x86_64 11/24
Updating : binutils-2.27-41.base.el7_7.2.x86_64 12/24
install-info: No such file or directory for /usr/share/info/as.info.gz
install-info: No such file or directory for /usr/share/info/binutils.info.gz
install-info: No such file or directory for /usr/share/info/gprof.info.gz
install-info: No such file or directory for /usr/share/info/ld.info.gz
install-info: No such file or directory for /usr/share/info/standards.info.gz
Cleanup : nss-tools-3.44.0-4.el7.x86_64 13/24
Cleanup : curl-7.29.0-54.el7_7.1.x86_64 14/24
Cleanup : systemd-219-67.el7_7.2.x86_64 15/24
Cleanup : libcurl-7.29.0-54.el7_7.1.x86_64 16/24
Cleanup : nss-sysinit-3.44.0-4.el7.x86_64 17/24
Cleanup : nss-3.44.0-4.el7.x86_64 18/24
Cleanup : nss-softokn-3.44.0-5.el7.x86_64 19/24
Cleanup : nss-softokn-freebl-3.44.0-5.el7.x86_64 20/24
Cleanup : nss-util-3.44.0-3.el7.x86_64 21/24
Cleanup : sqlite-3.7.17-8.el7.x86_64 22/24
Cleanup : systemd-libs-219-67.el7_7.2.x86_64 23/24
Cleanup : binutils-2.27-41.base.el7_7.1.x86_64 24/24
Verifying : binutils-2.27-41.base.el7_7.2.x86_64 1/24
Verifying : nss-tools-3.44.0-7.el7_7.x86_64 2/24
Verifying : nss-3.44.0-7.el7_7.x86_64 3/24
Verifying : sqlite-3.7.17-8.el7_7.1.x86_64 4/24
Verifying : systemd-libs-219-67.el7_7.3.x86_64 5/24
Verifying : nss-sysinit-3.44.0-7.el7_7.x86_64 6/24
Verifying : curl-7.29.0-54.el7_7.2.x86_64 7/24
Verifying : systemd-219-67.el7_7.3.x86_64 8/24
Verifying : libcurl-7.29.0-54.el7_7.2.x86_64 9/24
Verifying : nss-util-3.44.0-4.el7_7.x86_64 10/24
Verifying : nss-softokn-freebl-3.44.0-8.el7_7.x86_64 11/24
Verifying : nss-softokn-3.44.0-8.el7_7.x86_64 12/24
Verifying : nss-tools-3.44.0-4.el7.x86_64 13/24
Verifying : systemd-libs-219-67.el7_7.2.x86_64 14/24
Verifying : systemd-219-67.el7_7.2.x86_64 15/24
Verifying : nss-util-3.44.0-3.el7.x86_64 16/24
Verifying : curl-7.29.0-54.el7_7.1.x86_64 17/24
Verifying : libcurl-7.29.0-54.el7_7.1.x86_64 18/24
Verifying : nss-sysinit-3.44.0-4.el7.x86_64 19/24
Verifying : binutils-2.27-41.base.el7_7.1.x86_64 20/24
Verifying : nss-softokn-freebl-3.44.0-5.el7.x86_64 21/24
Verifying : nss-3.44.0-4.el7.x86_64 22/24
Verifying : nss-softokn-3.44.0-5.el7.x86_64 23/24
Verifying : sqlite-3.7.17-8.el7.x86_64 24/24
Updated:
binutils.x86_64 0:2.27-41.base.el7_7.2
curl.x86_64 0:7.29.0-54.el7_7.2
libcurl.x86_64 0:7.29.0-54.el7_7.2
nss.x86_64 0:3.44.0-7.el7_7
nss-softokn.x86_64 0:3.44.0-8.el7_7
nss-softokn-freebl.x86_64 0:3.44.0-8.el7_7
nss-sysinit.x86_64 0:3.44.0-7.el7_7
nss-tools.x86_64 0:3.44.0-7.el7_7
nss-util.x86_64 0:3.44.0-4.el7_7
sqlite.x86_64 0:3.7.17-8.el7_7.1
systemd.x86_64 0:219-67.el7_7.3
systemd-libs.x86_64 0:219-67.el7_7.3
Complete!
Loaded plugins: ovl, product-id, search-disabled-repos
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-39.el7 will be installed
--> Processing Dependency: cpp = 4.8.5-39.el7 for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: libgomp = 4.8.5-39.el7 for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: libgomp.so.1()(64bit) for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-39.el7.x86_64
---> Package gcc-c++.x86_64 0:4.8.5-39.el7 will be installed
--> Processing Dependency: libstdc++-devel = 4.8.5-39.el7 for package: gcc-c++-4.8.5-39.el7.x86_64
---> Package make.x86_64 1:3.82-24.el7 will be installed
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-39.el7 will be installed
---> Package glibc-devel.x86_64 0:2.17-292.el7 will be installed
--> Processing Dependency: glibc-headers = 2.17-292.el7 for package: glibc-devel-2.17-292.el7.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-292.el7.x86_64
---> Package libgomp.x86_64 0:4.8.5-39.el7 will be installed
---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
---> Package libstdc++-devel.x86_64 0:4.8.5-39.el7 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.17-292.el7 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-292.el7.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-292.el7.x86_64
--> Running transaction check
---> Package kernel-headers.x86_64 0:3.10.0-1062.12.1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
gcc x86_64 4.8.5-39.el7 ubi-7 16 M
gcc-c++ x86_64 4.8.5-39.el7 ubi-7 7.2 M
make x86_64 1:3.82-24.el7 ubi-7 421 k
Installing for dependencies:
cpp x86_64 4.8.5-39.el7 ubi-7 6.0 M
glibc-devel x86_64 2.17-292.el7 ubi-7 1.1 M
glibc-headers x86_64 2.17-292.el7 ubi-7 687 k
kernel-headers x86_64 3.10.0-1062.12.1.el7 ubi-7 8.7 M
libgomp x86_64 4.8.5-39.el7 ubi-7 158 k
libmpc x86_64 1.0.1-3.el7 ubi-7 51 k
libstdc++-devel x86_64 4.8.5-39.el7 ubi-7 1.5 M
mpfr x86_64 3.1.1-4.el7 ubi-7 203 k
Transaction Summary
================================================================================
Install 3 Packages (+8 Dependent packages)
Total download size: 42 M
Installed size: 86 M
Downloading packages:
--------------------------------------------------------------------------------
Total 778 kB/s | 42 MB 00:55
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : mpfr-3.1.1-4.el7.x86_64 1/11
Installing : libmpc-1.0.1-3.el7.x86_64 2/11
Installing : cpp-4.8.5-39.el7.x86_64 3/11
Installing : kernel-headers-3.10.0-1062.12.1.el7.x86_64 4/11
Installing : glibc-headers-2.17-292.el7.x86_64 5/11
Installing : glibc-devel-2.17-292.el7.x86_64 6/11
Installing : libstdc++-devel-4.8.5-39.el7.x86_64 7/11
Installing : libgomp-4.8.5-39.el7.x86_64 8/11
Installing : gcc-4.8.5-39.el7.x86_64 9/11
Installing : gcc-c++-4.8.5-39.el7.x86_64 10/11
Installing : 1:make-3.82-24.el7.x86_64 11/11
Verifying : glibc-devel-2.17-292.el7.x86_64 1/11
Verifying : gcc-c++-4.8.5-39.el7.x86_64 2/11
Verifying : 1:make-3.82-24.el7.x86_64 3/11
Verifying : mpfr-3.1.1-4.el7.x86_64 4/11
Verifying : libgomp-4.8.5-39.el7.x86_64 5/11
Verifying : libmpc-1.0.1-3.el7.x86_64 6/11
Verifying : cpp-4.8.5-39.el7.x86_64 7/11
Verifying : gcc-4.8.5-39.el7.x86_64 8/11
Verifying : libstdc++-devel-4.8.5-39.el7.x86_64 9/11
Verifying : kernel-headers-3.10.0-1062.12.1.el7.x86_64 10/11
Verifying : glibc-headers-2.17-292.el7.x86_64 11/11
Installed:
gcc.x86_64 0:4.8.5-39.el7 gcc-c++.x86_64 0:4.8.5-39.el7
make.x86_64 1:3.82-24.el7
Dependency Installed:
cpp.x86_64 0:4.8.5-39.el7
glibc-devel.x86_64 0:2.17-292.el7
glibc-headers.x86_64 0:2.17-292.el7
kernel-headers.x86_64 0:3.10.0-1062.12.1.el7
libgomp.x86_64 0:4.8.5-39.el7
libmpc.x86_64 0:1.0.1-3.el7
libstdc++-devel.x86_64 0:4.8.5-39.el7
mpfr.x86_64 0:3.1.1-4.el7
Complete!
Loaded plugins: ovl, product-id, search-disabled-repos
Cleaning repos: ubi-7 ubi-7-rhah ubi-7-server-devtools-rpms
: ubi-7-server-extras-rpms ubi-7-server-optional-rpms
: ubi-server-rhscl-7-rpms
INFO[0255] Taking snapshot of full filesystem...
$ docker run --rm --entrypoint "" -v /host/path/to/dockerfile/directory/kaniko/20200207-001/build2:/workspace gcr.io/kaniko-project/executor:debug-1039-fix-test /kaniko/executor --context /workspace --dockerfile /workspace/Dockerfile.debug-1039-fix-test --no-push
INFO[0000] Resolved base name index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-1039-fix-test to index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-1039-fix-test
INFO[0000] Resolved base name index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-1039-fix-test to index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-1039-fix-test
INFO[0000] Retrieving image manifest index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-1039-fix-test
INFO[0004] Retrieving image manifest index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-1039-fix-test
INFO[0008] Built cross stage deps: map[]
INFO[0008] Retrieving image manifest index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-1039-fix-test
INFO[0009] Retrieving image manifest index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-1039-fix-test
INFO[0011] Unpacking rootfs as cmd RUN echo test requires it.
INFO[0178] Taking snapshot of full filesystem...
INFO[0179] RUN echo test
INFO[0179] cmd: /bin/sh
INFO[0179] args: [-c echo test]
test
INFO[0179] Taking snapshot of full filesystem...
INFO[0180] Skipping push to container registry due to --no-push flag Dockerfile.debug-1039-fix-test FROM index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-1039-fix-test
RUN echo test
|
I have tested this image on my side too and it fix my similar issue. |
I just started encountering this issue this morning. |
I'm getting the same error even with |
I'm getting the same error as well with gcr.io/kaniko-project/executor:debug |
same error here! |
@dinvlad Can you mention your error? |
This is breaking all of our multi-stage builds currently (i.e. not limited to the situation described in #1033). Moreover, switching to |
OK, apparently this issue has to do with caching. If I "break" the cache (either by removing all images from the |
@dinvlad same issue here |
We've committed a change which I hope will fix this. If anyone feels like testing tags |
I have re-run this issue context with the Update: here it is -- $ docker run --rm --entrypoint "" -v /host/path/to/kaniko/config.json:/kaniko/.docker/config.json -v /host/path/to/dockerfile/directory/kaniko/20200207-001/build1:/workspace gcr.io/kaniko-project/executor:debug-a1af057f997316bfb1c4d2d82719d78481a02a79 /kaniko/executor --context /workspace --dockerfile /workspace/Dockerfile --destination index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-a1af057f997316bfb1c4d2d82719d78481a02a79
Unable to find image 'gcr.io/kaniko-project/executor:debug-a1af057f997316bfb1c4d2d82719d78481a02a79' locally
debug-a1af057f997316bfb1c4d2d82719d78481a02a79: Pulling from kaniko-project/executor
d746bf49e551: Pull complete 55bd16948852: Pull complete e6a8536b92d3: Pull complete ce4f88fff860: Pull complete 956cd6dc6b64: Pull complete 56587e5229ac: Pull complete 1ebb4d9355e1: Pull complete Digest: sha256:dd28123388927a87f01c75dc6fddc222fe79273139fa040f8b4fa3045bacf538
Status: Downloaded newer image for gcr.io/kaniko-project/executor:debug-a1af057f997316bfb1c4d2d82719d78481a02a79
INFO[0001] Resolved base name registry.access.redhat.com/ubi7/ubi:7.7-214 to registry.access.redhat.com/ubi7/ubi:7.7-214
INFO[0001] Resolved base name registry.access.redhat.com/ubi7/ubi:7.7-214 to registry.access.redhat.com/ubi7/ubi:7.7-214
INFO[0001] Retrieving image manifest registry.access.redhat.com/ubi7/ubi:7.7-214
INFO[0004] Retrieving image manifest registry.access.redhat.com/ubi7/ubi:7.7-214
INFO[0006] Built cross stage deps: map[]
INFO[0006] Retrieving image manifest registry.access.redhat.com/ubi7/ubi:7.7-214
INFO[0008] Retrieving image manifest registry.access.redhat.com/ubi7/ubi:7.7-214
INFO[0009] Unpacking rootfs as cmd RUN yum --disableplugin=subscription-manager update -y && yum --disableplugin=subscription-manager install -y gcc-4.8.5-39.el7 gcc-c++-4.8.5-39.el7 make-3.82-24.el7 && yum --disableplugin=subscription-manager clean all requires it.
INFO[0025] Taking snapshot of full filesystem...
INFO[0025] Resolving paths
INFO[0027] RUN yum --disableplugin=subscription-manager update -y && yum --disableplugin=subscription-manager install -y gcc-4.8.5-39.el7 gcc-c++-4.8.5-39.el7 make-3.82-24.el7 && yum --disableplugin=subscription-manager clean all
INFO[0027] cmd: /bin/sh
INFO[0027] args: [-c yum --disableplugin=subscription-manager update -y && yum --disableplugin=subscription-manager install -y gcc-4.8.5-39.el7 gcc-c++-4.8.5-39.el7 make-3.82-24.el7 && yum --disableplugin=subscription-manager clean all]
Loaded plugins: ovl, product-id, search-disabled-repos
Resolving Dependencies
--> Running transaction check
---> Package binutils.x86_64 0:2.27-41.base.el7_7.1 will be updated
---> Package binutils.x86_64 0:2.27-41.base.el7_7.2 will be an update
---> Package curl.x86_64 0:7.29.0-54.el7_7.1 will be updated
---> Package curl.x86_64 0:7.29.0-54.el7_7.2 will be an update
---> Package libcurl.x86_64 0:7.29.0-54.el7_7.1 will be updated
---> Package libcurl.x86_64 0:7.29.0-54.el7_7.2 will be an update
---> Package nss.x86_64 0:3.44.0-4.el7 will be updated
---> Package nss.x86_64 0:3.44.0-7.el7_7 will be an update
---> Package nss-softokn.x86_64 0:3.44.0-5.el7 will be updated
---> Package nss-softokn.x86_64 0:3.44.0-8.el7_7 will be an update
---> Package nss-softokn-freebl.x86_64 0:3.44.0-5.el7 will be updated
---> Package nss-softokn-freebl.x86_64 0:3.44.0-8.el7_7 will be an update
---> Package nss-sysinit.x86_64 0:3.44.0-4.el7 will be updated
---> Package nss-sysinit.x86_64 0:3.44.0-7.el7_7 will be an update
---> Package nss-tools.x86_64 0:3.44.0-4.el7 will be updated
---> Package nss-tools.x86_64 0:3.44.0-7.el7_7 will be an update
---> Package nss-util.x86_64 0:3.44.0-3.el7 will be updated
---> Package nss-util.x86_64 0:3.44.0-4.el7_7 will be an update
---> Package sqlite.x86_64 0:3.7.17-8.el7 will be updated
---> Package sqlite.x86_64 0:3.7.17-8.el7_7.1 will be an update
---> Package systemd.x86_64 0:219-67.el7_7.2 will be updated
---> Package systemd.x86_64 0:219-67.el7_7.3 will be an update
---> Package systemd-libs.x86_64 0:219-67.el7_7.2 will be updated
---> Package systemd-libs.x86_64 0:219-67.el7_7.3 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
binutils x86_64 2.27-41.base.el7_7.2 ubi-7 5.9 M
curl x86_64 7.29.0-54.el7_7.2 ubi-7 270 k
libcurl x86_64 7.29.0-54.el7_7.2 ubi-7 223 k
nss x86_64 3.44.0-7.el7_7 ubi-7 854 k
nss-softokn x86_64 3.44.0-8.el7_7 ubi-7 330 k
nss-softokn-freebl x86_64 3.44.0-8.el7_7 ubi-7 224 k
nss-sysinit x86_64 3.44.0-7.el7_7 ubi-7 65 k
nss-tools x86_64 3.44.0-7.el7_7 ubi-7 528 k
nss-util x86_64 3.44.0-4.el7_7 ubi-7 79 k
sqlite x86_64 3.7.17-8.el7_7.1 ubi-7 394 k
systemd x86_64 219-67.el7_7.3 ubi-7 5.1 M
systemd-libs x86_64 219-67.el7_7.3 ubi-7 411 k
Transaction Summary
================================================================================
Upgrade 12 Packages
Total download size: 14 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7Server/ubi-7/packages/curl-7.29.0-54.el7_7.2.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Public key for curl-7.29.0-54.el7_7.2.x86_64.rpm is not installed
--------------------------------------------------------------------------------
Total 967 kB/s | 14 MB 00:15
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Importing GPG key 0xFD431D51:
Userid : "Red Hat, Inc. (release key 2) <[email protected]>"
Fingerprint: 567e 347a d004 4ade 55ba 8a5f 199e 2f91 fd43 1d51
Package : redhat-release-server-7.7-10.el7.x86_64 (@anaconda/7.7)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Importing GPG key 0x2FA658E0:
Userid : "Red Hat, Inc. (auxiliary key) <[email protected]>"
Fingerprint: 43a6 e49c 4a38 f4be 9abf 2a53 4568 9c88 2fa6 58e0
Package : redhat-release-server-7.7-10.el7.x86_64 (@anaconda/7.7)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : nss-util-3.44.0-4.el7_7.x86_64 1/24
Updating : nss-softokn-freebl-3.44.0-8.el7_7.x86_64 2/24
Updating : systemd-libs-219-67.el7_7.3.x86_64 3/24
Updating : sqlite-3.7.17-8.el7_7.1.x86_64 4/24
Updating : nss-softokn-3.44.0-8.el7_7.x86_64 5/24
Updating : nss-sysinit-3.44.0-7.el7_7.x86_64 6/24
Updating : nss-3.44.0-7.el7_7.x86_64 7/24
Updating : libcurl-7.29.0-54.el7_7.2.x86_64 8/24
Updating : curl-7.29.0-54.el7_7.2.x86_64 9/24
Updating : systemd-219-67.el7_7.3.x86_64 10/24
Failed to get D-Bus connection: Operation not permitted
Updating : nss-tools-3.44.0-7.el7_7.x86_64 11/24
Updating : binutils-2.27-41.base.el7_7.2.x86_64 12/24
install-info: No such file or directory for /usr/share/info/as.info.gz
install-info: No such file or directory for /usr/share/info/binutils.info.gz
install-info: No such file or directory for /usr/share/info/gprof.info.gz
install-info: No such file or directory for /usr/share/info/ld.info.gz
install-info: No such file or directory for /usr/share/info/standards.info.gz
Cleanup : nss-tools-3.44.0-4.el7.x86_64 13/24
Cleanup : curl-7.29.0-54.el7_7.1.x86_64 14/24
Cleanup : systemd-219-67.el7_7.2.x86_64 15/24
Cleanup : libcurl-7.29.0-54.el7_7.1.x86_64 16/24
Cleanup : nss-sysinit-3.44.0-4.el7.x86_64 17/24
Cleanup : nss-3.44.0-4.el7.x86_64 18/24
Cleanup : nss-softokn-3.44.0-5.el7.x86_64 19/24
Cleanup : nss-softokn-freebl-3.44.0-5.el7.x86_64 20/24
Cleanup : nss-util-3.44.0-3.el7.x86_64 21/24
Cleanup : sqlite-3.7.17-8.el7.x86_64 22/24
Cleanup : systemd-libs-219-67.el7_7.2.x86_64 23/24
Cleanup : binutils-2.27-41.base.el7_7.1.x86_64 24/24
Verifying : binutils-2.27-41.base.el7_7.2.x86_64 1/24
Verifying : nss-tools-3.44.0-7.el7_7.x86_64 2/24
Verifying : nss-3.44.0-7.el7_7.x86_64 3/24
Verifying : sqlite-3.7.17-8.el7_7.1.x86_64 4/24
Verifying : systemd-libs-219-67.el7_7.3.x86_64 5/24
Verifying : nss-sysinit-3.44.0-7.el7_7.x86_64 6/24
Verifying : curl-7.29.0-54.el7_7.2.x86_64 7/24
Verifying : systemd-219-67.el7_7.3.x86_64 8/24
Verifying : libcurl-7.29.0-54.el7_7.2.x86_64 9/24
Verifying : nss-util-3.44.0-4.el7_7.x86_64 10/24
Verifying : nss-softokn-freebl-3.44.0-8.el7_7.x86_64 11/24
Verifying : nss-softokn-3.44.0-8.el7_7.x86_64 12/24
Verifying : nss-tools-3.44.0-4.el7.x86_64 13/24
Verifying : systemd-libs-219-67.el7_7.2.x86_64 14/24
Verifying : systemd-219-67.el7_7.2.x86_64 15/24
Verifying : nss-util-3.44.0-3.el7.x86_64 16/24
Verifying : curl-7.29.0-54.el7_7.1.x86_64 17/24
Verifying : libcurl-7.29.0-54.el7_7.1.x86_64 18/24
Verifying : nss-sysinit-3.44.0-4.el7.x86_64 19/24
Verifying : binutils-2.27-41.base.el7_7.1.x86_64 20/24
Verifying : nss-softokn-freebl-3.44.0-5.el7.x86_64 21/24
Verifying : nss-3.44.0-4.el7.x86_64 22/24
Verifying : nss-softokn-3.44.0-5.el7.x86_64 23/24
Verifying : sqlite-3.7.17-8.el7.x86_64 24/24
Updated:
binutils.x86_64 0:2.27-41.base.el7_7.2
curl.x86_64 0:7.29.0-54.el7_7.2
libcurl.x86_64 0:7.29.0-54.el7_7.2
nss.x86_64 0:3.44.0-7.el7_7
nss-softokn.x86_64 0:3.44.0-8.el7_7
nss-softokn-freebl.x86_64 0:3.44.0-8.el7_7
nss-sysinit.x86_64 0:3.44.0-7.el7_7
nss-tools.x86_64 0:3.44.0-7.el7_7
nss-util.x86_64 0:3.44.0-4.el7_7
sqlite.x86_64 0:3.7.17-8.el7_7.1
systemd.x86_64 0:219-67.el7_7.3
systemd-libs.x86_64 0:219-67.el7_7.3
Complete!
Loaded plugins: ovl, product-id, search-disabled-repos
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-39.el7 will be installed
--> Processing Dependency: cpp = 4.8.5-39.el7 for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: libgomp = 4.8.5-39.el7 for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: libgomp.so.1()(64bit) for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-39.el7.x86_64
---> Package gcc-c++.x86_64 0:4.8.5-39.el7 will be installed
--> Processing Dependency: libstdc++-devel = 4.8.5-39.el7 for package: gcc-c++-4.8.5-39.el7.x86_64
---> Package make.x86_64 1:3.82-24.el7 will be installed
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-39.el7 will be installed
---> Package glibc-devel.x86_64 0:2.17-292.el7 will be installed
--> Processing Dependency: glibc-headers = 2.17-292.el7 for package: glibc-devel-2.17-292.el7.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-292.el7.x86_64
---> Package libgomp.x86_64 0:4.8.5-39.el7 will be installed
---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
---> Package libstdc++-devel.x86_64 0:4.8.5-39.el7 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.17-292.el7 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-292.el7.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-292.el7.x86_64
--> Running transaction check
---> Package kernel-headers.x86_64 0:3.10.0-1062.12.1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
gcc x86_64 4.8.5-39.el7 ubi-7 16 M
gcc-c++ x86_64 4.8.5-39.el7 ubi-7 7.2 M
make x86_64 1:3.82-24.el7 ubi-7 421 k
Installing for dependencies:
cpp x86_64 4.8.5-39.el7 ubi-7 6.0 M
glibc-devel x86_64 2.17-292.el7 ubi-7 1.1 M
glibc-headers x86_64 2.17-292.el7 ubi-7 687 k
kernel-headers x86_64 3.10.0-1062.12.1.el7 ubi-7 8.7 M
libgomp x86_64 4.8.5-39.el7 ubi-7 158 k
libmpc x86_64 1.0.1-3.el7 ubi-7 51 k
libstdc++-devel x86_64 4.8.5-39.el7 ubi-7 1.5 M
mpfr x86_64 3.1.1-4.el7 ubi-7 203 k
Transaction Summary
================================================================================
Install 3 Packages (+8 Dependent packages)
Total download size: 42 M
Installed size: 86 M
Downloading packages:
--------------------------------------------------------------------------------
Total 6.8 MB/s | 42 MB 00:06
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : mpfr-3.1.1-4.el7.x86_64 1/11
Installing : libmpc-1.0.1-3.el7.x86_64 2/11
Installing : cpp-4.8.5-39.el7.x86_64 3/11
Installing : kernel-headers-3.10.0-1062.12.1.el7.x86_64 4/11
Installing : glibc-headers-2.17-292.el7.x86_64 5/11
Installing : glibc-devel-2.17-292.el7.x86_64 6/11
Installing : libstdc++-devel-4.8.5-39.el7.x86_64 7/11
Installing : libgomp-4.8.5-39.el7.x86_64 8/11
Installing : gcc-4.8.5-39.el7.x86_64 9/11
Installing : gcc-c++-4.8.5-39.el7.x86_64 10/11
Installing : 1:make-3.82-24.el7.x86_64 11/11
Verifying : glibc-devel-2.17-292.el7.x86_64 1/11
Verifying : gcc-c++-4.8.5-39.el7.x86_64 2/11
Verifying : 1:make-3.82-24.el7.x86_64 3/11
Verifying : mpfr-3.1.1-4.el7.x86_64 4/11
Verifying : libgomp-4.8.5-39.el7.x86_64 5/11
Verifying : libmpc-1.0.1-3.el7.x86_64 6/11
Verifying : cpp-4.8.5-39.el7.x86_64 7/11
Verifying : gcc-4.8.5-39.el7.x86_64 8/11
Verifying : libstdc++-devel-4.8.5-39.el7.x86_64 9/11
Verifying : kernel-headers-3.10.0-1062.12.1.el7.x86_64 10/11
Verifying : glibc-headers-2.17-292.el7.x86_64 11/11
Installed:
gcc.x86_64 0:4.8.5-39.el7 gcc-c++.x86_64 0:4.8.5-39.el7
make.x86_64 1:3.82-24.el7
Dependency Installed:
cpp.x86_64 0:4.8.5-39.el7
glibc-devel.x86_64 0:2.17-292.el7
glibc-headers.x86_64 0:2.17-292.el7
kernel-headers.x86_64 0:3.10.0-1062.12.1.el7
libgomp.x86_64 0:4.8.5-39.el7
libmpc.x86_64 0:1.0.1-3.el7
libstdc++-devel.x86_64 0:4.8.5-39.el7
mpfr.x86_64 0:3.1.1-4.el7
Complete!
Loaded plugins: ovl, product-id, search-disabled-repos
Cleaning repos: ubi-7 ubi-7-rhah ubi-7-server-devtools-rpms
: ubi-7-server-extras-rpms ubi-7-server-optional-rpms
: ubi-server-rhscl-7-rpms
INFO[0080] Taking snapshot of full filesystem...
INFO[0081] Resolving paths -- $ docker run --rm --entrypoint "" -v /host/path/to/dockerfile/directory/kaniko/20200207-001//build2:/workspace gcr.io/kaniko-project/executor:debug-a1af057f997316bfb1c4d2d82719d78481a02a79 /kaniko/executor --context /workspace --dockerfile /workspace/Dockerfile.debug-a1af057f997316bfb1c4d2d82719d78481a02a79 --no-push
INFO[0000] Resolved base name index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-a1af057f997316bfb1c4d2d82719d78481a02a79 to index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-a1af057f997316bfb1c4d2d82719d78481a02a79
INFO[0000] Resolved base name index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-a1af057f997316bfb1c4d2d82719d78481a02a79 to index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-a1af057f997316bfb1c4d2d82719d78481a02a79
INFO[0000] Retrieving image manifest index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-a1af057f997316bfb1c4d2d82719d78481a02a79
INFO[0001] Retrieving image manifest index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-a1af057f997316bfb1c4d2d82719d78481a02a79
INFO[0003] Built cross stage deps: map[]
INFO[0003] Retrieving image manifest index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-a1af057f997316bfb1c4d2d82719d78481a02a79
INFO[0003] Retrieving image manifest index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-a1af057f997316bfb1c4d2d82719d78481a02a79
INFO[0004] Unpacking rootfs as cmd RUN echo test requires it.
INFO[0023] Taking snapshot of full filesystem...
INFO[0023] Resolving paths
INFO[0024] RUN echo test
INFO[0024] cmd: /bin/sh
INFO[0024] args: [-c echo test]
test
INFO[0024] Taking snapshot of full filesystem...
INFO[0024] Resolving paths
INFO[0025] No files were changed, appending empty layer to config. No layer added to image.
INFO[0025] Skipping push to container registry due to --no-push flag -- FROM index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-a1af057f997316bfb1c4d2d82719d78481a02a79
RUN echo test
|
@tanguydelignieresaccenture that info is great. Thanks for confirming the fix! |
I see this is merged, but I have many Google Cloud Build pipelines using kaniko:latest which are still failing with the same problem..... any ideas why? should I use another tag? Thanks |
That's because the |
This issue also occurred in version |
Just to chime in, using Kaniko for the first time and am hitting a similar issue with invalid images on v0.19.0 |
Actual behavior
A clear and concise description of what the bug is.
An image, based on redhat Universal Based Image 7, installing gcc, gcc-c++ and make with yum package manager, built with kaniko v0.16.0 is usable as a FROM in another kaniko build and allows to successfully build a new sub image.
An image, based on redhat Universal Based Image 7, installing gcc, gcc-c++ and make with yum package manager, built with kaniko v0.17.1 is usable as a FROM in another kaniko build but does not allows to successfully build a new sub image and throws the following error:
error building image: error building stage: failed to get filesystem from image: removing whiteout .wh.dev: unlinkat //dev/pts/ptmx: operation not permitted
Expected behavior
A clear and concise description of what you expected to happen.
An image, based on redhat Universal Based Image 7, installing gcc, gcc-c++ and make with yum package manager, built with kaniko v0.17.1 is usable as a FROM in another kaniko build and allows to successfully build a new sub image.
To Reproduce
Steps to reproduce the behavior:
docker run --rm --entrypoint "" -v /host/path/to/kaniko/config.json:/kaniko/.docker/config.json -v /host/path/to/dockerfile/directory/kaniko/20200207-001/build1:/workspace gcr.io/kaniko-project/executor:debug-v0.16.0 /kaniko/executor --context /workspace --dockerfile /workspace/Dockerfile --destination index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-v0.16.0
output:
docker run --rm --entrypoint "" -v /host/path/to/kaniko/config.json:/kaniko/.docker/config.json -v /host/path/to/dockerfile/directory/kaniko/20200207-001/build1:/workspace gcr.io/kaniko-project/executor:debug-v0.17.1 /kaniko/executor --context /workspace --dockerfile /workspace/Dockerfile --destination index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-v0.17.1
output:
docker run --rm --entrypoint "" -v /host/path/to/dockerfile/directory/kaniko/20200207-001/build2:/workspace gcr.io/kaniko-project/executor:debug-v0.17.1 /kaniko/executor --context /workspace --dockerfile /workspace/Dockerfile.debug-v0.16.0 --no-push
output:
docker run --rm --entrypoint "" -v /host/path/to/dockerfile/directory/kaniko/20200207-001/build2:/workspace gcr.io/kaniko-project/executor:debug-v0.17.1 /kaniko/executor --context /workspace --dockerfile /workspace/Dockerfile.debug-v0.17.1 --no-push
output:
Additional Information
Please provide either the Dockerfile you're trying to build or one that can reproduce this error.
Dockerfile "build1"
Dockerfile.debug-v0.16.0 "build2"
Dockerfile.debug-v0.17.1 "build2"
Please provide or clearly describe any files needed to build the Dockerfile (ADD/COPY commands)
No specific files
gcr.io/kaniko-project/executor:debug-v0.16.0
gcr.io/kaniko-project/executor:debug-v0.17.1
Please note:
That "Build1" build with kaniko v0.16.0 has several
Adding whiteout
not present in build with kaniko v0.17.1"Build1"
images index.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-v0.16.0
andindex.docker.io/tanguydelignieres/kaniko_bugs_20200207-001_build1:debug-v0.17.1
have been pushed to my dockerhub if you need them.I can't tell if this issue is related to error building image: error building stage GCC #763, you may have a check too.
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: