Bug 1783215

Summary: The 'heat_template_version' in RHOSP15 is still 'Rocky'
Product: Red Hat OpenStack Reporter: Sam Wan <Sam.Wan>
Component: openstack-tripleo-heat-templatesAssignee: Alex Schultz <aschultz>
Status: CLOSED NOTABUG QA Contact: Sasha Smolyak <ssmolyak>
Severity: low Docs Contact:
Priority: low    
Version: 15.0 (Stein)CC: apevec, aschultz, lhh, mburns
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
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: 2019-12-13 19:27:43 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 Sam Wan 2019-12-13 10:35:26 UTC
Description of problem:

The heat-templates in RHOSP15 repo still have 'heat_template_version: rocky'.
And this can cause confusion to customers.

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

How reproducible:


Steps to Reproduce:
1. rpm -ql openstack-tripleo-heat-templates-10.6.2-0.20191113030444.fc5ca30.el8ost.noarch

2. grep -r 'heat_template_version' /usr/share/openstack-tripleo-heat-templates/*

3. 


Actual results:
all ''heat_template_version:' are 'rocky' 

Expected results:
'heat_template_version:' should be 'stein' 

Additional info:

Comment 1 Alex Schultz 2019-12-13 16:09:40 UTC
The heat template version is used to validate the contents by heat and not related to the version of the underlying openstack.  The version just needs to ensure that the defined version contains whatever functions may be used in the template itself.  There haven't been any additional features added so there hasn't been a need to update the version in the files. 

https://docs.openstack.org/heat/latest/template_guide/hot_spec.html#heat-template-version

Comment 2 Alex Schultz 2019-12-13 19:27:43 UTC
So in looking further into this, rocky is the last version defined. https://github.com/openstack/heat/blob/master/setup.cfg#L196

This won't be updated unless a new template version is released.  If you change this to any of the newer names, you get:

InvalidTemplateVersion: The template version is invalid: "heat_template_version: ussuri". "heat_template_version" should be one of: 2013-05-23, 2014-10-16, 2015-04-30, 2015-10-15, 2016-04-08, 2016-10-14, 2017-02-24, 2017-09-01, 2018-03-02, 2018-08-31, newton, ocata, pike, queens, rocky

Comment 3 Sam Wan 2019-12-16 00:30:00 UTC
Thanks for explanation.