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
|1 anno fa|
|docs||1 anno fa|
|heat-templates||3 anni fa|
|playbooks||1 anno fa|
|roles/tripleo-repos||1 anno fa|
|scripts||1 anno fa|
|templates||3 anni fa|
|test-environments||2 anni fa|
|toci-quickstart/config||1 anno fa|
|undercloud-configs||2 anni fa|
|zuul.d||1 anno fa|
|.gitignore||2 anni fa|
|.gitreview||6 anni fa|
|README.rst||2 anni fa|
|bindep.txt||2 anni fa|
|requirements.txt||1 anno fa|
|setup.cfg||1 anno fa|
|setup.py||4 anni fa|
|test-requirements.txt||2 anni fa|
|testenv-client||2 anni fa|
|toci_gate_test.sh||1 anno fa|
|toci_quickstart.sh||1 anno fa|
|tox.ini||1 anno fa|
TripleO CI test framework.
Tools to help run CI jobs for TripleO. Includes things like:
OpenStack Infrastructure is deploying multiple jobs with different scenarios. OpenStack services are balanced between different scenarios because OpenStack Infastructure Jenkins slaves can not afford the load of running everything on the same node.
On March 2017, the ansible quickstart framework was added to TOCI to gradually replace the bash scripts that drove the jobs. Part of the original framework has been changed to allow the new framework to handle jobs, but maintaining backwards compatibility with the original framework while jobs are being transitioned
Upon starting a job, based on the configuration of its layout, zuul will call devstack-gate, which is needed for the basic nodepool node setup, but will then pass the control to
toci_gate_test.sh. During the transition, this will be a symbolic link to
The initial part of
toci_gate_test-oooq.sh script decides whether to exec the original workflow or continue with the quickstart workflow, based on the job type passed down by zuul layout parameters. To move a job to the new quickstart framework, it is enough to propose a change to zuul layout to add a "featureset" keyword on its type. When using the quickstart workflow, the rest of the script will assemble a set of arguments to pass to quickstart scripts, based on the components of the job type separated by dashes e.g. a job type value of "periodic-ovb-featureset001" will make the script assemble arguments to deal with "ovb" provisioning, and set featurset001 to be the test matrix for the job. This script will also invoke the test environment broker to create the proper ovb environment. At the end the
toci_gate_test-oooq.sh will pass control to
toci_quickstart.sh script that will actually call quickstart with its parameters.
toci_quickstart.shconsists of three parts, setup, invocationo and logs collection.
For more information about feature sets and test matrix please see .. _Featureset Documentation: https://docs.openstack.org/developer/tripleo-quickstart/feature-configuration.html from quickstart documentation The new workflow uses the directory toci-quickstart/ to store TripleO ci specific configurations, roles or playbooks for the quickstart workflow The parts of quickstart under scripts/ are instead handled by the original framework only
Job parameters are configured in
toci_gate_test-orig.sh. Control passes to one of the
toci_instack_*.sh scripts (depending on the type of job being run) which do environment-specific setup. These scripts then call
scripts/deploy.sh to run the actual deployment steps. For most things,
deploy.sh simply calls
scripts/tripleo.sh with the appropriate parameters.
In ascii art, the flow of the scripts would look like:
toci_gate_test -> toci_instack* -> deploy.sh -> tripleo.sh
There's some additional complexity that this description glosses over, but for the most part only tripleo-ci admins need to worry about it.
There are three functions available in tripleo-ci which can be used to alter the git repos of non-tripleo projects that are used in tripleo-ci. They only work on projects that are part of OpenStack. Use of these should be avoided whenever possible as any changes made during a ci run will not apply to regular users of TripleO. However, they can be useful for determining which commit broke something, and in rare cases we may want to use them until a project can sort out a problem itself.
To apply one of these functions during a ci run, add it to the appropriate location in the
toci_instack_*.sh script. There should be a comment that says "Tempreverts/cherry-picks/pins go here."
Do not include the bug number in the commit message where you propose adding one of these functions. Any change whose commit message includes a reference to the bug will not apply the function. This is to allow testing of patches intended to fix the bug.
As of this writing, these functions all apply against the latest master branch of the project in question. They do not respect the current-tripleo repo versions.
Revert a commit from a project. Takes 3 parameters: project, commit id, and bug number. Example:
temprevert neutron 2ad9c679ed8718633732da1e97307f9fd9647dcc 1654032
Pin to a commit from a project. This usually is not necessary now that our repos are gated by the promotion jobs. Takes 3 parameters: project, commit id, and bug number. Example:
pin neutron 2ad9c679ed8718633732da1e97307f9fd9647dcc 1654032
Cherry-pick an active review from a project. Takes 3 parameters: project, Gerrit refspec, and bug number. The Gerrit refspec can be found under the download button of the change in question. Example:
cherrypick neutron refs/changes/49/317949/28 1654032
The CI testing matrix for all scenarios is defined in tripleo-heat-templates. This matrix describes the services that will run in each environment.
undercloud ssl overcloud ssl ceph ipv4 net-iso ipv6 net-iso pacemaker predictable placement introspection