Commit Graph

1120 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
Zuul 2066a2baa2 Merge "Remove pingtest from tripleo" 2022-11-21 22:27:16 +00:00
Juan Badia Payno a7214267b6 Added standalone-ffu job.
The test of this patch can be seen at:
https://review.opendev.org/c/openstack/tripleo-heat-templates/+/861363

Co-authored-by: Jose Luis Franco
Co-authored-by: Daniel Bengtsson
Depends-On: Idd922d921fe52e9ca88ed84177d2eb81285bafae
Change-Id: I867febeb9b694401c0cfeb7931864a2291f87b99
2022-11-04 09:43:29 +01:00
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
Arx Cruz 4db10e39a4 Remove pingtest from tripleo
Ping test is no longer being used in the last 5 years and was replaced
by tempest. However there are still pieces of code being executed, and
replacing some files, for example the testrepository.subunit file that
tempest generate and it is being used by the ci logging scrapper to
collect data about tempest.

Change-Id: Ia2b18f88652f144d5b593c5d209a9acf2d0374c8
2022-10-05 11:51:33 +02:00
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
Pooja Jadhav 37d6b13a5a Removal of tripleo-jobs-gerrit python file with its tests
This patch removes tripleo-jobs-gerrit.py and its test file
because its blocking patch[1], locally tox py36/py39 working fine
but on zuul side its failing with timed_out[2] consistently and also
these files dont have any other usages as per codesearch except its
tests[3].

[1]https://review.opendev.org/c/openstack/tripleo-ci/+/856051
[2]https://review.opendev.org/c/openstack/tripleo-ci/+/856051/9#message-a31598fc16bada0cba8868b4a49b1ab1bc6b9dc6
[3]https://codesearch.opendev.org/?q=tripleo-jobs-gerrit&i=nope&literal=nope&files=&excludeFiles=&repos=

Co-Authored-By: Dariusz Smigiel <dsmigiel@redhat.com>

Change-Id: I782865575380a79dc5155d500530d03c3199508e
2022-09-28 07:01:37 +00:00
Pooja Jadhav b11d21ad8f Ussuri tear down as EOL
Ref : https://review.opendev.org/c/openstack/releases/+/834049

Change-Id: Ie5be105b3b65108e741a6e1d2ea79d54596a7a5a
2022-05-16 11:51:39 +05:30
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
Jose Luis Franco Arza 7070665677 Add undercloud-ffu-wallaby job.
This patch adds all the missing bits to be able to perform
an Undercloud upgrade from Train to Wallaby in the CI. This
type of job is identified by the ffu_undercloud_upgrade keyword
and runs a similar set of steps as the Undercloud upgrade CI job,
relying on the tripleo-upgrade role to setup and run the upgrade
of the node.

The emit_releases_file script has been also modified to cover this
ffu jump from Train to Wallaby, as well as understanding the keyword
ffu_undercloud_upgrade (up to know only the ffu_overcloud_upgrade
existed).

This patch depends on the addition of a new featureset065 in which
the right parameters are being set.

Depends-On: https://review.opendev.org/c/openstack/tripleo-quickstart/+/822714

Change-Id: I876f7b2e03511b27cc1f02638964945c9518e503
2022-03-02 09:23:41 +02:00
Marios Andreou 4f84e22440 Allow hash override for emit releases script for minor update
In [1] we addressed related-bug for the undercloud upgrade. This
addresses the minor update case.

Tests at [2] (DNM patches on tht branches) & [3] (rdo).

[1] https://review.opendev.org/c/openstack/tripleo-ci/+/816991
[2] https://review.opendev.org/q/topic:lp1946659
[3] https://review.rdoproject.org/r/c/testproject/+/37144/2..3#message-f194606c5a1d3e495e65fe092673796250394437

Related-Bug: 1946659
Change-Id: Ib9b7d16d6e7888a16c9fae22a3035e48600519ab
2022-01-03 07:24:45 +00:00
Arx Cruz 4a6b1f0bcf Allow override for install and target hash in emit releases undercloud
As described in related-bug, this allows us to override the install
and target delorean hash for use by consumer jobs. There was a previous
attempt with [1] which added the ability to override the target hash.

As commented in the bug (see comment #7) we need to override both target
and install versions. Since this is nested bash/jinja/python :/ we do this
by passing the content provider branches as a string
"branch1:hash1;branch2:hash2" generated in the jinja templating
which is then decoded on the emit-releases python side.

[1] https://review.opendev.org/c/openstack/tripleo-ci/+/813629
Co-Authored-By: Marios Andreou <marios@redhat.com>
Related-Bug: 1946659

Change-Id: I9e0162f88cf262957234bf946ad3c013f6213891
2021-12-16 10:47:32 +02:00
Pooja Jadhav a4e789cbfe Add centos9 support for emit_releases_script
emit_releases_file needed to be updated to support centos9 and
integration pipeline.
The tests have been only partially updated: added the success
scenario to cover the centos9 case.

Change-Id: I4e35a0ce1c7b38a7e354c4571ac6a005697632d7
2021-11-24 15:46:22 +05:30
Zuul c7b4b19973 Merge "Ensure upgrade job read the proper hash" 2021-11-01 19:47:58 +00:00
Arx Cruz 0b0aa53a9b Ensure upgrade job read the proper hash
From time to time, due a promotion happening between the time
that the content provider job executes, and the upgrade job
the upgrade job fails because it can not find the hash in the
content provider. This is because the upgrade job, instead of
rely on the zuul job variable passed by the content provider,
it reads in execution time, the current-tripleo hash from
rdo registry. This patch ensure that if there is a zuul variable
passed by content provider, it will use that hash, instead of
read it from rdo registry.

Related-Bug: #1946659
Change-Id: I273243ced8b83aecec9da775e7f7a3c3865b4fc3
2021-10-29 13:42:10 +02:00
frenzyfriday e4d0b68976 Update ci-health url if not present in CIX card desc
This patch modifies tripleo-critical-bugs to
Update ci-health url if not present in CIX card desc

Change-Id: I14c841e5516a80a9e04cf5a182da8cb4f027710a
2021-10-25 14:08:42 +05:30
Wesley Hayutin 41b4e98d65 update readme
Change-Id: I3eef4133f5f5d3fdbf26edfdc1b309388d8fb751
2021-09-13 07:54:43 -06:00
Wesley Hayutin 0dabe4dc82 initial commit for tripleo-critical-bugs
Change-Id: I5b09e795ade6462a07e46e457b781895a93fc99b
2021-09-10 11:59:26 -06:00
Takashi Kajinami a5022edb8a Remove reference to tripleo-common-tempest-plugin
... because the repo will be retired[1].

[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-July/023557.html

Change-Id: Idd2d194afaf2505caf50b9f1fbac97630eda7de3
2021-07-09 22:33:28 +09:00
Marios Andreou f25af27e8c Add milestone and close message to bugs in close_bugs.py
Change-Id: If6ac7febb12136507ee43d39d261aa226a3d091a
2021-06-24 18:31:21 +03:00
Marios Andreou 7594837480 Imports close_bugs.py utility to move stale bugs to Incomplete
We already have the move_bugs utility this adds close_bugs.py
This imports the close_bugs.py from [1] with removal of the
commented #pdb.set_trace()

[1] https://gitlab.cee.redhat.com/whayutin/launchpad_bugs/-/blob/master/launchpad_close_old_bugs.py

Change-Id: I4851f6e498b879fe640d1397b638b7fd315d07ac
2021-06-24 18:26:53 +03:00
Sorin Sbarnea cc0d019446 Add py39 support
- update setup.cfg to advertise supported platforms
- fix tox.ini file use version agnostic envlist
- add openstack-tox-py39 job
- minor fix on test file which wrongly assumed that pop
  returns a new dictionary
- added type to release dictionary, which is what would
  have prevented previous item from being introduced.

Change-Id: I60b80ebe41a66d39e6f1a51a3d00c0b9292d42fd
2021-04-12 18:42:38 +01:00
Marios Andreou 963ac72a0a Remove stale bash scripts from tripleo-ci repo
As discussed in the parent patch [1] we should remove these stale file as
they are no longer used. The oooq_common_functions, toci_gate_test,
toci_quickstart have all been replaced by the templated versions in [2].

The heat-deploy-times.py is replaced by the script at [3] in the
ansible-role-collect-logs repo. The generate-kill-heat.sh has not been
touched in over 2 years and as far as I can see isn't being used
somewhere (code search).

Some of these especially the common_functions/toci_ files are updated
out of confusion and causing unnecessary maintenance burden.

[1] https://review.opendev.org/c/openstack/tripleo-ci/+/782549/5#message-f29d32c0c652d0929f680030e1a4c970fb111c2d
[2] https://opendev.org/openstack/tripleo-ci/src/branch/master/roles/run-test/templates
[3] https://opendev.org/openstack/ansible-role-collect-logs/src/branch/master/roles/collect_logs/files/heat-deploy-times.py

Change-Id: If248d145cdcaa448de601b24a80a11d567fb235f
2021-04-08 12:36:53 +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
Sorin Sbarnea a3c9dc40e4 Fixed yamlint violations
Change-Id: I7468ef9929cd6a7c0969bcd6befb320bfd671097
2021-02-10 15:24:59 +00:00
Zuul 3e484b5f43 Merge "Add support for puppet-pacemaker stable" 2020-10-21 23:35:43 +00: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
Alex Schultz ce590c4c13 Add support for puppet-pacemaker stable
We need to handle the puppet-pacemaker stable branches differently.

Change-Id: I2057e9ebe496e62ff68370b48cee9eeb1ae984e8
2020-10-12 08:53:14 -06: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
Hervé Beraud c4dabd6f3c Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: Idf2da7dbf2d1c9f45cb92168f209d589f5919cc3
2020-06-02 21:03:18 +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 e5217e01a4 Refactored tox jobs
- assure we test triple-jobs-gerrit.py file
- fix division by zero bug with above file
- simplified tox.ini file
- prevent accidental regression on CI by checking number of passed tests
- removed test_molecule.py file which was the precursor of what later
  become pytest-molecule

Change-Id: Id6ffb9df88a376bcd3c8a0d77b2d378fca8da115
2020-03-27 13:39:35 +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
Wes Hayutin e1623dfca0 add move_bugs to scripts
Make sure move_bugs is in src and doc'd to
some degree.

Change-Id: Ie7e8d3799e4684951f1e67420e27458798de7f7d
2020-02-17 22:21:59 +00:00
Sorin Sbarnea b6611fd03a Fixed flake8 and broken gate
Flake8 went broken recently, adopts correct calling method to avoid
regression and fixes broken rules.

Also removes openstack-tox-pep8 from gate which was a guaranteed
failure when triggered as pep8 was removed.

Change-Id: Iba03d3051952f461bb16299a6d32475b2be43041
2020-01-27 19:21:48 +00:00
Wes Hayutin 1a6e94d53d get the logs could be useful, adding back
Change-Id: I39264e0f10008c45d23f3b044477abb513e0e5a3
2020-01-23 09:08:34 -07:00
Sagi Shnaidman 0977f8502d Big clean of tripleo-ci
Change-Id: Iff0350a1fff1057d1de924f05693258445da9c37
2020-01-22 18:37:04 +02:00
Sorin Sbarnea f54d582f28 Removed several gzip operations
As log storage takes care of compression is better to avoid performing
any gzip activity on *text* files that we want to access with the
browser.

Change-Id: I7dcd1cf569fea5e536926f7188af953c3301af0f
2020-01-16 17:41:37 +00:00
Sorin Sbarnea 7b84c23443 lint: maintenance chore
- reverted previours workarounds
- assures we run ansible-lint on our files
- bumped linters
- fixed new problems found by the linters

Change-Id: I7812fcfd17569b0c438f58bec73ab0f4b07e625c
2019-11-11 18:01:00 +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
Sagi Shnaidman 53f21c56f3 New vexxhost CI settings
Configure new settings for running OVB jobs on vexxhost cloud.
Change-Id: I1d38e369dea02bf85f55104f7b5b4b35e3d45ca1
2019-08-19 21:37:48 +03:00
Sagi Shnaidman 3ef2836a23 Use proxy when retrieving delorean file from RDO
If there is defined NODEPOOL_RDO_PROXY environment variable, use
it for retrieving delorean.repo file.

Depends-On: https://review.opendev.org/#/c/677088
Change-Id: Ia1fd563950acb9dca2e804d0eae03d3aa86b9261
2019-08-18 14:20:23 +00:00
Ronelle Landy eb1235fccd Increase retries to get dlrn repo in emit_releases file
Gate jobs are failing when this script is run from providers
outside of rdocloud. The review increases the timeout and
retries to avoid spordic failures.

Related-Bug: #1839845
Change-Id: I5903b8eee40868f57dcd019dd7ab5cdd9652cabc
2019-08-13 17:17:15 -04:00
Jason E. Rist 08dee62629 Retiring TripleO-UI
The TripleO-UI related tripleo-ci stuff is being removed because
of the retirement of TripleO-UI.

Change-Id: I1a7ca305a6885c5faeea6db874edf84cf91f6ddd
2019-05-24 16:17:20 -06:00
Cédric Jeanneret 68a49832c1 Revert "remove old common_functions script"
This reverts commit ab5b7a16c8.

The script is still used within tripleo.sh, when called with --delorean-build.

Change-Id: I512b4eac3ce1536e726b248801d1c5ddc3a7500c
2019-05-16 14:25:13 +00:00