[Devops] Need to add UPGRADE_FUEL_TO export to Upgrade jobs

Bug #1381023 reported by Andrey Sledzinskiy
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Dennis Dmitriev

Bug Description

We need to add export UPGRADE_FUEL_TO= to all our upgrade system tests jobs

Tags: devops jenkins
Changed in fuel:
status: New → Confirmed
Revision history for this message
Igor Shishkin (teran) wrote :

I'd prefer we add it as a job parameter but hardcoded value with export.

tags: added: jenkins
Revision history for this message
Dennis Dmitriev (ddmitriev) wrote :

There are three ways how to get the version:

1) For each job, extract the product version from filename of ISO or UPGRADE_TARBALL , as it was done in the bug https://bugs.launchpad.net/fuel/+bug/1382550 for variable UPGRADE_FUEL_TO. It is an easy but not good way because it depends on filename structure that may be changed.

2) The PRODUCT_VERSION for the current branch can be taken from the file https://github.com/stackforge/fuel-main/blob/master/config.mk , as it is done in the job http://jenkins-product.srt.mirantis.net:8080/job/fuel_5_1_iso/ . But the current 'fuel-main' branch never guess which ISO version passed to the test, which may lead to a mismatch.

3) In the parent jobs of system tests (http://jenkins-product.srt.mirantis.net:8080/job/*.system_test.timer ), extract from artifacts not only magnet links, but also 'release' number that can be extracted from ./artifact/version.yaml.txt file and easily exported as environment variables for all downstream jobs.

I beleive the third method is the most appropriate way to get the PRODUCT_VERSION of the ISO passing to the system tests.

Changed in fuel:
assignee: Fuel DevOps (fuel-devops) → Dennis Dmitriev (ddmitriev)
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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