Commit Graph

1366 Commits

Author SHA1 Message Date
Ghanshyam Mann 9080d003d9 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: I4c7d62a3a3ef5601d04375677e1ea07f9cd9eff9
2024-02-24 11:45:13 -08:00
Jiri Podivin 44fdc64724 State and status check for cinder services was relaxed
Resolves: rhbz#2234945

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I423b11d3cf21cc53e231536323b6aad032791ed7
2023-11-21 08:31:19 +00:00
Jiri Podivin eb00c0fc9d CI restructuring
Bumping yamllint version to 1.33.0

Removing heavy CI jobs from pipeline

Removing molecule jobs from pipeline

Removing doc build and promotion

Fixing indentation in impacted ansible files

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I113f1415db37bebb359e325858094a59077ec57a
2023-11-20 10:15:03 +01:00
Zuul fd60b7dd45 Merge "Removing six from modules" 2023-03-20 17:41:08 +00:00
Jiri Podivin 0d3612e2a1 Removing six from modules
Imports and uses of six module were removed from the project.
Logic dependent on Py2/3 usage was removed and calls to functions were replaced
with closest functional equivalent.

After merge of this change, the project will no longer be Python 2 compatible
in any way.

Note: Do not backport past train branch

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Iebdaa06b6fb173d2be9921ee87a2d5db5fe84240
2023-03-10 09:25:21 +00:00
Jiri Podivin b0c1779c85 Validation checks for presence of deprecated services in the role data
This is intended to prevent issues caused by presence of deprecated services during FFU
from 16.2 to 17.1.

Role uses information retrieved from `/usr/share/openstack-tripleo-heat-templates/roles` to obtain
list of defined services on undercloud.

Depends-On: https://review.opendev.org/c/openstack/tripleo-ansible/+/862150

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I954e89e9b6980427ef5dbbea380103facd271b58
2023-03-08 14:58:33 +00:00
Zuul 9960993bae Merge "Mocking ansible module in the documentation config" 2023-02-28 13:15:09 +00:00
Jiri Podivin cec39d40a1 Mocking ansible module in the documentation config
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ic9b938bb971dead227faa33f37e9f71c5aac9b54
2023-02-22 10:26:27 +00:00
Zuul 2bbb7cde8a Merge "Update master for stable/zed" 2023-02-21 17:36:02 +00:00
Jiri Podivin 9d15f274bc Adding graceful failure condition to options dictionary lookup
Patch also refactors the 'Building list of replaceable data' task
to use less jinja templating, in favor of ansible syntax.

Additional debug statements were implemented to provide more
detailed overview of the process.

Resolves: rhbz#2150298

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I0b77c6e8116629f0b3f7c54c2f4dab0f0ab040bf
2023-02-10 16:12:06 +00:00
Jiri Podivin 5873e39b2f Adjusting depency declarations
tripleo-ansible is now listed in requiremets.txt.
tripleo-ansible and ansible-collections-openstack were removed from bindep.txt

Resolves: rhbz#2149177

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I9a30d44503cfc2754b34860a9a252c25c6baa141
2023-02-08 09:46:03 +01:00
Zuul d22be8098f Merge "Replacing attribute argument of the jinja filter with json module call" 2023-02-03 17:34:37 +00:00
Jiri Podivin 560ac96739 Refactoring default-node-count validation to use openstack-collection modules
Hypervisor statistics check has been dropped entirely, as it relies on
API deprecated by I515e484ade6c6455f82a3067940a418a0d7d965a[0]

Since reliable and standard compliant installation of ansible modules
is only possible using a collection, or system package manager,
the ansible-lint settings were adjusted to mock newly introduced modules.

Note about necessary dependencies was added to validation description.

Explanation of the mocks was added to other, previously mocked, modules,
in order to facilitate future development.

[0] 1f67ce2496

Resolves: rhbz#2149177

Depends-On: https://review.opendev.org/c/openstack/tripleo-ansible/+/862150

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I70765bfbe3f319fef8112ac633b1b3c38fb1488c
2023-01-26 11:43:07 +01:00
Jiri Podivin 6e77e9898e Replacing attribute argument of the jinja filter with json module call
It appears that at least for some versions of jinja this filter does
not reckognize the attribut argument.
Replacing it with json query is the safest course of action.

Resolves: rhbz#2134118

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ica6d2cdec7489499c79212ca01117e384d3fe6c8
2023-01-10 16:36:22 +01:00
Jiri Podivin 072985c66d Changes needed for full functionality of the tox 4.0 runtime
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I144c5791b94b3dad6a3089953a7bd084df08e0f3
2023-01-09 14:17:26 +00:00
Jiri Podivin 14354b222a Adjusting node-disks validation for new authentication procedures
Validation will now only verify primary disk of the node.
Description of the role and validation itself now includes
further instructions and explanation.

Validation failure message now recommends introspection as a next step.

node-disks.py module, associated tests and documentation were deleted

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I68b83bc9c035a4f3cfc04afb098ceb04de602691
2022-12-06 12:32:29 +00:00
Zuul 95397712d7 Merge "Changing mount parameter of podman task to volume" 2022-12-05 17:23:52 +00:00
Jiri Podivin faceb5260a Changing mount parameter of podman task to volume
This change allows oslo-config-validator containers to reach locations
on the host machine and verify local settings.

Resolves: rhbz#2127966

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I9daed3dbd6c7687f2a31370ad64cfc9f22880177
2022-12-02 10:25:53 +01:00
rabi 1ae0f58d97 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: If153ef72d9fbc0cbae7c1275ba866331f864995f
2022-11-29 14:28:52 +05:30
matbu bb344b093d Add validation to check if a reboot of a node is necessary
For Upgrade usage, this validation will check with yum-utils
if a reboot is needed by some core packages according to:
https://access.redhat.com/solutions/27943

Change-Id: Ib0ec55bfb4614b1415ab61a0077c34f4d147d43d
2022-11-24 13:50:46 +01:00
Jiri Podivin e794bac656 Bumping basepython version of the tox environments to 3.10
Closes-Bug: #1997256

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I22cb24a544e0c97fc659e2c7f212cb23e3cee074
2022-11-21 16:02:19 +00:00
Zuul b334b47e6f Merge "Pull flake8 from Github" 2022-11-16 11:28:34 +00:00
Takashi Kajinami 6dc57261eb 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: I0735454daa5fc83ea37c278b98f22870d4dfa135
2022-11-16 11:09:53 +09:00
Zuul 78195fb06c Merge "Add sysctl validation for undercloud preflight checks" 2022-11-08 19:32:03 +00:00
Zuul 8620f1a8dc Merge "Remove python-dev from bindep" 2022-11-08 18:35:34 +00:00
Zuul e15fe360ed Merge "Refactoring ironic-boot-configuration validation to use openstack collection modules" 2022-11-07 13:01:28 +00:00
Hervé Beraud 12c74369d0 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: I7c54768c6d9cda14ecb4a4d52361dcfdb267fe6c
2022-11-07 11:11:52 +01:00
Zuul f55723762d Merge "Removing undercloud-tokenflush validation and related role" 2022-11-04 17:03:25 +00:00
OpenStack Release Bot bf01a861a2 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: Idf98b4f57f87abf64be3b5d7a6616b03293bfd98
2022-11-02 16:32:09 +00:00
Zuul 55217cd19d Merge "Replace the task "Get nova_libvirt_launcher Process" to "Get libvirtd Process"" 2022-10-31 15:39:06 +00:00
Jiri Podivin 29a344f5e5 Refactoring ironic-boot-configuration validation to use openstack collection modules
Ansible modules from openstack collection will now be used to retrieve
information about baremetal nodes.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ib4172beea8452eee4f633cb18ce32a16699b4b6a
2022-10-25 11:54:25 +02:00
Jiri Podivin f48ff32457 Removing undercloud-tokenflush validation and related role
The validation has been	removed	from the tripleo-validations package
as the token management	changes	made it	obsolete.[0]

Role, molecule tests, derived CI job and documentation were removed with the validation itself.

[0] https://review.opendev.org/c/openstack/tripleo-heat-templates/+/683750

Closes-Bug: #1994029

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I6c4bdff5e253bb054231dae2c3a280322cb18b9f
2022-10-25 09:28:44 +02:00
Zuul 54aa994870 Merge "Refactoring node-health validation" 2022-10-21 16:36:14 +00:00
Zuul 3f4842ab09 Merge "Add validate_passwords_file preflight checks validation" 2022-10-21 15:03:11 +00:00
Juan Pablo Marti d6cbb646d6 Replace the task "Get nova_libvirt_launcher Process" to "Get libvirtd Process"
The process nova_libvirt_launcher.sh does not exist anymore. Replaced the search for libvirtd process. Changed the registered variable name for clarity.

Closes-Bug: #1970755

Signed-off-by: Juan Pablo Marti <jmarti@redhat.com>
Change-Id: I59e7255f5c6d9b11ee0d14f171c15843f4871225
2022-10-18 12:32:09 -03:00
matbu da989b5d57 Add validate_passwords_file preflight checks validation
Change-Id: If5dd1b46095636867647c708a79f423c7e952dfc
2022-10-18 16:56:20 +02:00
matbu f5e786a4b9 Add sysctl validation for undercloud preflight checks
Change-Id: I1d91cd980921420095105205a8deaf36cee7c571
2022-10-18 16:55:20 +02:00
Zuul 7084cf6abf Merge "Explicitly setting constraints on linters tox env" 2022-10-13 17:39:06 +00:00
Jiri Podivin bc547f3f14 Refactoring node-health validation
node-health validation will now be using openstack-ansible-collection
modules to obtain information about cloud structure and state.

This will allow the validation to be executed in environments with
more strict authentication requirements.
Documentation was updated to provide more information about authentication
procedure used.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Id3f332b7fd70a54d537dabec447ffa22a36256fd
2022-10-13 08:25:03 +00:00
Veronika Fisarova f9e2d6f933 Fixed incorrect formatting of the TV developer guide code blocks
Some code blocks weren't formatted correctly, this patch fixes it.

Signed-off-by: Veronika Fisarova <vfisarov@redhat.com>
Change-Id: I9276ca5b226db8e60af70249627cbbf07c37ef8d
2022-10-11 08:41:57 +00:00
Jiri Podivin 688b7f7da4 Removing coverchange job definition
The coverchange job has been disabled by a previous patch
as it brought no value to the project.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I473db15a3f149fae6e50f5877ad682d3334daa01
2022-09-30 06:53:05 +00:00
Zuul d0bbe840a8 Merge "Check the time synchronization and list the NTP servers chrony is trying to access" 2022-09-30 01:14:53 +00:00
Zuul a85ff6da78 Merge "remove unicode from code" 2022-09-27 16:39:31 +00:00
Veronika Fisarova dbb5cb2e0e Check the time synchronization and list the NTP servers chrony is trying to access
Time synchronization is essential for successful deployment. The chrony daemon is used for connection with the NTP pool for receiving time data, if the connection is unsuccessful the deployment fails. This validation is recommended to run if the deployment is failing on time synchronization task. This validation checks if the time is synchronized and prints NTP servers chrony is trying to access.

Signed-off-by: Veronika Fisarova <vfisarov@redhat.com>
Change-Id: Ia25673018b9ae1a44a068291de182ebf827466a1
2022-09-27 12:52:42 +02:00
Zuul a2d83a0b22 Merge "Triggering overcloud container CLI discovery task on allovercloud group" 2022-09-20 23:56:52 +00:00
Zuul e7abba9d10 Merge "Disabling coverchange job for tripleo-validations" 2022-09-20 18:01:37 +00:00
Jiri Podivin 29ad8ab342 Triggering overcloud container CLI discovery task on allovercloud group
The overcloud container CLI was previously only discovered if overcloud group
was present in the inventory. As one of the validations targets,
the 'allovercloud' group over took much of the previous 'overcloud' group responsibilities.

This could lead to an edge case when no overcloud container CLI was discovered on overcloud nodes,
and the undercloud cli was never sought. The relevant variable remained
unfilled and caused eventual syntax error during evaluation of a conditional
in the following task.

Resolves: rhbz@2127928

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I84a7c20a41698d57a379720ef0424f5220bb9edd
2022-09-20 16:03:01 +02:00
Veronika Fisarova ce05cec4c8 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: I7219d7d6e974eafbb615da201436c584ca316751
2022-09-15 11:43:51 +02:00
Zuul cf0dc62a19 Merge "Refactoring and improvement of check_ironic_boot_config tests" 2022-09-07 12:43:51 +00:00
Juan Pablo Martí 477aaa9877 Avoid failure when non DPDK instances present
Avoid the validation failure when there are non DPDK instances. The playbook fails when there are instances not containing numatune, vcpupin or hugepages settings on the domain xml content.

Closes-Bug: #1988211

Signed-off-by: Juan Pablo Martí <jmarti@redhat.com>
Change-Id: I243f7781cd72827c0a1f9623a7e994e63d1561b0
2022-08-31 10:48:25 -03:00