hard coded platform release in ansible

Bug #1855470 reported by Scott Little on 2019-12-06
This bug affects 1 person
Affects Status Importance Assigned to Milestone
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.

   - "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. ...


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


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

Critical: uninstallable

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

Expected Behavior
install successfully

Actual Behavior
Install failes on mismatched PLATFORM_RELEASE value


System Configuration

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

Last Pass


Test Activity

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)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers