Commit Graph

382 Commits

Author SHA1 Message Date
Ghanshyam Mann fa15022851 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

Change-Id: I3732addd9d6544f232885cd5d731104e9f804406
2024-02-24 11:45:00 -08:00
damani42 f273ccbb96 Remove the check latest packages version.
This validation can be removed. There is
a very similar playbook with the definition
of the package_list variable to check the version
of python-tripleoclient in the triple-validations
repository. This playbook is therefore not necessary.

Change-Id: I4b0a5916f93cf422def725fe2841c6867c7f1848
2023-08-31 21:44:34 +02:00
Jiri Podivin 666cc67a04 Removing OOO branch jobs
Master jobs for OOO are no longer supported. We'll drop them and keep our own to make up for it.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ib19fe6ea631682d570ee91822df0c36aea61ba6c
2023-08-01 10:04:58 +02:00
Veronika Fisarova e96c16997f Add missing validations in the documentations
Full comparison with the validations common role list was made to eliminate any discrepancies. Hence the roles check_disk_space_pre_upgrade, check_rsyslog, verify-package were added to the doc/build to correct missing validations in the documentation.

Signed-off-by: Veronika Fisarova <vfisarov@redhat.com>
Change-Id: I3bd299dce9be706185de60648ffd981255046ac4
2023-03-31 12:48:06 +00:00
Jiri Podivin 445eecf398 Bumping yamllint to 1.30.0
This change should allow openstack-tox-linters run under python 3.10 envs.

Closes-Bug: #2013048

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ice5af1abccf448fe4f3d420eeb457f52af4f22cb
2023-03-28 11:59:41 +02:00
Veronika Fisarova d00778f1cd Functional test for running validations from file
Functional tests for a change Ifc6c28003c4c2c5f3dd6198e650f9713a02dc82d

In order to use the 'validation_dir' and 'ansible_dir' parameters in the YAML file when executing the 'file' command, the original parameters 'validation_dir' and 'ansible_dir'  are changed to 'validation_dir_arg' and 'ansible_dir_arg' when using as a argument in the 'run' command.

Related-to: rhbz#2122209

Signed-off-by: Veronika Fisarova <vfisarov@redhat.com>
Change-Id: I56d974814987ef7a1cc105d4efe3123dd97f6b3e
2023-03-17 09:17:34 +01:00
Veronika Fisarova dec9846f74 Set fact for run_results returns error when previous validation run is skipped
When validation run is skipped due the unfulfilled condition, run_results variable isn't created, so the set_fact cannot be set properly and returns error which can be interpreted as false negatives. Set_fact task must be corrected so it doesn't fail even if the variable run_results is empty.

Signed-off-by: Veronika Fisarova <vfisarov@redhat.com>
Change-Id: Ibb6bf62c0291e27da6b855d7836376a029233138
2023-03-09 10:36:45 +01:00
Jiri Podivin ef9ccda96e Resolving catalog test entries for image-serve and undercloud-tokenflush
The image-serve validation was fixed by I90171b424f0678001c2ca53a1fee819993fff6f5
The undercloud-tokenflush validation was removed completely in
I6c4bdff5e253bb054231dae2c3a280322cb18b9f as it is not relevant for more recent releases.

Related-bug: #1959864
Related-bug: #1994029

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I23431b685c00730affe69fb6ebcbb3223b31057a
2023-02-14 14:37:07 +00:00
Jiri Podivin c65722311d Improving development containerfile IDE integration
Adjusted container file will provide pytest framework out of the box
to facilitate testing code from VS code IDE.
Package installation layers were consolidated in order to minimize
image size.

Default devcontainer configuration was added.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I6316860340d1d4f8ccf0e260cf94adba0f322efe
2023-01-30 14:29:14 +01:00
matbu d0ef0be278 bump tox minversion to 4.0.0 for master
Change-Id: Icd320a82543e503be3d08c6cebab1ec1eff7eccb
2023-01-06 15:19:47 +01:00
Jiri Podivin 879b056058 Adding fallback mechanism to ntp validation role
It the 'chrony_enabled' key isn't found by hiera, the validation
will now proceed as if it was disabled. This should allow for successful
run on clouds with mix of ntp implementations.

Resolves: rhbz#2156049

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ic9860b3531639e85926f5221cd9c5cde03eecfa8
2023-01-03 14:39:54 +00:00
Jiri Podivin 978cd641f3 Changes needed for full functionality of tox 4.0.0 runtime
Closes-Bug: #2000867

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Iecf59ce89006d215375b02d5ccae30ce223ef709
2023-01-02 15:50:52 +01:00
rabi 899b8f5c62 Fix ansible 2.14 incompatibility
The warn parameter of command/shell module was deprecated was
removed in 2.14[1].

[1] https://github.com/ansible/ansible/pull/77411

Closes-Bug: #1998098
Change-Id: Ib5ab3cafcfa4a95bd5a806abe757aef0916344ba
2022-11-28 20:48:28 +05:30
Jiri Podivin 9ef6e757a5 Bumping basepython version of the tox environments to 3.10
Closes-Bug: #1997256

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I624af42bed68a317a3197fe8758d63a6ba23dd46
2022-11-22 10:24:54 +01:00
Zuul 594b5d7f30 Merge "Pull flake8 from Github" 2022-11-16 09:37:27 +00:00
Takashi Kajinami 6759dde977 Pull flake8 from Github
It seems flake8 is no longer available in Gitlab. This change switches
the source from Gitlab to Github to avoid the following failure.

fatal: could not read Username for 'https://gitlab.com': No such device
or address

Closes-Bug: #1996668
Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/864603
Change-Id: I774c163376ccbd7ce43be12386834a68e18c2bec
2022-11-16 11:11:34 +09:00
Hervé Beraud e83a48d501 Remove python-dev from bindep
It is no longer supported by jammy and lead us to the following errors with the announce-release job.

```
No package matching 'python-dev' is available
```

Change-Id: I5d57b97f510fde6b50eb3aeda5febcd6ef70f994
2022-11-07 11:12:09 +01:00
Zuul ad5bf886a9 Merge "Disabling undercloud-tokenflush in catalogue tests" 2022-10-24 16:54:27 +00:00
Zuul d22dbc836c Merge "Retargetting log removal task" 2022-10-24 14:15:42 +00:00
Jiri Podivin 69033b04a8 Disabling undercloud-tokenflush in catalogue tests
Recently enabled undercloud-tokenflush validation appears unstable.
It will be placed in the skip list until the issue is resolved.

Related-Bug: #1994029

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Idcd13dd967562af9eb91720a809a6148e810110d
2022-10-24 13:22:23 +02:00
Zuul cc85a11666 Merge "Adding validations to the catalogue test" 2022-10-20 18:38:01 +00:00
Jiri Podivin f9b11a160b Retargetting log removal task
Existing log dir removal task, added with Ia4e2fbbbd02d66522fc5f92441f9b6d3c0ebd840
was targetting wrong directory, essentially becoming useless.
With this change the location will be cleaned up
before execution of the tests as intened.

Closes-Bug: #1993262

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ic2130702ca459b62a82682c7e85b89359ac6dcbe
2022-10-20 13:00:40 +02:00
Jiri Podivin b02d478d51 Adding CI task for clean up of existing validation logs
Ensuring that validation logs are empty before starting framework tests
will ensure clean environment actual testing.

Closes-Bug: #1993262

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ia4e2fbbbd02d66522fc5f92441f9b6d3c0ebd840
2022-10-18 10:10:21 +02:00
Jiri Podivin 5e8cf581a5 Adding validations to the catalogue test
Some of these validations were previously not included due to bugs,
others didn't exist at the time. Now they will be tested together with the rest.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: If4a0aa57c48f2b7ab758b1f9c6bd8ccd442b33af
2022-10-17 14:50:19 +00:00
Zuul 99a32d994c Merge "remove unicode prefix from code" 2022-09-27 16:39:32 +00:00
Veronika Fisarova 8480aa12d2 The tox.ini file edited to explicitly define the python runtime environment
An error occurs while executing local tests if the user has more than one Python3 runtime installed. Currently supported version of python environment for tox tests is 3.8. Basepython was explicitly defined to version 3.8 so the error won't occur due to a different version.

Signed-off-by: Veronika Fisarova <vfisarov@redhat.com>
Change-Id: I07e6a29f9cf1393a6cd8784163c4575fd40ac25e
2022-09-15 09:24:09 +00:00
Zuul c14a217d79 Merge "Moving verify-packages validation into 'pre-deployment' group" 2022-09-05 11:10:47 +00:00
Jiri Podivin 8eae7f0ec7 Moving verify-packages validation into 'pre-deployment' group
The validation was incorrectly marked as belonging into 'pre-deploy' group
which it didn't share with other validations and was possibly a typo.

Closes-Bug: #1988420

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Id22fea9b5ebedbbd9b786ee23fde0b2e50ac075e
2022-09-01 13:15:02 +02:00
Zuul 0b613c2c8a Merge "Add the default filter so the validations have default fallback" 2022-08-25 17:38:48 +00:00
niuke 03b47c3cbe remove unicode prefix from code
Change-Id: Ie07ff4f6e4f520fe5b097637fe58bdd076072f39
2022-08-25 10:17:19 +08:00
Jiri Podivin e73861fb68 Setting variable override for check-cpu in catalogue tests
The existing settings of the expected CPU core number was
causing component pipeline failures on wallaby release.
This overide should resolve the issue by halving the number of expected
cores during the catalogue test execution.

Closes-Bug: #1987506

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I0f012fbc454a78d13ce1f66c56699a8f2ac911ff
2022-08-24 10:59:07 +02:00
Veronika Fisarova a78141cdd7 Add the default filter so the validations have default fallback
The validation test have their arguments defined by hand, which can cause issues.
Default filter should ensure that the validations won't fail if the var negative_results has an empty value.

Signed-off-by: Veronika Fisarova <vfisarov@redhat.com>
Change-Id: I2c33f839fc1023b284633bd1562f7ec4c86b9b6e
2022-08-24 09:53:51 +02:00
Jiri Podivin 5c34b1c52b Changing filter pattern on setup module call
check-rsyslog validation demonstrated a novel syntax error
caused by form of the "filter" argument of the setup ansible module.

Modification of the argument form was made to align with module requirements.
The validation was added in catalogue tests.

Resolves: rhbz#2116304

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I15c56f71da5d7358e0a13d16bcd975d65b36c7b0
2022-08-08 11:28:49 +02:00
Zuul 472c71c3c5 Merge "Adjustment of the validations-common contribution docs" 2022-07-19 15:37:56 +00:00
Zuul 9cc9d20869 Merge "Enabling pep8 linting and fixing style violations" 2022-06-30 18:24:22 +00:00
Zuul 8d423f7f9e Merge "Update python testing as per zed cycle testing runtime" 2022-06-28 17:12:22 +00:00
Jiri Podivin e7aca613d2 Enabling pep8 linting and fixing style violations
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: If7c2cd9b00d9bf351fbf3629de16fe28a67040c8
2022-06-28 09:00:19 +02:00
Cédric Jeanneret 566dc28121 New validation: verify_package
This validation will run only on RedHat OS family (CentOS, Fedora, ...).
It calls the "rpm --verify|-V" command on the selected package, and
return its status.

Some notes:
- if the package isn't installed, it will fail
- if the package is present, but doesn't have the %verifyscript
  scriptlet, it won't fail
- "become" is needed, especially if the verification script in the RPM
  calls some root-only things, such as "semodule" (this is the case for
  openstack-selinux, for instance)
- if you set the validation to verbose, most of the output will be in
  the stdout - you therefore will have to go through the validation log
  to get the complete reason

Change-Id: I7be310cac60b6729aa3c1a67f731421f85a78d80
2022-06-16 10:38:28 +02:00
Zuul c473b46f30 Merge "Python 3.6 support removal" 2022-06-07 11:33:26 +00:00
Jiri Podivin e8a183e34a Restoring variables lost in merge commit
Closes-Bug: #1977716

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ia7c0fb0da2346c975b39a7c2a30c1083d6c190c6
2022-06-06 12:05:30 +02:00
jiangzhilin d7362dde34 Update python testing as per zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Removing the py36 centos8 job as well as
updating the python classifier also to reflect the same.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: I9189618470d8b9ba80daaed0b6aaf8f739455d6d
2022-06-04 07:59:49 +00:00
Jiri Podivin fd47e7f4ea Bumping flake8-typing-imports to version 1.12.0
Moving to version 1.12.0 will allow the library to handle the newest version
of our code intended for python runtimes >= 3.8

Closes-Bug: #1977495

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ia1aaf3bf507145977b2065efad2550c6c0f07885
2022-06-03 12:26:58 +02:00
matbu 64f1e011e6 Python 3.6 support removal
The lowest version of python supported will be Python 3.8,
to keep up with some of the adjacent components and CI jobs.

Releated-Bug: #1974244

Change-Id: I513ec696fd769f6fbef3004095898189dbe1721d
2022-06-03 07:43:00 +00:00
matbu ed1d5e44c2 Update py36 to py38 tox jobs
Change-Id: I39bdcfad9ede1456e8fd561ed3b251ebb44d8aba
2022-06-02 10:46:26 +02:00
Zuul 4982294934 Merge "Explaining stable branches in CONTRIBUTING.rst" 2022-05-27 17:32:42 +00:00
Zuul 4e6c1e6add Merge "Add baremetal Component for component CI tests" 2022-05-24 18:17:02 +00:00
Jiri Podivin 1ebe686b82 Adjustment of the validations-common contribution docs
The CONTRIBUTING.rst is now included among the files
triggering execution of the tox-docs job.
This patches a dimunitive but nonetheless extant hole
in our doc CI coverage.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I96fa87d83bfa9a5f48812c0d15504e80d4548d53
2022-05-24 10:19:39 +02:00
Jiri Podivin 723985f718 Explaining stable branches in CONTRIBUTING.rst
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I429f65498960f3555326f23b1ec2af592414a95f
2022-05-24 09:58:47 +02:00
Zuul be239e8773 Merge "Normalizing VF metadata" 2022-05-10 13:35:12 +00:00
Zuul 3829c6a265 Merge "Removing references to Babel" 2022-05-10 01:13:06 +00:00