It is needed train related upgrade jobs and fixes
the tests for the same.
It also rename the old-current-tripleo to previous-current-tripleo
in test name.
https://tree.taiga.io/project/tripleo-ci-board/task/1299
Change-Id: I9c4b6743547327457bbe1762605a48d59f4fa902
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Makes output easier to read by avoiding errors related to missing
folders.
Keep in mind that log collection happens even for failed builds so
missing files are to be expected and not a reason to create warnings.
Collection should create warnings only if it encounters something
unexpected.
Partial-Bug: #1787912
Change-Id: I5c40e531c06389e9707c0db33d6aaa5baea0ddea
Follows the same configuration that was used on
tripleo-quickstart-extras and documented use on tripleo-docs.
Change-Id: Iba8a2db92137f9f6ad28f498627eb1b87039d99f
Story: https://tree.taiga.io/project/tripleo-ci-board/task/381
This also add dlrn_hash_newest variable to be able to make proper repo
switching.
The $title is just adding the necessary bits into emit_release to take
standalone_upgrade into account.
The dlrn_hash_newest is a forgotten variable from the initial emit
release. It has been included for standalone upgrade where the
problem first appeared, but will likely be needed for other upgrade
jobs as well when they switch to non specific release file.
Currently we only set dlrn_hash which becomes TRIPLEO_DLRN_REPO which
becomes delorean url. We don't do anything about dlrn_hash_tag_newest
which becomes RDO_DLRN_REPO which becomes delorean-current.
This means that when we are upgrading we get the dlrn_hash_tag_newest
that was defined in the previous run, ie during deployment.
Change-Id: I0e298fc37eb7b3fd0afaa13ab021330b789b2f5e
Closes-Bug: #1795367
Fixes problem where log collection was using config files from
old location after we already switched deployment to use new location.
This was not observed because the file content was the same but
once we attempted to remove the old files we discovered the issue.
Prepares for removal of config files from their old location.
Change-Id: I70aeb3724d6d162aa6d8b00024f3ce1a74dbf79f
Story: https://tree.taiga.io/project/tripleo-ci-board/task/7
It also calculates the releases with the emit releses script for fs047
Depends-On: Ic578de2237f9a43ff4fcd24141802a49a06be59c
Depends-On: https://review.openstack.org/#/c/605989/
Closes-Bug: 1792892
Change-Id: Ic1aea1052a9518999f0f02539459eeef516f9654
Periodic jobs should use 'tripleo-ci-testing' hash as
a target hash, currently 'current-tripleo' was used,
this patch fixes it.
Also added unit tests for the same.
Also allow using promotion-testing-hash-$release in
upgrade job in promotion pipeline.
Closes-Bug: #1787817
Change-Id: I8893c7406fcf1bb3936f5ba2d9dca7d4a3e9e82a
For the first time we are adding an upgrade job to the promotion
pipeline. Since the release in these jobs is
promotion-testing-hash-{release}, we need to add a case to the function
that calculates the previous release of the upgrade.
We'll need to update also the emit_releases_script for this to work with
this featureset.
Change-Id: I89e349b3ff563e5db59173f4751a52783d63f1ac
Since we create the collect logs script only at the end of the playbooks
run, when a job times out, there is no collect_logs.sh script created,
and the post-run playbook doesn't actually run anything.
This change split the function in two parts, the first part creates the
script, and its call is moved to before the playbooks run. The second
part is moved to toci_quickstart directly and runs after the playbooks.
The second part should not be needed anymore with zuulv3 in rdo
provider.
Closes-Bug: #1784417
Change-Id: Iee897f780c93bdf847e188fc033e8be112e12a4f
With dry run, playbooks are not executed.
The env variables, releases script output and playbooks
commands are written out to files for debug.
The review also moves the collect logs lines to a
function for easier organization
Documentation for the dry run option and variable
files is added.
Change-Id: I0bad5ee3150d94115bed018de9488590305a2b80
With dry run, playbooks are not executed.
The env variables, releases script output
and playbooks commands are written out to
files for debug.
The review also moves the collect logs lines
to a function for easier organization.
Documentation for the dry run option and
variable files is added.
Depends-On: I4c8f389978717848e755f12856dd454d605c9137
Change-Id: Ib6ae184a07ba291d719cabb48b51d890b0485a49
The current undercloud upgrade job deploys an undercloud from master so
upgrade was never actually tested. This patch finds out which release we
want to test and provide the right featureset file.
Co-authored-by: Jose Luis Franco <jfrancoa@redhat.com>
Change-Id: I3c9d2396988bd3125740f0054c66e8243e85f437
Featureset047 includes all needed parameters
to run an undercloud upgrade using the
tripleo-upgrade role.
Change toci_gate_test.sh logic to include the
mixed_upgrade environment file *-undercloud-*-overcloud.yml
only when overcloud-deploy is being performed. Otherwise,
it will try to load it for undercloud upgrade too.
Closes-Bug: #1735792
Depends-On: Ib204c89ad88ae4581e556710976325c2b2723039
Change-Id: Iaed38c620f39b66b0b560ae561580dce21ea199b
By setting ffu_overcloud_upgrade in the featureset this change find
the right previous version for ffu and thus the correct release file.
This also refactor all the upgrade/update related function.
This whole section of the ci code is related to this tech-debt.
Related-Bug: #1749978
Change-Id: I962c2e4ad4eb522839deb904e0c67fb6a5d0ead9
Add missing bits to support stable/queens branch in TripleO;
Some adjustments might be done later but this is a first iteration.
Change-Id: I4a369389fbecf6890a75ffaaf695f391cd6b7e2d
Closes-Bug: #1750311
When we run command with "timeout" we need to have spare minutes
to prevent race condition when zuul stops the job before we do it.
Change-Id: I9f5eb7133e205e4f667c7b56f20def4f44d89ced
After https://review.openstack.org/#/c/527844/ is merged
we don't need to save 10 minutes for logs anymore.
Remove this time from timeout command for quickstart running.
Change-Id: If60280ca19a2ed8d4730f605f5ce9114c907f9ec
Due the fact that in the future, we will have several ansible-playbooks
calls, we need to create a function that will calculate the remaining time
for each call. This function gets the START_JOB_TIME and
calculate how much time still has, and execute the command with
/usr/bin/timeout
Change-Id: Ib4766ea144baaaf1b47899c4923adf40a3be4582
Update the code to test upgrades between stable/ocata and stable/pike,
and stable/pike to master (queens).
Change-Id: I61afed141d611b4b6b5ad40b3d48e9ea2346d1e2
Adding settings to make tripleo-ci OVB jobs work in RDO Cloud.
- add and conditionally load infrastructure servers IP settings
- disable network sharing since we are not admins in RDO Cloud
- modify flavor settings to match RDO Cloud requirements
- add additional ovb environment file for RDO Cloud settings
Change-Id: I032d6e3558a44d4f90a0de092dec980e95d1f33e
Instead of looking at the featureset name directly, we inspect the
featureset yaml file for the value of `mixed_upgrade` option, and if
it's set to true, we set UPGRADE_RELEASE to one release older than
STABLE_RELEASE.
Change-Id: Ib4e74351745a8a9b4917e100e2363cb294dd9f20