Bug 1907407

Summary: Buildah version not accessible
Product: OpenShift Container Platform Reporter: Adam Kaplan <adam.kaplan>
Component: BuildAssignee: Adam Kaplan <adam.kaplan>
Status: CLOSED ERRATA QA Contact: wewang <wewang>
Severity: low Docs Contact: Rolfe Dlugy-Hegwer <rdlugyhe>
Priority: unspecified    
Version: 4.7CC: aos-bugs, rdlugyhe
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Enhancement
Doc Text:
[discrete] [id="ocp-4-7-buildah-version"] // https://bugzilla.redhat.com/show_bug.cgi?id=1907407 ==== Print the buildah version to the build log In current version, when the OpenShift Container Platform performs a build and the log level is 5 or higher, it writes the buildah version information to the build log. This information helps Red Hat Engineering reproduce bug reports. Previously, this version information was not available in the build logs.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:43:41 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:

Description Adam Kaplan 2020-12-14 13:08:28 UTC
Description of problem:

Version of buildah cannot be easily identified from the logs.

Version-Release number of selected component (if applicable): 4.7

How reproducible: Always

Steps to Reproduce:
1. Run a build with BUILD_LOGLEVEL=5 or higher

Actual results:

Buildah version cannot be identified in logs

Expected results:

Buildah version packaged by openshift/builder can be identified

Additional info:

Comment 2 wewang 2020-12-15 05:53:54 UTC
The bug already tested in the cluster launched by cluster-bot, and latest nightly build is not include the pr, will do regression test later in daily run, so verify it.

Comment 3 Adam Kaplan 2020-12-15 16:16:23 UTC
Moving this back to ASSIGNED - changes related to this are causing ART builds to fail.

Comment 5 wewang 2020-12-16 06:56:20 UTC
Thanks @Adam, when an accepted payload comes up, will check it.

Comment 6 wewang 2020-12-18 07:06:15 UTC
Verified in version:

1. build logs info
[wewang@wangwen work]$ oc logs -f build/ruby-hello-world-2 |grep buildah
I1218 07:00:30.186628       1 builder.go:420] Powered by buildah v1.16.4
I1218 07:00:31.604327       1 builder.go:447] Powered by buildah v1.16.4
I1218 07:00:32.605616       1 builder.go:373] Powered by buildah v1.16.4

2. $ oc debug pod/ruby-hello-world-1-build
Starting pod/ruby-hello-world-1-build-debug ...
Pod IP:
If you don't see a command prompt, try pressing enter.
sh-4.4# openshift-sti-build version
openshift-sti-build 4.7.0-202012170204.p0-8504b3f
Buildah version v1.16.4
sh-4.4# openshift-docker-build version
openshift-docker-build 4.7.0-202012170204.p0-8504b3f
Buildah versish-4.4# openshift-extract-image-content version
openshift-extract-image-content 4.7.0-202012170204.p0-8504b3f
Buildah version v1.16.4
sh-4.4# openshift-git-clone version
openshift-git-clone 4.7.0-202012170204.p0-8504b3f
Buildah version v1.16.4
sh-4.4# openshift-manage-dockerfile version
openshift-manage-dockerfile 4.7.0-202012170204.p0-8504b3f
Buildah version v1.16.4
on v1.16.4

Comment 11 errata-xmlrpc 2021-02-24 15:43:41 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.7.0 security, bug fix, and enhancement 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.