Commit Graph

829 Commits

Author SHA1 Message Date
Ghanshyam Mann f543b1f66a 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: I96704be72b4d2f5f776715d10f71799bba153c67
2024-02-24 11:44:54 -08:00
mciecier 0fd72e2100 Skip ceph update run when update is not required
Improve ceph update run tasks by detecting if ceph update is required
to not start ceph update to the same version. Also exclude ceph images
from container check when update of those containers is not happening.

Change-Id: Idd4132c75208b635c9bf06e28457e02aeb314708
2023-02-28 15:05:39 +01:00
Zuul cfc2debcfe Merge "Fix collecting log of running vm." 2023-02-20 18:22:01 +00:00
Zuul 1afc87093e Merge "Check podman containers update during logs collection" 2023-02-18 03:28:09 +00:00
Sofer Athlan-Guyot 46ed6780c7 Fix collecting log of running vm.
The directory is created under root so we need to become one. The
overcloud command is fine as /etc/openstack/cloud.yaml is correctly
defined in CI.

Change-Id: I289ecaa7ca7bdf7b295593dd430f513e8c24b3f8
2023-02-17 16:56:12 +01:00
mciecier 9e97d5646a Check podman containers update during logs collection
Add validation for podman containers update

Change-Id: I4329e250d811628dbc2c1cf906052458f1bcc649
2023-02-16 18:19:41 +01:00
Zuul fdc122d544 Merge "Add log collection during update." 2023-02-15 13:04:42 +00:00
Sofer Athlan-Guyot d65c814286 Add log collection during update.
Currently, the jobs only collect log at the end of the update.

Add some log collection during the update to the /var/log/extra
directory of each host to get information before the update and during
the update to ease debugging.

Change-Id: I2c4b59b2ab8f8b0d64c9982b528d927d3f6f2436
2023-02-14 12:03:09 +01:00
mciecier 179f47c92b Remove --playbook all option from overcloud update run
There is no need to explicitly pass '--playbook all' to openstack update
run command, because it is no longer relevant and 'all' is a default[1].
Also for minor update there is only one playbook generated from heat
stack output[2].

[1] https://github.com/openstack/python-tripleoclient/blob/master/tripleoclient/v1/overcloud_update.py#L178
[2] d027aa968a/tripleoclient/constants.py

Change-Id: I20da51e9794ce6cea5d976f17baa125e5a336975
2023-01-30 16:58:54 +01:00
mcgonago e74225cd9e Change overcloud ssh user from heat-admin to tripleo-admin
Heat-admin user was dropped completely for overcloud deploy, update and upgrade playbooks[1] and for config-downloaded playbooks as well[2].

[1] https://review.opendev.org/c/openstack/python-tripleoclient/+/850098/2
[2] https://review.opendev.org/c/openstack/python-tripleoclient/+/849780/4


Closes: OSP-19513
Change-Id: I37e4cc33d78288f7b507fc07918b20fefd1c0d33
2022-12-15 18:57:24 +00:00
Jesse Pretorius (odyssey4me) ca284f8785 [workload_launch] Update µversions for Wallaby & Zed
The microversions are key to ensuring that the workload
testing works whether the Undercloud has been upgraded
or not. These are set to ensure that we do all workload
testing at the source version.

Microversions are updated for:

 - Nova [a]
 - Cinder [b]
 - Manila [c]

[a] https://docs.openstack.org/nova/latest/reference/api-microversion-history.html
[b] https://docs.openstack.org/cinder/latest/contributor/api_microversion_history.html
[c] https://docs.openstack.org/manila/latest/contributor/api_microversion_history.html

Change-Id: I8fe9727570c193f96de99b812f223c7ca7dc4761
2022-12-05 13:47:49 +00:00
Lukas Bezdicka feef2cb04e FFWD3 Refactor ffwd upgrade for train to wallaby
This is first attempt to test whole upgrade procedure from
Train to Wallaby. We for now deal just with the OpenStack
upgrade part without OS upgrade step. When we will understand
the process better we will refactor this code.

Changes:
- Remove tls templates comversion.
- Cleanup adjust-roles-data. We might introduce new ones.
- Handle the network switch to ansible templates
- For now use Fast Furious procedure to generate playbook
- Add ceph adoption workflow from ceph-ansible to cephadm

Co-authored-by: jbadiapa@redhat.com

Change-Id: Iae1c9ef1244676589ee505201093daa52704a438
2022-11-24 17:31:59 +00:00
rabi 39936a4d0a Remove ansible-core and molecule pins
This fixes the current linter job issue.
Also makes necessary changes for molecule 3.x.

Change-Id: Ia162563838c59c47fbcd1cc3e60af496674be9e1
2022-11-24 21:43:48 +05:30
Zuul 82d657351e Merge "Update master for stable/zed" 2022-11-23 14:50:48 +00:00
Zuul 4e526efb77 Merge "Create entry for empty groups in inventory_rolemap" 2022-11-03 18:10:01 +00:00
OpenStack Release Bot 4292f92228 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: I625ba2be680c5f2091966e8285b041cdc015bf35
2022-11-02 16:31:08 +00:00
Daniel Bengtsson 81befed97a Fix the condition for the cinder resource.
The disk must be also in status available not only be created.

Change-Id: I9d69e087bd8ab7fc5a1d34f94ca4882b06117829
2022-11-02 14:03:58 +01:00
Oliver Walsh 2eea005773 Create entry for empty groups in inventory_rolemap
When a group is a child of another group then the child groups role mappings
are added to the parent group role mappings. This which fails with a
KeyError when the child is an empty group as no mapping is created.

Closes-bug: #1994081
Related: rhbz#2089512
Change-Id: I05f4989b0f14d56d3c33f91b3cccb85b729987cb
2022-10-28 13:03:35 +00:00
Zuul ab07962e33 Merge "Add a loop sleep for cinder create and delete." 2022-10-27 13:55:01 +00:00
Daniel Bengtsson 9d1d50a861 Add a loop sleep for cinder create and delete.
Previously volume creation was fast enough, but it doesn't seem to be
anymore. Add also a loop sleep during the deletion.

Change-Id: I88c73a7789c2246a12b80e52829f8f2f1a0a10e5
2022-10-25 19:03:01 +02:00
Jiri Podivin d9d3ce1578 Removed tasks using unsupported NIC config script
`merge-new-params-nic-config-script.py`from Tripleo Heat Templates
is no longer supported and will be removed for Zed release
along with the `convert_nic_config.py`.

Tasks using these scripts have to be be removed as well.
This includes indirect usage, and inclusion of the tasks
in FFU process.

Related: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/860691

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: If769954dea48cba5b9cc52871a18735e8520a0ab
2022-10-25 11:59:30 +02:00
Khomesh Thakre 1a704df060 Bump cirros verision to 0.6.0 in plugin.spec file
Change-Id: Ic0c6ee8bdfef244d048d98a9c7b7c6b244ca685e
2022-10-17 10:33:31 +05:30
Zuul 74ce2fe824 Merge "Make a workload_launch script more robust" 2022-10-07 22:10:22 +00:00
mciecier f78db9fbc6 Make a workload_launch script more robust
Add more error detection in workload_launch script to fail script early
when the error occurs.

Also, make ssh test to run by default to be sure created vm is
accessible via floating ip, before saving its floating ip to a file. The
file is used in ping test and we need to make sure it is not present on
undercloud when vm fails to boot or is unreachable.

Change-Id: I1057de8dde62fef7e2e00880704d7f3bb3bf6b19
2022-10-06 10:45:04 +02:00
mciecier f3be13b37e Bump Cirros to 0.6.0
Due to [1] cirros should be bumped to 0.6.0

[1] https://bugs.launchpad.net/tripleo/+bug/1991231

Change-Id: I0f3d115512c5593eff9556d1ca1aca4e465fb29b
2022-09-29 11:47:12 +02:00
Zuul 06888b1bd8 Merge "Make sure create_workload tasks inherit the always tags." 2022-09-15 13:02:17 +00:00
Archana Singh 224d964ba7 Ensure fencing is correctly handled during update
If overcloud is deployed with fencing enabled, then
we should temporarily disable fencing for the duration of the update.
We are introducing a pre-undercloud update step to disable
it and post-update step to enable it back.

Change-Id: Ie6324fc2c9cdbeac6126e5bdbbce41f23e143be5
2022-08-24 14:31:41 +05:30
Zuul aeae76a79b Merge "Changed minversion in tox to 3.18.0." 2022-08-02 03:33:15 +00:00
Zuul b6491c5606 Merge "Add additional tags to update validations tasks" 2022-08-01 15:32:32 +00:00
Daniel Bengtsson 583bed082e Changed minversion in tox to 3.18.0.
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals[1] by allowlist_externals option.

[1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I40e50948961cfbd6eb1dae1a05154c408cc15513
2022-08-01 12:44:40 +02:00
Lukas Bezdicka 93e1f8c3a2 Make sure patch reports issues and ignores test files
Change-Id: I921332d0a15a72e8f9d7fcd4348ed1a9f3a65983
2022-07-28 13:25:56 +00:00
mciecier fff4372fb3 Add additional tags to update validations tasks
To be able to run selectable validations ansible tasks, additional tags
are added to all update related validations tasks.
By introducing this change one can run only specific validations with
ansible tags mechanism.

These new tags are introduced:
- pre_update_validations
- pre_update_prepare_validations
- pre_update_run_validations
- post_update_validations

Change-Id: I57d6680f16b2bdc9026a3f8175470f35611a6b45
2022-07-18 20:20:41 +00:00
Zuul da42c17c4a Merge "Change a list of files for leapp" 2022-07-15 13:07:17 +00:00
Sergii Golovatiuk 10eec1d716 Change a list of files for leapp
* Remove repomap.csv as it was removed by leapp (f09c8add)
* Add an actual list of files
* Add retires and delay to improve resilience over networking issue

Change-Id: I710f2703b57de330cacf6d1e631180f4c0f13fba
2022-07-13 11:21:28 +02:00
Sergii Golovatiuk fa5da6083b Append item to custom_env_files of undercloud.conf
Append item to custom_env_files if it's already present in
undercloud.conf
Insert custom_env_files when undercloud.conf doesn't have it

Closes-Bug: 1981081
Change-Id: I0d62ad4e10e1dbb2a6019815fc133237f6ee40fe
2022-07-13 11:19:21 +02:00
mciecier 43b712d476 Monitor ceph update status with 'ceph orch upgrade status' cmd
Instead of 'cephadm shell -- ceph -s -f json | jq .progress_events' we should
use 'cephadm shell -- ceph orch upgrade status' to monitor progress of ceph
update to determine (1) whether an upgrade is in progress.

[1] https://docs.ceph.com/en/quincy/cephadm/upgrade/#monitoring-the-upgrade

Change-Id: If19485304508b5d2979ddc7c6050ea87b06a99c6
2022-07-07 13:03:36 +02:00
Mikolaj Ciecierski da06f273cd Adjust ceph minor update section
From wallaby+ Ceph is deployed by cephadm and minor updates
are considered day2 operations that can be performed using the
cephadm cli [1].
This patch adjusts current automation from the tripleo-upgrade
project for ceph update related tasks.

`overcloud external-update run --tags ceph` command is replaced with
cephadm. The 'ceph' tags were removed from tht[2] and ceph update can't be
run with TripleO commands. Cephadm should be used instead to safely upgrade
Ceph from one release to the next.

[1] https://docs.ceph.com/en/pacific/cephadm/upgrade/#starting-the-upgrade
[2] https://review.opendev.org/c/openstack/tripleo-heat-templates/+/830051

Change-Id: I5fe5c10b9f997b12cb87a24cbf00a48f2f6cca8c
2022-07-04 12:56:46 +02:00
Zuul 8d637c356e Merge "Moves the shared zuul queue tripleo to the project level" 2022-06-26 19:41:03 +00:00
rabi 1ae04110e0 Use already available ansible inventory
Ie02259336c763cfa980b59ad64f9e478d05690fb dropped
the script which is used everywhere.

Closes-Bug: #1979707
Change-Id: I55e29ba86a847a14a363c224055885bfd086fbb6
2022-06-24 09:38:21 +05:30
Marios Andreou 2a252cb2f4 Moves the shared zuul queue tripleo to the project level
See [1] for more information

[1] https://lists.openstack.org/pipermail/openstack-discuss/2022-May/028603.html

Change-Id: I636118d7fb99797f9bb39e5ad614ee9601e8250b
2022-06-23 14:54:27 +03:00
Sofer Athlan-Guyot b9c5180034 Fix validation inventory setup.
The tripleo-ansible-inventory needs the authentication information in
the environment and the inventory option doesn't work on train.

Change-Id: Iae27f89e64a9276017a453db194e9f357ef338e2
Closes-Bug: 1973743
2022-06-16 08:26:28 +00:00
mciecier 7c3968536f Make config-heat and config-resource options comptatible with OOOQ
The original implementation restricted the usage strictly to infrared, see[1].

[1] https://review.opendev.org/c/openstack/tripleo-upgrade/+/709972

Change-Id: I8a985e496aa0161193becb38ad043835c4c21778
2022-06-01 14:30:29 +02:00
Khomesh Thakre f0a071b27b Install pkgs required to apply workarounds
Make sure packages required to apply workarounds
are installed.

Change-Id: I5b8a54736655b3cd0c518016ad41c3742fba4329
2022-05-10 14:40:05 +05:30
Lukas Bezdicka c003ac529b Nit cleanup for fast and furious upgrade tasks
Change-Id: Ia410b9a86a69d2403164a97def234f61da87a406
2022-04-11 18:27:48 +02:00
Brendan Shephard 13d7a4c60e Disable auto discovery
Tripleo-ci jobs are broken after latest release of setuptools 61.0
because of breaking changes which are not backwork compatible,
details in related bug and [1].

Users that don't set ``packages``, ``py_modules``, or ``configuration`` are
still likely to observe the auto-discovery behavior, which may halt the
build if the project contains multiple directories and/or multiple Python
files directly under the project root.

To disable auto discovery, one can do below in setup.py

~~~
setuptools.setup(..,packages=[],..)
~~~

or

~~~
setuptools.setup(..,py_modules=[],..)
~~~

Also, adding ^setup.*$ under irrelevant-files as content-provider
parent[2] also have same.

[1] https://github.com/pypa/setuptools/issues/3197
[2] https://opendev.org/openstack/tripleo-ci/src/branch/master/zuul.d/base-upstream.yaml#L92

Releated-Bug: #1966382
Change-Id: I643952b64d557f3bd81699e505588133cfe02f52
2022-03-28 15:01:00 +05:30
Brendan Shephard 4958251d91 Make the network_data search more inclusive
It's possible to also use --networks-file instead of
-n in the overcloud deploy command. This change adds
a secondary search string to the awk command to ensure
we capture the file regardless of which argument has
been used in the overcloud deploy script.

Resolves: rhbz#2064354

Change-Id: I2387d508f9dc91dc71c19ae3625fe093d33c2bc0
2022-03-16 12:06:03 +10:00
Zuul 3992d768e9 Merge "Run control plane update first, next compute and cephstorage last" 2022-03-15 03:36:33 +00:00
Sofer Athlan-Guyot 265588950a Run control plane update first, next compute and cephstorage last
Make sure compute role nodes are updated after the entire control
plane has been updated even in composable role and cephstorage role
nodes are updated last.

In composable deployment the control plane is sliced up in controller,
database, messaging. Currently we only ensure that controller get
updated first, so messaging or networker for instance get updated after
compute.

This kind of disruption in the control plane can lead to unexpected
issue on the compute role. Furthermore they can be seen as false
positive as the compute role would be updated after the all the
Controller roles.

Change-Id: Ib3bf87510763edc86f2300e3b28708f6ef38ea18
2022-03-11 09:42:22 +01:00
Zuul 9ca63da41f Merge "Fix ping_results_*.log file name" 2022-03-07 13:31:25 +00:00
Zuul 99b4d76e5d Merge "Ensure migrate all the VMs before upgrade the compute" 2022-03-02 14:23:18 +00:00