238 Commits

Author SHA1 Message Date
Gael Chamoulaud (Strider)
4a14df80af
[service_status] Add role documentation in sphinx
This patch adds the documentation directly in the sphinx role
documentation index. All variables have been commented with a proper
description to be included automatically in the sphinx build.

This patch also disables the facts gathering because this validation is
only using the package_facts.

Change-Id: I9ebed531fba6966a4122f0c55eac784cbb6954cc
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-06-29 11:03:24 +02:00
Gael Chamoulaud (Strider)
38c4e68150
[ntp] Add role documentation in sphinx
This patch adds the documentation directly in the sphinx role
documentation index. All variables have been commented with a proper
description to be included automatically in the sphinx build.

This patch also disable the facts gathering because this validation
doesn't need them and only uses service_facts in the ntp role.

Change-Id: I3a19eb0a93f6dfaaf7a4361b46b2dc904aeb7ae6
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-06-29 10:59:04 +02:00
Gael Chamoulaud (Strider)
e5be8fb969
[no_op] Add role documentation in sphinx
This patch adds the documentation directly in the sphinx role
documentation index. All variables have been commented with a proper
description to be included automatically in the sphinx build.

This patch also disables the facts gathering because this validation
doesn't need them.

Change-Id: I99a506d17a2e76c9513745db877e5ce0ba3aae6a
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-06-29 10:55:12 +02:00
Gael Chamoulaud (Strider)
b75dc0a062
[dns] Add role documentation in sphinx
This patch adds the documentation directly in the sphinx role
documentation index. All variables have been commented with a proper
description to be included automatically in the sphinx build.

This patch also disables the fact gathering as this validation doesn't
need them at all.

Change-Id: Ica37eb5a2b1edf883d701f523a12eb47264fed7c
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-06-29 10:55:11 +02:00
Gael Chamoulaud (Strider)
a76b981cf6
[check_selinux_mode] Add role documentation in sphinx
This patch adds the documentation directly in the sphinx role
documentation index. All variables have been commented with a proper
description to be included automatically in the sphinx build.

This patch also fixes the facts gathering by being sure we get only the
needed facts.

Change-Id: Ifbe7bd73559b05f6655bfd396029c22345b75f4c
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-06-29 10:55:10 +02:00
Gael Chamoulaud (Strider)
4e87d74227
[check_ram] Remove README.md file
This patch removes the README.md file and adds the documentation
directly in the sphinx role documentation index. All variables have been
commented with a proper description to be included automatically in the
sphinx build.

Change-Id: I36c9a86eabb9a297f75c9a4ca2bde8aaa0a1fcd3
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-06-29 10:55:10 +02:00
Gael Chamoulaud (Strider)
0607efaade
[check_latest_packages_version] Add role documentation in sphinx
This patch adds the documentation directly in the sphinx role
documentation index. All variables have been commented with a proper
description to be included automatically in the sphinx build.

Change-Id: Ia24af3f62fcb4de2bbe2004117afe3a6ede40762
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-06-29 10:55:09 +02:00
Gael Chamoulaud (Strider)
5823307e67
[check_disk_space] Add role documentation in sphinx
This patch adds the documentation directly in the sphinx role
documentation index. All variables have been commented with a proper
description to be included automatically in the sphinx build.

This patch also disables the fact gathering as this validation doesn't
use them at all.

Change-Id: I6e4b95faadf2e300030d476c75e6283237b43719
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-06-29 10:55:08 +02:00
Gael Chamoulaud (Strider)
d3fc18bab1
[check_cpu] Remove README.md file
This patch removes the README.md file and adds the documentation
directly in the sphinx role documentation index. All variables have been
commented with a proper description to be included automatically in the
sphinx build.

Change-Id: Icc9581821b5ba9c2bef7c0608d989e7044017ae6
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-06-29 10:55:07 +02:00
Zuul
fb29b03c1f Merge "Allow comments in variable files to be rendered in docs" 2021-06-28 17:30:00 +00:00
Zuul
d9a991d673 Merge "Reorganize CONTRIBUTING information" 2021-06-28 10:53:57 +00:00
matbu
5d0dc7a7eb Fix the way we handle validation cli command in CI role
Change-Id: If214d99be7a2ce616f0f99700165f482d3847f79
2021-06-25 12:40:29 +02:00
Gael Chamoulaud (Strider)
cfd708aba1
Allow comments in variable files to be rendered in docs
This change will allow all comments in our variable files to be rendered
normally within our documentation. This will allow folks reading our
documentation to benefit from information we may put in the various
files.

This patch adds ruamel.yaml as new dependency for building documentation
and we won't need to include a README.md file into the documentation
role index anymore.

Co-Authored-By: Kevin Carter <kecarter@redhat.com>

Change-Id: I82f68c1d78605e5b48df3d16461e4875d34890d0
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-06-25 10:45:01 +02:00
Gael Chamoulaud (Strider)
4a7a3c940f
Reorganize CONTRIBUTING information
This patch moves all the contributing information from
doc/source/contributing.rst to CONTRIBUTING.rst file.

It also removes the installation.rst because we have the same content in
the readme.rst.

Change-Id: I87f992918e6db67d8182a1bcc3ba2637f922bcf5
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-06-23 16:29:48 +02:00
Zuul
36a2a11205 Merge "Remove messages very specific to CI" 2021-06-18 18:43:26 +00:00
Zuul
94a3ddbe43 Merge "Removing superfluous imports from tests" 2021-06-18 16:32:43 +00:00
Zuul
6686041398 Merge "Removing the 'PIP_+' string from tox.ini" 2021-06-18 16:32:40 +00:00
Zuul
cc61bd2163 Merge "Loop variable name conflict resolution" 2021-06-18 14:00:44 +00:00
Takashi Kajinami
aa6006d002 Remove messages very specific to CI
We expect validations are used not only in upstream CI but also in
actual deployments when operators want to check status of their
deployments as part of daily check jobs, and having such message
would confuse operators because they might not understand what that CI
means and the log files mentioned are not created by TripleO.

Change-Id: I1d7e1d79f4689b14a0743bd42c27baf3379f54b0
2021-06-18 09:14:29 +00:00
Jiri Podivin
12fc1f62f3 Loop variable name conflict resolution
This change resolves name collision and prevents possible
issues with the loop behavior, as noted by the warning:

	The loop variable 'item' is already in use. You should set the
	`loop_var` value in the `loop_control` option for the task to something else to
	avoid variable collisions and unexpected behavior.

https://zuul.opendev.org/t/openstack/build/ed45cae1f67343ed875b6f7126ca80c9/log/job-output.txt#3713-3717

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Id5990bba88f37636f3884553968dcbeb5c4ea88a
2021-06-18 07:43:14 +02:00
Jeremy Stanley
956de6764f Correct the tox option for skipping sdist generation
The tox option to skip source distribution building is skipsdist,
but this seems to be often misspelled skipdist instead, which gets
silently ignored and so does not take effect. Correct it
everywhere, in hopes that new projects will finally stop copying
this mistake around.

See https://tox.readthedocs.io/en/latest/config.html#conf-skipsdist
and https://github.com/tox-dev/tox/issues/1388 for details.

Change-Id: Icad8c8c48f7b34002a60aecc6b82e6ac56fd8a70
2021-06-17 17:14:13 +00:00
Jiri Podivin
d57f09298d Removing superfluous imports from tests
Several unnecessary imports were removed from test modules.
Imports of the validations_common.tests.fakes were kept.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I8d6d5057fa08be1ccd84c01837d6e4c93ce01b89
2021-06-17 08:31:36 +02:00
Jiri Podivin
66be6d9f91 Removing the 'PIP_+' string from tox.ini
Presence of the string causes following error,
when running molecule tests on local:
'Error: error parsing host environment variables: name "PIP_+  VIRTUAL_ENV" has white spaces, poorly formatted name'

After removing it the molecule tests are able to run successfuly.

Furthermore I found no reference to the purpose of the string
in either the tox documentation, or by searching for the same
string on github. It appears we are the only project hosting code
on the service, using this particular setting.

I therefore assume that it is nonessential.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I61641a1d4ddd017451b4aa7aea1e6eae6439b53d
2021-06-11 16:19:34 +02:00
Zuul
35f34ffdab Merge "New location of the default log directory." 1.2.0 2021-06-10 21:51:39 +00:00
Jiri Podivin
f07c8e73bb New location of the default log directory.
Json callback now expects the log directory to
be $HOME/validations. Just as defined in the validations libs.

Depends-On: https://review.opendev.org/c/openstack/validations-libs/+/795093

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Id1d39fd907eb154a601da68e9f75756cccfbf91c
2021-06-09 14:26:19 +02:00
Jiri Podivin
ecc67950bb functools provide reduce instead of the ansible
The ansible 'reduce' function is itself imported from the functools:
https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/six/__init__.py#L273

And thus provides exactly the same functionality.
Furthermore, the functools is part of python lib since 2.7,
so the result should be compatible across all of our releases.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I981512fa81f0eb2aac0a50a4709c517cce794fa8
2021-06-09 13:07:07 +02:00
Zuul
f4c7f00120 Merge "Renamed variable to something more illuminating." 2021-06-06 19:11:16 +00:00
Gael Chamoulaud (Strider)
92f51eadc7
Update Validations Framework IRC channels
This patch updates the information about the `#tripleo` IRC channel
after the OFTC migration and adds our brand new channel at Libera named
`#validation-framework`.

Change-Id: I48e856b688b9e724ca49858d4aca0d3f32ca2de2
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-06-04 10:04:39 +02:00
Zuul
3a087532e6 Merge "Python 2.7 environment, mimicking the one used by RDO" 2021-06-04 07:10:36 +00:00
Jiri Podivin
2e3e7f3f2b Renamed variable to something more illuminating.
The variable storing start time of playbook run was named 't0'.
While perfecly fine from a functional standpoint,
and also in statistics and physics with subscript,
it is nonetheless a bit hard on the eye.

Tests were adjusted to reflect new var name.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ie0796b1dcb8beacc08755fa04ff3cd4dd884ef59
2021-06-03 08:40:04 +02:00
Gael Chamoulaud (Strider)
4b87cf203b Bump molecule to 3.3.1
This patch also adds molecule-podman driver as a requirement
because molecule >=3.2 stopped installing it by default.

Change-Id: Icf249d47496588a966ffd13b5affebada95d33d0
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-05-27 09:36:14 +00:00
Gael Chamoulaud (Strider)
4ee27890e3 Trigger molecule jobs when modifying the following files
- ^tests/prepare-test-host.yml
- ^playbooks/molecule/pre.yml
- ^playbooks/molecule/run.yml
- ^molecule-requirements.txt

Change-Id: I765a1e9f1ca7bf5b9cc0803287f0a4b7f1b25e89
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-05-27 09:35:40 +00:00
Zuul
879be1395c Merge "Rename local variable component to validation_component for Upstream CI" 2021-05-27 07:38:43 +00:00
matbu
3a5e0de20b Rename local variable component to validation_component for Upstream CI
The usage of the component variable for the local and check jobs is
dangerous since this variable is used by the whole component chain for TripleO.
This review renamed it to validation_component.

Change-Id: Icd8e64282306479a84fc6240142ddcb28ce433e5
2021-05-26 15:03:02 +02:00
Gael Chamoulaud (Strider)
dbb069fe0a
Remove Jinja2 constraint
This patch relaxes the Jinja2 constraint since they recently released
the 3.0.1 and this latter is in the upper-constraints.

Related-Bug: #1929420

Change-Id: I55bd4ad75a925e5bdcb13b235dd2ee6f756ab318
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-05-26 12:29:34 +02:00
Zuul
d0d7da08ed Merge "Reqcheck job for upstream validations-common" 2021-05-21 08:08:16 +00:00
Zuul
f952daa740 Merge "Adds dockerignore to the repo" 2021-05-21 05:02:45 +00:00
Jiri Podivin
8cf7b42bd3 Licences are now listed for all requirements.
All required packages now have licence listed
next to their respective designations.

Licence information was pulled from pip show command
or from package repository, in cases where pip didn't
offer sufficient information.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I296be2577c85a33c91e2156ec1b36762526d599c
2021-05-20 09:33:32 +00:00
Jiri Podivin
1d2149e934 Unblocking the openstack-tox-docs job.
Fixing indentation error breaking openstack-tox-docs

Adjusts openstack-tox-docs job to be triggered by
the validations_common directory changes.

Introducing upper-requirements constraint to the
doc build dependencies.

Adjusts ansible_autodoc to handle missing molecule confs.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I8021f786476b61bbf88bf21a1151ce3198f7abbd
2021-05-20 09:56:52 +02:00
Jiri Podivin
1167633793 Adds dockerignore to the repo
Addition of .dockerignore considerably reduces the size
of newly created containers, as well as time needed for
building them.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ifa94774862c2364483454a648377b0f333b72b99
2021-05-20 05:01:28 +00:00
Zuul
ae6c7e506d Merge "Remove workaround for tox-ansible and global molecule config" 2021-05-19 20:05:00 +00:00
Zuul
b27a31532d Merge "Add testing for custom callback feature" 2021-05-19 19:02:00 +00:00
Zuul
349a7f0b8f Merge "Temporary fetch logs adjustement to detect log folder" 2021-05-19 16:44:51 +00:00
Jiri Podivin
2ae6e68d36 Reqcheck job for upstream validations-common
Zuul job queries the requirements.txt and the relevant
spec file using the `rdopkg reqcheck` to find discrepancies
in the listed dependencies.

Just like the original `rdopkg-reqcheck` this job is non-voting.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I45043407b38bdcd0c0a38b30b65b5d5f70cae76d
2021-05-19 15:20:08 +02:00
Zuul
45a525037b Merge "File validation extended to callback_plugins, main loop optimized" 2021-05-18 08:38:02 +00:00
Jiri Podivin
48c99bdcf8 Temporary fetch logs adjustement to detect log folder
fetch_validations role detects presence of the new
log folder, created via the new log path mechanism
introduced in the 36c9b8cbcbdfe35ba9b10b72c5b52a56c4ce9099
of the validations-libs.

The task should be removed once the related validations-libs
patch is safely merged.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I1a49dc16f65652ad7b1d9736d333c502d563870a
2021-05-18 08:45:26 +02:00
Zuul
5f94808a17 Merge "Fix targeting hosts to 'localhost' instead of 'all'" 2021-05-18 01:48:54 +00:00
Zuul
7dc3bacd55 Merge "Fix callback_type for validation_json.py" 2021-05-18 01:48:48 +00:00
Zuul
d5e75e0791 Merge "Bump pre-commit repositories" 2021-05-18 01:30:23 +00:00
Zuul
f275f808ca Merge "Sync is no longer loopy" 2021-05-18 01:23:38 +00:00