Bug 1323977

Summary: 'imgbase w' won't give informative data about node version
Product: [oVirt] ovirt-node Reporter: Tareq Alayan <talayan>
Component: GeneralAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED CURRENTRELEASE QA Contact: Huijuan Zhao <huzhao>
Severity: high Docs Contact:
Priority: high    
Version: 4.1CC: bugs, cshao, dougsland, rbarry, talayan, ycui
Target Milestone: ovirt-4.1.0-rcKeywords: Reopened
Target Release: ---Flags: rule-engine: ovirt-4.1+
rule-engine: planning_ack+
fdeutsch: devel_ack+
ycui: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-19 14:55:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tareq Alayan 2016-04-05 08:53:07 UTC
Description of problem:

imgbase w won't give informative data about node version

Version-Release number of selected component (if applicable):
[root@automation-nested-4 ~]# imgbase w
[INFO] You are on ovirt-node-ng-007-1.el7+1


How reproducible:
always

Steps to Reproduce:
1. run imgbase w


Actual results:
[INFO] You are on ovirt-node-ng-007-1.el7+1

Expected results:
more informative info about the version of node

Additional info:

Comment 1 Fabian Deutsch 2016-04-05 09:30:41 UTC
Please provide

rpm -q imgbased ovirt-release-host-node

Comment 2 Red Hat Bugzilla Rules Engine 2016-04-05 09:30:44 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 3 Fabian Deutsch 2016-04-06 20:02:25 UTC
We'll be adding another bit of information to retrieve the build version

$ imgbase build --info

Comment 4 Tareq Alayan 2016-04-07 14:23:20 UTC
rpm -q imgbased ovirt-release-host-node 
imgbased-0.5-0.201603300820git5588e4e.el7.centos.noarch
ovirt-release-host-node-007-1.el7.noarch

Comment 5 Sandro Bonazzola 2016-05-02 10:06:14 UTC
Moving from 4.0 alpha to 4.0 beta since 4.0 alpha has been already released and bug is not ON_QA.

Comment 6 Ryan Barry 2016-07-07 12:44:15 UTC
Fabian is out on PTO.

What information are you looking to view, Tariq?

Comment 7 Tareq Alayan 2016-07-18 11:34:16 UTC
rpm -q imgbased ovirt-release-host-node 
imgbased-0.7.2-0.1.el7ev.noarch
package ovirt-release-host-node is not installed

Comment 8 Ryan Barry 2016-07-18 12:03:47 UTC
rpm -q ovirt-node-ng-image-update-placeholder

(After update from yum)

rpm -q ovirt-node-ng-image

Comment 9 Fabian Deutsch 2016-09-10 12:20:26 UTC
Closing this bug

$ imgbase w

Tells you the layer you are on

$ imgbase build --info

Gives you informations about the build, which includes the image version of the current image (usually equal to imgbase w).

The imgbase version can be retrieved with rpm -q imgbased

Comment 10 Tareq Alayan 2016-09-11 08:10:49 UTC
imgbased-0.8.4-1.el7ev.noarch 

still doesn't have this build --info option 
[root@automation-nested-1 ~]# imgbase build --infog 
usage: imgbase [-h] [--version] [--debug] [--experimental] [--stream STREAM]
               {base,layer,w,layout,check,motd,update,rollback} ...
imgbase: error: argument command: invalid choice: 'build' (choose from 'base', 'layer', 'w', 'layout', 'check', 'motd', 'update', 'rollback')


imgbase w
[INFO] You are on rhvh-4.0-0.20160829.0+1

Comment 11 Tareq Alayan 2016-09-11 08:11:51 UTC
imgbase build --info
usage: imgbase [-h] [--version] [--debug] [--experimental] [--stream STREAM]
               {base,layer,w,layout,check,motd,update,rollback} ...
imgbase: error: argument command: invalid choice: 'build' (choose from 'base', 'layer', 'w', 'layout', 'check', 'motd', 'update', 'rollback')

Comment 12 Fabian Deutsch 2016-09-14 09:02:27 UTC
The patch was never included, moving back to NEW

Comment 13 Douglas Schilling Landgraf 2016-11-29 19:14:18 UTC
Tareq, we got a patch merged from Fabian and looks like the output for now is:

# imgbase image-introspect --metadata
{
  "nvr": "ovirt-node-ng-4.1.0-0.20161129.0"
}

Is that what you are looking for?

Fabian, fell free to provide more input here.

Comment 14 Ryan Barry 2017-01-11 17:53:04 UTC
I expect that `imgbase w` should show this, rather than `image-introspect`, probably.

Comment 15 Tareq Alayan 2017-01-19 09:13:57 UTC
well, currently you have the output:
[INFO] You are on rhvh-4.1-0.20170116.0+1

which contains the date of build, i am ok with that.

Comment 16 Douglas Schilling Landgraf 2017-01-19 14:55:28 UTC
(In reply to Tareq Alayan from comment #15)
> well, currently you have the output:
> [INFO] You are on rhvh-4.1-0.20170116.0+1
> 
> which contains the date of build, i am ok with that.

Thanks for your input. I will close the report.

Comment 17 Douglas Schilling Landgraf 2017-01-19 15:07:42 UTC
Just closed as currentrelease as we do provide such format in 4.0 series, i.e:
RHVH-4.0-20161116.0-RHVH-x86_64-dvd1.iso.

Thanks