Bug 1110443

Summary: heat build-info returns unknown
Product: Red Hat OpenStack Reporter: Jeff Peeler <jpeeler>
Component: openstack-heatAssignee: Jeff Peeler <jpeeler>
Status: CLOSED ERRATA QA Contact: Ami Jeain <ajeain>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.0 (RHEL 7)CC: ajeain, breeler, sbaker, sdake, shardy, yeylon
Target Milestone: rc   
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-heat-2014.1.1-2.1.el7ost Doc Type: Enhancement
Doc Text:
Previously, Orchestration's revision build-info was returned with the default "unknown", for example "revision": "unknown", which was not very useful. This has been fixed to reflect the RPM version information of the packages produced at build time. For example: "revision": "1.0"
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-24 17:24:28 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 Jeff Peeler 2014-06-17 16:18:16 UTC
[root@525400ea1a66 ~(openstack_admin)]# heat build-info
+----------+-------------------------+
| Property | Value                   |
+----------+-------------------------+
| api      | {                       |
|          |   "revision": "unknown" |
|          | }                       |
| engine   | {                       |
|          |   "revision": "unknown" |
|          | }                       |
+----------+-------------------------+

Version-Release number of selected component (if applicable):
openstack-heat-engine-2014.1-1.4.el7ost.noarch

Looks like settings this in the configuration file during build time will fix it:
#heat_revision=unknown

Comment 5 Steven Hardy 2014-07-17 09:08:13 UTC
Note this is not a bug exactly - the returned data is correct wrt what's specified in the config file, see related upstream bug I just commented on:

https://bugs.launchpad.net/heat/+bug/1343102

It may make sense for us to populate this with version information derived from the packages though, which I guess is the point Jeff was making :)

Comment 7 Ami Jeain 2014-07-21 08:24:14 UTC
verified:

modified heat.conf with revision 1.0:
# heat build-info
+----------+---------------------+
| Property | Value               |
+----------+---------------------+
| api      | {                   |
|          |   "revision": "1.0" |
|          | }                   |
| engine   | {                   |
|          |   "revision": "1.0" |
|          | }                   |
+----------+---------------------+

Comment 9 errata-xmlrpc 2014-07-24 17:24:28 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.

http://rhn.redhat.com/errata/RHBA-2014-0935.html