Bug 2044244 - Builds are failing after upgrading the cluster with builder image [jboss-webserver-5/jws56-openjdk8-openshift-rhel8]
Summary: Builds are failing after upgrading the cluster with builder image [jboss-webs...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build
Version: 4.8
Hardware: All
OS: All
urgent
medium
Target Milestone: ---
: 4.10.0
Assignee: Nalin Dahyabhai
QA Contact: Priti Kumari
URL:
Whiteboard:
Depends On:
Blocks: 2050287
TreeView+ depends on / blocked
 
Reported: 2022-01-24 10:02 UTC by Aditya Soni
Modified: 2023-09-15 01:19 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:41:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift builder pull 281 0 None Merged Bug 2044244: bump(github.com/containers/buildah) to v1.22.4 2022-02-09 15:35:18 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:42:03 UTC

Description Aditya Soni 2022-01-24 10:02:16 UTC
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
~~~

Comment 4 Adam Kaplan 2022-01-24 14:03:34 UTC
Documented work-around: Replace the `ADD` command in the Dockerfile with a `COPY` command, then add a step which extracts the archive with `tar`.

Comment 12 Jitendar Singh 2022-02-23 14:03:51 UTC
@prikumar can you please look into this.

Comment 13 Priti Kumari 2022-02-25 09:08:32 UTC
verified with 4.10.0-0.nightly-2022-01-26-234447

Comment 15 errata-xmlrpc 2022-03-10 16:41:47 UTC
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

Comment 16 Red Hat Bugzilla 2023-09-15 01:19:01 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


Note You need to log in before you can comment on or make changes to this bug.