Commit Graph

30 Commits

Author SHA1 Message Date
Ghanshyam Mann a606c60efc Retire Tripleo: remove repo content
TripleO project is retiring
- https://review.opendev.org/c/openstack/governance/+/905145

this commit remove the content of this project repo

Depends-On: https://review.opendev.org/c/openstack/ansible-role-collect-logs/+/910044
Depends-On: https://review.opendev.org/c/openstack/neutron/+/910099

Change-Id: I338ed19678cf4a6248c46551bdf9cb23abc511bd
2024-02-24 20:22:39 +00:00
Marios Andreou 071b58ce23 Move tripleo-ci common role to ci-common-vars due to name clash
In [1] we are wiring up a role from the tripleo-quickstart repo.
There is already a 'common' role in t-q. Because of the name
clash we can rename the tripleo-ci common role.

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

Change-Id: I2bf7cebcefc19888058e368783a77ff8b524c998
2021-11-26 14:53:24 +02:00
Sorin Sbarnea a3c9dc40e4 Fixed yamlint violations
Change-Id: I7468ef9929cd6a7c0969bcd6befb320bfd671097
2021-02-10 15:24:59 +00:00
Gabriele Cerami 9206748e9d Render playbooks minimal, move everything to roles
In zuul, roles can be easily included cross repos, while playbooks need
to be replicated and copied.
This change creates three roles roles, and move tasks to be included in
the new roles, so the playbooks are just minimal, and replicating them
is not a problem since the logic is in roles that are included
The common variables are loaded in the role common, the node preparation
i moved to the prepare-node role, and it's now called in the pre,yaml
playbook in pre-run.
run-test role contains the rendering of bash scripts and effective test
run

Taiga-id: https://tree.taiga.io/project/tripleo-ci-board/task/112
Change-Id: Ie51fcfbee79727d04fca47d26a5ed8ad44ed3bf6
2019-01-04 11:42:47 +05:30
Zuul e816ae8b9d Merge "Avoid insecure umask which breaks loading of ansible.cfg" 2018-12-22 12:30:36 +00:00
Quique Llorente 2eb794ff62 Remove package exclusion from yum and dnf
For some of the scripts with need the distro setuptools looks like this
exclusions where there so devstack don't break, but we are not using
devstack at tripleo.

Closes-Bug: #1808118

Change-Id: Ib776800a6f1480d05d06349506e8cd344096fc76
2018-12-18 13:34:29 +01:00
Sorin Sbarnea b62acc6360 Avoid insecure umask which breaks loading of ansible.cfg
Ansible had a security fix which now prevents it from loading
ansible.cfg files that are world writable (o+w) which is exactly what
the old jobs did in order to make devstack work with hardlinks across
multiple users.

We replace the hardlinks with CoW and reset the permissions to system
default which is what is to be expected for source code.

Change-Id: Ia1bfc89ee8edecd1ebad3487e8c63bdda4d083a0
Partial-Bug: 1807703
2018-12-18 12:18:31 +00:00
Zuul 67ec71647f Merge "Add tempest_workers to featureset_overrides" 2018-12-11 09:36:41 +00:00
Zuul 9d470d7471 Merge "Simplify regex removing capturing groups" 2018-12-10 12:54:36 +00:00
Chandan Kumar 37600b28c2 Add tempest_workers to featureset_overrides
* tempest_workers var is used by validate-tempest role in order to
  allocate numbers of cpus while running the tests parallely. In
  order to complete scenario standalone migration, fs016 needs it.
  In order to improve the reusability of the job, we need to add
  this var under featureset_overrides.

https://tree.taiga.io/project/tripleo-ci-board/task/492

Change-Id: I84d8c2f766fd1dbbfbe8948737d08113f3041541
2018-12-10 11:48:59 +00:00
Quique Llorente 2ff1a443e1 Simplify regex removing capturing groups
Running the regex renders bad results at zuul at docker-compose,
simplifying it works correctly.

Change-Id: Ibc652c4ba5bea4ffce4b41aebc1408bf934a7279
Story: https://tree.taiga.io/project/tripleo-ci-board/task/348?kanban-status=1447275
2018-12-05 13:07:25 +01:00
Arx Cruz c819004b6d Adding test_white_regex to allowed overrides
This patch is required to run standalone featureset with full tempest
test

Change-Id: If392c1ad8fd834e83d787662b1f35b8126cace87
2018-12-03 13:23:47 -07:00
Marios Andreou 1fa128546b Move ceph-loop3 to ceph-loop-device role for standalone scenarios
This moves ceph /dev/loop3 tasks to a new ceph-loop-device role.
This has no effect in the 'normal' case with tasks included as
always for subnodes.

However we are moving scenario jobs to standalone and so
need these tasks on primary node when we have ceph. A new
parameter on the job definition 'standalone_ceph' will
signal this and include the role accordingly. See [1] for example.
Tracked by ci team at [2]

[1] https://review.openstack.org/#/c/619508/
[2] https://tree.taiga.io/project/tripleo-ci-board/task/405
Change-Id: Icae7d956061e444d3bf9364c7336cd834aa7622a
2018-11-23 16:01:47 +02:00
Quique Llorente 05e0cb1bad Make standalone_container_cli overridable
For standalone scenarios we have to still use 'docker' some of the
pacemaker services are not prepare for 'podman' at centos-7.

Story: https://tree.taiga.io/project/tripleo-ci-board/task/404?kanban-status=1447276

Change-Id: I2a08355c0d1377b3b4767d802a8990e9031004a1
2018-11-23 11:46:08 +02:00
Marios Andreou a4e805fd5b Add new standalone_environment_files into featureset_override
As part of [1] we need the ability to override the environment
file passed to standalone jobs for the different scenarios.
This adds a standalone_environment_files parameter into the
allowable values for featureset_override and it expects a list
of paths, relative to /usr/share/openstack-tripleo-heat-templates.
This list will then be passed to the standalone deployment command
using the standalone_custom_env_files (see [1]). With this we
can avoid needing a new featureset to override this environment
for each of the scenario standalone jobs

[1] https://tree.taiga.io/project/tripleo-ci-board/task/363
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
Change-Id: If36d96a96d98b63881ee096eaae54ffc60b6ecf1
2018-11-16 17:46:33 +02:00
Chandan Kumar f7a06b637c Move tempest overrides to var at task level
* In run-v3.yaml, we have started adding tempest overrides in a list
  and it started growing which is hard to handle so we can move to
  a var with list and re-use that and it also improves the
  readability.

Change-Id: Icde2989122889be426309c36a912163f69398190
2018-10-26 16:53:35 +05:30
Sorin Sbarnea c25a428409 Corrected release config location for log collection
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
2018-10-19 15:19:13 +00:00
Zuul dff3469fef Merge "Enable featureset override for tempest_{format, extra_override}" 2018-10-16 21:23:40 +00:00
Ronelle Landy 1f86737d3e NODES_FILE definition is missing
It is required for the current reproducer.

Depends-On: I53851edbb8bb562dc4194fb99d6ade259227d2f9
Change-Id: I11be50afd012e0e9cf8ce0366877638e774824ff
2018-10-15 19:18:09 +00:00
Chandan Kumar 3f2d2091fb Enable featureset override for tempest_{format, extra_override}
Projects may want to override tempest runs for a given job:
- tempest_format
- tempest_extra_config
- tempest_plugins

Change-Id: I80c4db20e4b4deeb576380d20d3ee5f3f8fff66d
2018-10-14 19:29:09 +05:30
Gabriele Cerami 64768ad71f Run-v3: set log path only if zuul.change is defined
Now that the periodic jobs are using the same workflow, LOG_PATH cannot
be correctly formed since no zuul.change is defined in periodic
pipeline.
Adding the legacy role to set the log path and changing the bash env var
to use that value

Change-Id: I1dea572774a3f397aa82eefd92c0a8160b9c0a74
2018-10-07 02:05:31 +00:00
Rafael Folco 5aebe3bf5a Enable featureset override
Projects may want to override tempest runs for a given job:
 - run_tempest
 - tempest_whitelist
 - test_black_regex

Fail in case of a non-overridable config.

Change-Id: I8ca492ab21f80fec4f6fb2f00cbf0132dd77f836
2018-09-28 06:50:51 +00:00
Gabriele Cerami f33bc702b5 Dump zuul variables to file
we need to pass some zuul variables to the inner ansible calls. We dump
the zuul variables subtree to a file, then we add it as extra-vars to
the ansible calls.

Change-Id: I8d7c877b64cf22c00b1ad538f25ad4ff87574a8a
2018-09-18 11:39:55 +01:00
Ronelle Landy 037f0ecf61 Add another level of parent jobs for zuul v3
Add parent jobs (based off tripleo-ci-base) for
multinode, ovb, singlenode and standlone.
This will allow child jobs to override the playbooks
and tags defined.

 - add new parent jobs: multinode, ovb, singlenode and standlone
 - reparent jobs definitions
 - remove include_vars for environment_type
 - remove playbooks/tripleo-ci/vars/environment_type

Change-Id: Ib05797303e2775284125af8fbfb875676f1eaf78
2018-09-03 21:22:47 +00:00
Quique Llorente fe0c5f5f64 Calculate TOCI_JOBTYPE from individual variables
Composing bash env var TOCI_JOBTYPE from the job invidual variables
allow as to remove the redudant ansible variable toci_jobtype from jobs.

We cannot remove TOCI_JOBTYPE since collect-logs role is using it [1] (to
generate reproducer) and it's called without playbook within a generated
bash script, so major refactoring is needed to pass the new individual
variables to it.

http://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/tree/roles/collect-logs/tasks/publish.yml#n76

Change-Id: I593b989151fa70e1b5b6d2da75027529b0b911cd
2018-08-10 06:39:28 +00:00
Quique Llorente bae01d77e7 Move toci_quickstart variables to yaml
This are the variable replaced
- $UNDERCLOUD -> {{ undercloud }}
- $ENVIRONMENT ->  {{ environment_infra }}
- $PLAYBOOKS -> {{ playbooks }}

NOTE: 'environment' variable name is already taken
      that's why we use 'environment_infra'

They are stored at vars/{{ environment_type }}.yaml

Change-Id: I79d2b8b3a4bd1fbb46d80d82b9a946974c1cde8f
2018-07-26 07:39:26 +00:00
Quique Llorente 5d9a84fcf3 Set common vars at vars/common.yaml
For vars that are common to all the jobs, we can have a
vars/common.yaml file with it and add the appropiate
ansible task to read it

Included vars:
- tripleo_root
- workspace
- vxlan_vars
- extra_vars
- periodic

Also some bash input has being replaced by ansible counterpart:
- The variable 'ansible_user_id' is used instead of 'USER' bash env.

Change-Id: I3f741a78db854b7c0aa9c4751677d9a08b99228d
2018-07-19 11:47:20 +02:00
Quique Llorente 90d80f6570 Use toci scripts as templates for zuulv3
Change-Id: Ibd131a3da0906fb474178a1359de5f0788c59f54
2018-07-13 08:11:05 +00:00
Gabriele Cerami bc05b89289 Migrate undercloud jobs to the new base configurations
This changes make the undercloud jobs use the new base jobs, nodeset and
playbooks requireed to run the job with the configuration that are
closer to zuulv3.
It also adds logic to not run any vxlan networking on our own for all
the v3 runners.

Change-Id: Idf7b8a54499ef252bf7d34b3b5f16a9a34e6a83f
2018-06-29 12:50:32 +01:00
Gabriele Cerami 4101a393f2 Add new run playbook
For the migration to zuulv3 we need a different playbook that does not
rely on devstack anymore, is compatible with the new nodesets, and
maintain compatibility for the repo location, still removing zuul cloner
use

Change-Id: Ibc79cc34cdf3f2fc3f4004494c3deec167e6ecd1
2018-06-28 12:45:33 +01:00