Description of problem: Builds are failing after upgrading the cluster with builder image [jboss-webserver-5/jws56-openjdk8-openshift-rhel8] while unpacking the artifacts.tar with ADD command in Dockerfile.[Mentioned error at last of description] - Error starts to occur after update of Openshift Version from 4.7 to 4.8 previously the same was working fine. Version-Release number of selected component (if applicable): OpenShift Version: v4.8.25 Builder Image Jws-image: jboss-webserver-5/jws56-openjdk8-openshift-rhel8 How reproducible: - With using jboss-webserver-5/jws56-openjdk8-openshift-rhel8 try with ADD argument with unpacking the artifacts.tar it failed to do so. Actual results: - Build should be completed successfully Expected results: - Build failing ~~~ Receiving source from STDIN as file artifacts.tar Replaced Dockerfile FROM image openshift/jws56-openjdk8-openshift-rhel8:latest Caching blobs under "/var/cache/blobs". Pulling image registry.redhat.io/jboss-webserver-5/jws56-openjdk8-openshift-rhel8@sha256:4e5ab00fbad56305c4773ca684c49894766f14080a65a2b5478ccddbef0231e8 ... Getting image source signatures Copying blob sha256:eac1b95df832dc9f172fd1f07e7cb50c1929b118a4249ddd02c6318a677b506a Copying blob sha256:644782e078aa20e82428c467fc2f5e8370f47f55b0a75a0b28c03eca61b898bb Copying blob sha256:47aa3ed2034c4f27622b989b26c06087de17067268a19a1b3642a7e2686cd1a3 Copying blob sha256:6f97bd03eb613e9f953593d8f04938c04d0dfa607c5c08a3ff40df2d063dbd34 Copying config sha256:7acf91829d520c33fc144677109f6c25f7cb10b9700dc7ecd9def1f5dc95f501 Writing manifest to image destination Storing signatures Adding transient rw bind mount for /run/secrets/rhsm STEP 1: FROM registry.redhat.io/jboss-webserver-5/jws56-openjdk8-openshift-rhel8@sha256:4e5ab00fbad56305c4773ca684c49894766f14080a65a2b5478ccddbef0231e8 STEP 2: USER root --> a5d1f93422b STEP 3: ADD artifacts.tar $JWS_HOME/ error: build error: error building at STEP "ADD artifacts.tar $JWS_HOME/": error adding sources [/tmp/build/inputs/artifacts.tar]: 3 errors occurred: * error reading "/tmp/build/inputs/artifacts.tar": error during bulk transfer for copier.request{Request:"GET", Root:"/", preservedRoot:"/tmp/build/inputs", rootPrefix:"/tmp/build/inputs", Directory:"/", preservedDirectory:"/tmp/build/inputs", Globs:[]string{"/artifacts.tar"}, preservedGlobs:[]string{"/tmp/build/inputs/artifacts.tar"}, StatOptions:copier.StatOptions{CheckForArchives:true, Excludes:[]string(nil)}, GetOptions:copier.GetOptions{UIDMap:[]idtools.IDMap(nil), GIDMap:[]idtools.IDMap(nil), Excludes:[]string(nil), ExpandArchives:true, ChownDirs:(*idtools.IDPair)(0xc0007f9340), ChmodDirs:(*fs.FileMode)(nil), ChownFiles:(*idtools.IDPair)(0xc0007f9350), ChmodFiles:(*fs.FileMode)(nil), StripSetuidBit:true, StripSetgidBit:true, StripStickyBit:false, StripXattrs:false, KeepDirectoryNames:false, Rename:map[string]string(nil), NoDerefSymlinks:false, IgnoreUnreadable:false}, PutOptions:copier.PutOptions{UIDMap:[]idtools.IDMap(nil), GIDMap:[]idtools.IDMap(nil), DefaultDirOwner:(*idtools.IDPair)(nil), DefaultDirMode:(*fs.FileMode)(nil), ChownDirs:(*idtools.IDPair)(nil), ChmodDirs:(*fs.FileMode)(nil), ChownFiles:(*idtools.IDPair)(nil), ChmodFiles:(*fs.FileMode)(nil), StripXattrs:false, IgnoreXattrErrors:false, IgnoreDevices:false, NoOverwriteDirNonDir:false, Rename:map[string]string(nil)}, MkdirOptions:copier.MkdirOptions{UIDMap:[]idtools.IDMap(nil), GIDMap:[]idtools.IDMap(nil), ChownNew:(*idtools.IDPair)(nil), ChmodNew:(*fs.FileMode)(nil)}}: copier: get: "/artifacts.tar": error extracting content from archive /artifacts.tar: webapps/nes-soa-misv.war: write bulk-writer: broken pipe * error closing "/tmp/build/inputs/artifacts.tar": error reading tar archive: error copying content for "webapps/nes-soa-misv.war": io: read/write on closed pipe * error storing "/tmp/build/inputs/artifacts.tar": error during bulk transfer for copier.request{Request:"PUT", Root:"/", preservedRoot:"/var/lib/containers/storage/overlay/6808c1ff0c0ab1f32715cbcec213048cdbd76c8b836f267c3e956d8e4eee3287/merged/opt/jws-5.6/tomcat", rootPrefix:"/var/lib/containers/storage/overlay/6808c1ff0c0ab1f32715cbcec213048cdbd76c8b836f267c3e956d8e4eee3287/merged/opt/jws-5.6/tomcat", Directory:"/", preservedDirectory:"/var/lib/containers/storage/overlay/6808c1ff0c0ab1f32715cbcec213048cdbd76c8b836f267c3e956d8e4eee3287/merged/opt/jws-5.6/tomcat", Globs:[]string{}, preservedGlobs:[]string{}, StatOptions:copier.StatOptions{CheckForArchives:false, Excludes:[]string(nil)}, GetOptions:copier.GetOptions{UIDMap:[]idtools.IDMap(nil), GIDMap:[]idtools.IDMap(nil), Excludes:[]string(nil), ExpandArchives:false, ChownDirs:(*idtools.IDPair)(nil), ChmodDirs:(*fs.FileMode)(nil), ChownFiles:(*idtools.IDPair)(nil), ChmodFiles:(*fs.FileMode)(nil), StripSetuidBit:false, StripSetgidBit:false, StripStickyBit:false, StripXattrs:false, KeepDirectoryNames:false, Rename:map[string]string(nil), NoDerefSymlinks:false, IgnoreUnreadable:false}, PutOptions:copier.PutOptions{UIDMap:[]idtools.IDMap{}, GIDMap:[]idtools.IDMap{}, DefaultDirOwner:(*idtools.IDPair)(0xc000561d60), DefaultDirMode:(*fs.FileMode)(nil), ChownDirs:(*idtools.IDPair)(nil), ChmodDirs:(*fs.FileMode)(nil), ChownFiles:(*idtools.IDPair)(nil), ChmodFiles:(*fs.FileMode)(nil), StripXattrs:false, IgnoreXattrErrors:false, IgnoreDevices:false, NoOverwriteDirNonDir:false, Rename:map[string]string(nil)}, MkdirOptions:copier.MkdirOptions{UIDMap:[]idtools.IDMap(nil), GIDMap:[]idtools.IDMap(nil), ChownNew:(*idtools.IDPair)(nil), ChmodNew:(*fs.FileMode)(nil)}}: copier: put: error creating "/webapps": stat /webapps: no such file or directory ~~~
Documented work-around: Replace the `ADD` command in the Dockerfile with a `COPY` command, then add a step which extracts the archive with `tar`.
@prikumar can you please look into this.
verified with 4.10.0-0.nightly-2022-01-26-234447
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:0056
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days