Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1744498

Summary: Add version information to local storage related tools
Product: OpenShift Container Platform Reporter: Qin Ping <piqin>
Component: StorageAssignee: Hemant Kumar <hekumar>
Status: CLOSED ERRATA QA Contact: Liang Xia <lxia>
Severity: low Docs Contact:
Priority: low    
Version: 4.2.0CC: aos-bugs, aos-storage-staff
Target Milestone: ---   
Target Release: 4.4.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: 2020-05-04 11:13:08 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 Qin Ping 2019-08-22 09:56:28 UTC
Description of problem:
Add version information to local storage related tools to help debug

Version-Release number of selected component (if applicable):
quay.io/openshift-release-dev/ocp-v4.0-art-dev:v4.2.0-201908181300-ose-local-storage-operator
quay.io/openshift-release-dev/ocp-v4.0-art-dev:v4.2.0-201908181300-ose-local-storage-diskmaker
quay.io/openshift-release-dev/ocp-v4.0-art-dev:v4.2.0-201908181300-ose-local-storage-static-provisioner

How reproducible:
100%

Steps to Reproduce:
1. Installed local storage operator in OCP
2. Created localvolume instance to deploy local storage provider
3. Check version information

Actual results:
Ran the following cmd can not get the version information:
$ oc logs deployment/local-storage-operator
$ oc logs ds/local-disks-local-diskmaker
$ oc logs ds/local-disks-local-provisioner
$ oc exec local-storage-operator-844986dc88-jph7j -- rpm -qa|grep local
$ oc exec local-disks-local-diskmaker-47skm -- rpm -qa|grep local
$ oc exec local-disks-local-provisioner-5vt7t -- rpm -qa|grep local

So, we only can use the image tag to describe the version information.

Expected results:
We can have some version information to describe the code information to help debug.

Master Log:

Node Log (of failed PODs):

PV Dump:

PVC Dump:

StorageClass Dump (if StorageClass used by PV/PVC):

Additional info:

Comment 2 Liang Xia 2020-01-09 03:46:06 UTC
Tested with local-storage-operator.4.4.0-202001081023, no version info for local-storage-operator.

$ oc logs deployment.apps/local-storage-operator
I0109 03:38:28.048359       1 main.go:18] Go Version: go1.13.4
I0109 03:38:28.048485       1 main.go:19] Go OS/Arch: linux/amd64
I0109 03:38:28.048493       1 main.go:20] operator-sdk Version: 0.0.7
time="2020-01-09T03:38:28Z" level=info msg="Metrics service local-storage-operator created"
I0109 03:38:28.220681       1 main.go:36] Watching local.storage.openshift.io/v1, LocalVolume
I0109 03:38:28.220690       1 main.go:41] Watching local.storage.openshift.io/v1, LocalVolume, local-storage, 180000000000

Comment 6 Liang Xia 2020-01-15 05:56:37 UTC
$ oc logs deployment.apps/local-storage-operator
I0115 05:52:53.977425       1 main.go:18] Go Version: go1.13.4
I0115 05:52:53.977764       1 main.go:19] Go OS/Arch: linux/amd64
I0115 05:52:53.977771       1 main.go:20] operator-sdk Version: 0.0.7
I0115 05:52:53.977776       1 main.go:21] local-storage-operator Version: v4.4.0-202001100815-0-gac925a6-dirty
time="2020-01-15T05:52:54Z" level=info msg="Metrics service local-storage-operator created"
I0115 05:52:54.171592       1 main.go:41] Watching local.storage.openshift.io/v1, LocalVolume
I0115 05:52:54.171602       1 main.go:46] Watching local.storage.openshift.io/v1, LocalVolume, local-storage, 180000000000

Comment 8 errata-xmlrpc 2020-05-04 11:13:08 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, 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/RHBA-2020:0581