Commit Graph

24 Commits

Author SHA1 Message Date
Sofer Athlan-Guyot 9e7cf30337 Add content provider using current tag to build containers for minor update
Add content provider job, which builds containers using `current` dlrn
tag on same release branch as regular content-provider job.

Apart from new content provider job, the change adds new variable called
`minor_update`, which enables to consume containers created by new
content provider job in depended multinode-oooq-container-updates job.

minor_update variable is used in featureset068.
The featureset is activated in jobs for wallaby branch and onwards.
Train job uses featureset038 as previously.

Related-Bug: #2015993
Change-Id: I7a7713be0cd15321d5b16f6b8ca85f06d296219f
2023-06-22 15:03:51 +02:00
Pooja Jadhav 062c151332 Fix flake8 failures on tripleo-ci check jobs
This patch fixes flake8 failures which are hitting
tripleo-ci jobs.

Change-Id: I9af17b5bc888e1679adb49bff383ee73c6426ad3
Closes-Bug: #2004557
2023-02-02 17:57:17 +05:30
Pooja Jadhav 17130a2150 Add zed release to emit_release code
This patch adds zed release to emit_release code baecasue
it is blocking while adding periodic zed minor update job [1]
with error logs [2].
[1] https://review.rdoproject.org/r/c/rdo-jobs/+/45292/3/zuul.d/integration-jobs-cs9-zed.yaml
[2] https://logserver.rdoproject.org/97/40897/7/check/periodic-tripleo-ci-centos-9-scenario000-multinode-oooq-container-updates-zed/eeede57/job-output.txt

Change-Id: If1d45e7e0a882b4645253d6e8c1887af918f9a58
2022-10-11 12:22:27 +05:30
Ronelle Landy bbf1787508 Revert "Victoria tear down : emit release file"
This reverts commit 7a6b71241d.

Reason for revert: https://bugs.launchpad.net/tripleo/+bug/1991240

Change-Id: I8026f2fa78b247231e718577a0522fb9ebacb128
2022-09-29 15:21:09 +00:00
Pooja Jadhav 7a6b71241d Victoria tear down : emit release file
This patch removes emit release files cleaup
of victoria/ussuri EOL releases.

Depends-On: https://review.opendev.org/c/openstack/tripleo-ci/+/859437

Change-Id: I77381bcbb6a88cffef19c0ff30bf3e9ceffdeed2
2022-09-28 11:21:06 +00:00
Marios Andreou 800d36d83f Cleanup code from old releases already EOL pike|queens|rocky|stein
In [1] we removed the related jobs for these EOL releases. Here
we deal with removing code related to these branches including
any conditionals or special cases from emit releases and the
build-containers and run-test roles. Also removes some really
old references to newton.

[1] https://review.opendev.org/c/openstack/tripleo-ci/+/838110

Change-Id: I184cd525a8696b0b634ac8d6f895ab642ac5aa33
2022-04-20 13:47:27 +03:00
Zuul 8055430854 Merge "Add wallaby support for emit_releases_file.py" 2021-04-07 11:26:29 +00:00
frenzyfriday f14bb680fb Add wallaby support for emit_releases_file.py
Adds wallaby into the emit releases script. Similar to https://review.opendev.org/c/openstack/tripleo-ci/+/757861 which was for victoria.

Change-Id: Ib7d4bde73d3206b96b43a8f3ef2a78882cddf855
2021-03-30 14:58:34 +02:00
Marios Andreou b813597a5a Remove all rocky related jobs/conditionals tests after rocky End of Life
Rocky is now EOL since [1][2] so this removes all the rocky related jobs
or conditionals.
Moves tripleo-ci-centos-7-undercloud-containers to deprecated jobs as it
is still in use in other repos so we can't remove yet.
Related reviews in topic branch tripleo-ci-reduce-rocky [3].

[1] https://review.opendev.org/c/openstack/releases/+/774244
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-March/020912.html
[3] https://review.opendev.org/q/topic:tripleo-ci-reduce-rocky

Change-Id: Ibe2fd5c7792d55236c09dbf9cf88e23e1c5a5673
2021-03-26 13:47:18 +02:00
Bhagyashri Shewale d69df19d22 Add victoria support for emit_releases_file.py
Adds victoria into the emit releases script [1].

[1]: https://projects.engineering.redhat.com/browse/TRIPLEOCI-230
Change-Id: I1758ff860cb36692af638be0cae3c3076dbd5b9e
2020-10-18 15:09:04 +00:00
Hervé Beraud e025b60f1a Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: Iba639e105ef6d8d9223967863ec6ac5d971be58f
2020-06-11 10:12:54 +02:00
Marios Andreou 22d77e7f88 Add ussuri support for emit_releases_file.py
Adds ussuri into the emit releases script as tracked at [1] by
tripleo-ci squad

[1] https://tree.taiga.io/project/tripleo-ci-board/task/1666

Change-Id: I38a5c2abcdbd3dc5927ed6ccfdd31d357fc25f8a
2020-05-14 13:23:59 +00:00
Sorin Sbarnea f78da2885a lint: enable black
Assures consistent formatting of our python codebase without having
to rely on humans to do it, or to debate during reviews.

Change-Id: I1e62cc755fa60e453dea865f436241ecae330771
2020-03-24 13:17:31 +00:00
Gabriele Cerami 50203ab44a Add centos8 support for emit_releases_script
emit_releases_file needed to be updated to support centos8 and
integration pipeline.
I needed to make the script distro aware, then distringuish between
distros to get the proper repo and hash in get_dlrn_hash function.
The tests have been only partially updated: I updated the success script
to cover the centos8 case, and accountfor the change in signature for
get_dlrn_hash, but the rest of the workflow is exaclty the same either
if we are in centos7 or centos8, so I did not add any additional checks.

Change-Id: I26799d5e6a3ed404b4a29be621c5871ef9be6e4c
2020-03-06 12:23:55 +00:00
Chandan Kumar (raukadah) 8c31506575 Added support for train for emit release file
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>
2019-10-04 12:03:49 +05:30
Quique Llorente 4381539ba5 Add stein support to emit releases script
It's the first release that supports standalone and also LTS has not
change and it's still for queens only.

Story: https://tree.taiga.io/project/tripleo-ci-board/us/847

Change-Id: Id246cdab8a574ed57cd90813652532f47fbd0643
2019-04-02 15:12:59 +02:00
Jiri Stransky c6bc5f8ace Reduce unit testing changes required for emit_releases_file
When looking at recent edit of emit_releases_file.py it seems that the
amount of manual unit test changes required [1] is so high that it
might deter contributors and consume too much effort.

Much of the edited unit test data seems repetitive, so my rationale
here is that we can reduce the amount of data resulting in a small
loss of coverage but considerable reduction of required labor when
making emit_releases_file amendments.

The order of side effects for get_hash function was considered for the
test result, now we use a fixture that is backed up by a tuple to a
string dictionary to configure the mock, so the order is not important
anymore.

Co-Authored-By: Quique Llorente <ellorent@redhat.com>

[1] https://review.openstack.org/#/c/606996/7/scripts/emit_releases_file/test_release_name.py

Change-Id: Ie573813a4916aeb1bb15b5aa38dc2a732586e8c2
2018-11-05 09:07:43 +00:00
Sofer Athlan-Guyot f3702f4335 Add standalone upgrade to emit release.
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
2018-10-24 00:18:40 +02:00
Jiri Stransky 8ac067890d Switch previous release of master from 'queens' to 'rocky'
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
2018-10-02 12:02:07 +02:00
yatin 6bc9d7ef97 Fix HASH for periodic jobs(use tripleo-ci-testing)
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
2018-08-22 03:01:43 +00:00
Sagi Shnaidman f16bbeeaf2 Add rocky to emit files
Until the rocky repos are in place and working adjust
deployment to not install rocky in undercloud/overcloud.
Follow up patch required once rocky is promoted to start
installing rocky.

Change-Id: I3f714203803ddcbf72aa203c11ebbc68ad3c8def
2018-08-18 18:08:44 +05:30
John Trowbridge d7adb74342 Add ability to upgrade FROM change under test
Currently, we are only able to upgrade TO a change under test. (n-1->n)
This change adds an argument (--upgrade-from), which allows for testing
that a change does not break upgrading FROM a release. (n->n+1)

The change itself is a no-op other than changing the signature of the
compose_releases_dictionary method.

Change-Id: I141aa5e01a097968a2a3427ebcfb5b8d304c9753
2018-06-12 12:11:40 +01:00
John Trowbridge 6f06040bad Wire in get_dlrn_hash
This wires in the get_dlrn_hash function to the release dictionary,
so that we end up with an actual dlrn hash instead of a named hash.

Release dictionary tests updated to mock this function, including
verification of the expected calls to get_dlrn_hash.

This also adds more comprehensive logging and unittests to the
get_dlrn_hash function.

Change-Id: I41087bf0c247b933a641ea0da582b5f2b368840e
2018-05-21 08:25:09 -04:00
John Trowbridge d0bb823d0c Add python script to dynamically compose releases
Currently, we do this in a combination of bash in this
repo and the release files themselves. However, as we begin
to support more different upgrade scenarios, this has proven
to be difficult to maintain.

Instead, we will use this python script to create a dictionary
of releases which describes which release will be used at each
point in the deploy: undercloud_install, undercloud_upgrade,
overcloud_deploy, and overcloud_upgrade.

This commit only provides an intial skeleton to work from.
Follow-up commits will provide:

  1. The ability to get a DLRN hash for each of the above breakpoints
  2. A CLI for the tool so it can be called from the TOCI scripts
  3. The ability to parse a featureset config for upgrade variables
  4. The ability to output the dictionary for consumption by TOCI scripts

Change-Id: Ibf61d7d12230f6714eb7dad91169aa043f5f8417
2018-05-16 11:47:27 +02:00