Adds a new role tripleo-build-jobs-repos that is used by
container and image build pre playbooks to setup repos with
the repo-setup role for Centos9.
Depends-On 817161 modifies the release files to use the c9 stream
repos and carries workaround until a better fix is merged like [1]
or similar.
[1] https://review.opendev.org/c/opendev/base-jobs/+/820018
Depends-On: https://review.opendev.org/c/openstack/tripleo-quickstart/+/817161
Change-Id: I39fc32cf1249b4f14bdc35a4af7a1f8784c19801
libvirt/qemu are rebased to newer version in
AppStream repo than advanced-virtualization, and
likely due to that jobs started failing. Somehow
jobs are passing in releases before wallaby even
with newver version.
This patch is a temporary fix to
exclude libvirt/qemu from AppStream repo.
Change-Id: Iac4425d655df2f519f5b467e3754dad08ac9b1f5
Related-Bug: #1950916
In order to build openstack containers on centos stream 9,
build-containers role and playbooks has went through following
changes.
* Make sure /etc/nodepool dir exists in pre
* Moved all required repos config in pre9.yaml to avoid multiple
failure in main container build inline.
* Added support for unqualified-search-registries
* Added support for passing tcib_extra[1] vars needed for EL9
* use container-tools:latest for c9
* Use tripleo yum config module to generate the tripleo-repos via
compose_url and compose_id.
[1]. https://review.opendev.org/c/openstack/python-tripleoclient/+/807098
Signed-off-by: Ronelle Landy <rlandy@redhat.com>
CoAuthored-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: Ic3923fd02875b02adbc0fdf46dace180685e76ef
Container-tools module needs to be set before
the podman login step.
Going forward, this should be done with tripleo-repos.
This review also removes unnused container stein
jobs from check and gate.
Closes-Bug: #1942078
Change-Id: I448a8d6d2dad94cb413a8f82adb85867c043f5b7
* Collect the logs of container workspace
* tripleo-ansible will be automatically installed by
python-tripleoclient package.
* Set tripleo_common_path for packages.
* Make sure docker service is running and docker user
and group exists
* Added insecure registeries
* serve quickstart-centos repos on http server
* set container_cli_opts only when use_buildah is used.
Depends-On: https://review.opendev.org/#/c/752419/
Change-Id: Ia3c09a33ca92ed68cbaa3baf5f37ad61751a8a89
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
There should be an option to force job failure when running it
in reproducer to leave the node by Zuul autohold.
See also I0b984b3b166fae2a742b41c0152afe64a94e03d1
Change-Id: I388c17e0a61d4c53a4222510b86b41f645705d21
- Fixes one bashate problem
- Updates linters
- Addressed most of the skip_list exclusions and removed them
Assure the `pre-commit run -a` is always run on all files instead
of old behavior which allowed linting to be broken when merging.
Bumping operation is mostly automated, we just need to run:
`pre-commit autoupdate` from time to time and fix eventual issues.
Change-Id: If75a3e49a9d570e744063ea35ea41919261ad876
- rearrange container build job and parenting so we can fit different
parameters for different distribution
- Explicitly upgrade python decorator module for platform that already
have it installed (pip ansible module doesnt' update)
- Parametrize some hard coded values
- ansible_distribution for kolla base does not work with all
distribution
Task: https://tree.taiga.io/project/tripleo-ci-board/task/994
Change-Id: I4c6c6effc9572b07c341d0cfaf452845835aeaeb
As tripleo-ci repo is branchless and has only master, we need
a rocky containers job that will run on this repo and will check
that we don't break anything for rocky containers building.
Breaking this job will affect periodic promotion because we started
to use this job for containers building in promotions.
Depends-On: https://review.openstack.org/#/c/648358
Change-Id: I8a1c69a9ab1de6992eb52b76862cacacaf265896
In [1] we added temporary excludes with sed for rocky container build
This changes release calculation for all jobs that use tripleo-repos
role.
First priority - release of periodic jobs, then goes branch override
of branchless jobs and only then the default zuul.branch.
[1] https://review.openstack.org/644932
Change-Id: I00125923c0dfbfb3b7ebfb09ee633268697ae40d
Previous code was not collecting the yum/dnf configuration which
made impossible to debug issues specific to these files.
Change-Id: I6c0f7befc75ab573b7f0e936c0ffc85fa151b411
As described in the bug the retag added at [1] isn't working.
However we are correctly pushing with the tripleo-ci-testing delorean
repo hash and that should be sufficient for the periodic jobs that
consume containers built by this job.
This removes the retag logic altogether and also removes the
push_tag variable. A related review in [2] also removes it in the
periodic jobs that were using this variable (no one else does/was)
Related-Bug: 1819583
[1] https://review.openstack.org/641348
[2] https://review.rdoproject.org/r/19484
Change-Id: I42f8e05bf1e5be230acdb7be16b056c8aff117f2
The excludes list is needed for f28 containers build. For the
rocky periodic we need to skip it as there is no such parameter
in the container build there.
Instead uses sed to remove excludes from containers list.
Once we cherrypick that [1] we can remove sed and use --excludes.
Test runs in [2]
[1] https://review.openstack.org/#/q/topic:cherrypick-excludes-containers-build
[2] https://review.rdoproject.org/r/#/c/19533/
Co-Authored-By: Sagi Shnaidman <sshnaidm@redhat.com>
Change-Id: I668a8557165972324e11707c2f3f32199658b6b9
When script fails, the job continues and passes. Remove
unnecessary code saving and let the task to fail.
Make script to be generated for easier investigation what
command was running.
Change-Id: I1edce370458769a1479ee568b745e78ddcef693a
This is currently hardcoded to tripleomaster but we need it to be
tripleorocky for the new job added in [1] (not wired up yet)
[1] https://review.rdoproject.org/r/19452
Change-Id: I123bf07d7bc02bd81b6dd91d63faf5b014d5e132
In order to ease investigation of failures for containers build,
add timestamp to stdout and stderr log files.
Change-Id: I59198457044326193593948ed8c780e24ccebbc4
For the periodic jobs once we build containers and push to rdo
registry we also need to tag the images with the delorean repo
hash
This switches the current tagging so we instead tag during build
using the version-hash and then tag with tripleo-ci-testing
when its periodic
Testing at https://review.rdoproject.org/r/#/c/19131/
Change-Id: I727e748eee641e12cede74773497dce49fcb317c
Enable Fedora 28 and Python3 support on tripleo-buildcontainers
playbook and on tripleo-repos role.
Centos-7 job would run upstream and its fedora-28 counterpart would
be run on RDO and be non voting
Uses: https://review.openstack.org/637212
User-Story: https://tree.taiga.io/project/tripleo-ci-board/us/650
Change-Id: Ie46d0d7fa7c41427bb44bcfad5cf59af745ac627
Co-Authored-By: Sorin Sbarnea <ssbarnea@redhat.com>
The tripleo-repos role in tripleo-ci defaults to current-tripleo
for master and current for everything else. There is no support
for the tripleo-ci-testing repo.
This adds 2 params: i) override_repos as a param
to tripleo-ci tripleo-repos and ii) buildcontainers_override_repos
as a param in the tripleo-buildcontainers job. ii) is passed from
periodic version of buildcontainers in [1] and is then used to
set the value of override_repos, passed into ci tripleo-repos.
The depends-on adds tripleo-ci-testing as an option for
tripleo-repos itself as it is currently unsupported.
Tracked by tripleo ci squad with [2]. See test review at [3] which
runs the periodic container build in check with this code.
Also adds /etc/yum.repos.d/ into collected buildcontainer logs.
[1] https://review.rdoproject.org/r/18975
[2] https://tree.taiga.io/project/tripleo-ci-board/task/773
[3] https://review.rdoproject.org/r/19000
Depends-On: https://review.openstack.org/638651 # tripleo-repos
Change-Id: I37bc90881ef19ae4aeace65750da4dd93da5f4e2
This job will run in Stein and beyond, where we replace Docker by
Buildah to build images.
blueprint podman-support
Depends-On: I7608136cb213bdca81348a0c3c751b488f48d712
Change-Id: Ia43d96326fdcc9629696c972df1cf677cd69c87f
As tracked by ci team in [1] the current periodic container
build job is very different to the upstream job
tripleo-build-containers-centos-7. In order to re-use this
upstream job as part of the periodic, we need to parameterize
it so we can push to the rdo registry and containers have the
right tags (when periodic container build & push).
This review leaves the upstream job unchanged with parameters
defaulting to their current value. The periodic job defined
in [2] inherits from this job and will handle secrets/login
and passing the right values for registry/tag.
[1] https://tree.taiga.io/project/tripleo-ci-board/us/652
[2] https://review.rdoproject.org/r/#/c/18729
Change-Id: Idf1f5a696a5163bd54cb000aed09daf00d51400b
The wrong parameter name was used for the repo configuration.
It should have been rpm_setup_config not rpm_setup. Additionally the
iptables rules did not allow for the containers to fetch the repos from
the CI host. This change lets docker manage the docker iptables rules
and adds a rule to allow port 80 from the docker container ip range.
Depends-On: https://review.openstack.org/#/c/634064/
Change-Id: I037465f7bbc7b6016373385f07c7c944a09299c9
Closes-Bug: #1813527
https://review.openstack.org/#/c/607288/ shuffled some basic setup tasks
around and put them in tripleo-ci/pre.yaml. Unfortunately the
configure-swap task isn't idempotent so let's stop duplicating the tasks
in the build jobs now.
Change-Id: I046aeea86b3b63cae0b44865dc8ee0a59a3f7f5f
Closes-Bug: #1810777
We don't currently have coverage for the container build process in CI,
let's add some.
Depends-On: https://review.openstack.org/#/c/616022/
Change-Id: I97ceb9533a38ec7b175623784649de277aaf4274