Bug 1952929
| Summary: | 02912673 | Using oc start-build with '--from-file' sometimes corrupts exactly one byte of a jar file | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | David Caldwell <dcaldwel> |
| Component: | Build | Assignee: | Adam Kaplan <adam.kaplan> |
| Status: | CLOSED EOL | QA Contact: | wewang <wewang> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.5 | CC: | adam.kaplan, aos-bugs, cdaley, nalin, sgehwolf, vnema |
| Target Milestone: | --- | ||
| Target Release: | 4.9.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-08-19 15:34:39 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
David Caldwell
2021-04-23 15:25:36 UTC
The customer has tested using two different oc clients. Versions below: ~~~ $ oc version Client Version: 4.6.0-202104091041.p0-c3dc785 Server Version: 4.6.25 Kubernetes Version: v1.19.0+a5a0987 ~~~ & ~~~ $ oc version Client Version: openshift-clients-4.5.0-202006231303.p0-21-g297a4ac42 Kubernetes Version: v1.19.0+a5a0987 ~~~ Tar version used: ~~~ $ tar --version tar (GNU tar) 1.26 ~~~ According to https://www.gnu.org/software/tar/, version 1.26 was released in 2011, which is over a decade old. Can the client try using a more recent version and see if they have the same results? It appears that the Jenkins agent image contains an old version (1.26 release ~2011) of the tar utility. Is it possible to update the Jenkins agent image with a newer tar version? Would this solve the issue when using 'oc start-build ... --from-file'? @David The Jenkins 4.5 agent image is RHEL 7 based and uses the older tar utility. The Jenkins agent for 4.6 and higher is RHEL 8 based and uses a newer version of tar: ``` $ podman run --authfile=/path/to/pull-secret.json -i -t --rm --entrypoint=/bin/bash registry.redhat.io/openshift4/ose-jenkins-agent-maven:v4.6 bash-4.4$ tar --version tar (GNU tar) 1.30 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. bash-4.4$ cat /etc/redhat-release Red Hat Enterprise Linux release 8.2 (Ootpa) ``` OCP 4.5 images have reached the end of their maintenance support lifecycles - users should update their agent images to use a supported version of OCP. We will not backport any fixes to the 4.5 image per our update support policy [1]. Any fixes related to the newer version of tar will not be backported to the 4.5 image. [1] https://access.redhat.com/support/policy/updates/openshift *** Bug 2011654 has been marked as a duplicate of this bug. *** |