hard coded platform release in ansible

Bug #1855470 reported by Scott Little
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Scott Little

Bug Description

Brief Description
-----------------

The file cgcs-root/stx/ansible-playbooks/playbookconfig/src/playbooks/roles/bootstrap/prepare-env/vars/main.yml contains a hard coded value for the platform release value.

 ...
 supported_release_versions:
   - "19.12"
 ...

This can cause uninstallable loads if the platform release value is changed and a matching change is not sourced in the above file.

Ideally we should only have to change the platform release value in one place and all other files pick up the change at build time.

The single point of change should be the file cgcs-root/stx/utilities/utilities/build-info/release-info.inc. It a bash freindly, and contains ... e.g. ...

 PLATFORM_RELEASE="19.12"

One way to pick this up would be via sed substitution. e.g. file contains ...

 ...
 supported_release_versions:
   - "<<PLATFORM_RELEASE>>"
 ...

and build performs the sed substitution like this ...

 source $MY_REPO/stx/utilities/utilities/build-info/release-info.inc
 cat prototype_file | sed "s/<<PLATFORM_RELEASE>>/${PLATFORM_RELEASE}/" > final_file

Severity
--------
Critical: uninstallable

Steps to Reproduce
------------------
 Change PLATFORM_RELEASE value in cgcs-root/stx/utilities/utilities/build-info/release-info.inc
 build
 intall

Expected Behavior
------------------
install successfully

Actual Behavior
----------------
Install failes on mismatched PLATFORM_RELEASE value

Reproducibility
---------------
100%

System Configuration
--------------------
N/A

Branch/Pull Time/Commit
-----------------------
CENGN build at time stamp 20191203T000000Z

Last Pass
---------
20191202T000000Z

Timestamp/Logs
--------------
20191203T000000Z

Test Activity
-------------
Install

Tags: stx.build
Revision history for this message
Ghada Khalil (gkhalil) wrote :

stx.4.0 / medium priority - this is more of an improvement to make release prep easier

Changed in starlingx:
importance: Undecided → Low
importance: Low → Medium
status: New → Triaged
tags: added: stx.4.0 stx.config
tags: added: stx.build
removed: stx.config
Changed in starlingx:
assignee: nobody → Scott Little (slittle1)
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Lowering the priority - this is a would-be-nice enhancement to the build system, but will not hold up stx.4.0. Until implemented, the release will be updated manually.

This has already been done for stx.4.0:
https://review.opendev.org/#/c/730113/

Changed in starlingx:
importance: Medium → Low
tags: removed: stx.4.0
Scott Little (slittle1)
Changed in starlingx:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.