Commit Graph

554 Commits

Author SHA1 Message Date
Ghanshyam Mann 6b6858e8d7 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: I511202b39dc8fa3416743132a926f2402701632f
2024-02-24 11:40:47 -08:00
Zuul 910efeb558 Merge "Drop container logs collected from bind-mounted dirs" 2023-09-29 16:36:38 +00:00
Zuul d7d4b39c44 Merge "setup.cfg: Replace dashes with underscores" 2023-09-29 15:02:07 +00:00
Zuul b7430bdece Merge "Adjust regex for tripleo container image prepare log" 2023-09-15 23:31:31 +00:00
Yusuke Okada 2c182bc041 Drop container logs collected from bind-mounted dirs
Tripleo implementation mounts /var/log/containers/<name> directories to /var/log/<name> in containers.
Such paths should be dropped, otherwise such logs are collected multiple times for each containers.
When debug is enabled, logs (especially libvirt related logs) become too large to be collected in INFO_DIR.
This patch drops paths mounted from the host.

Change-Id: Ic6cd058671a5cedf8e94200937ea2bc852caf79c
2023-09-15 23:09:13 +00:00
Marios Andreou a08be36e26 Adjust regex for tripleo container image prepare log
This adjust the regex to capture any other related files
(esp tripleo-container-image-prepare-compute.log). This aligns
with the value added in [1].

[1] https://review.opendev.org/c/openstack/tripleo-ci/+/867966

Change-Id: I5f02bb542e30ffe49ac4e5ea0499dee4f03eafc7
2023-09-15 22:50:15 +00:00
niuke 066263b8d0 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I54d4f816d8de765035aa1607740345c13f9b6cc9
2023-09-15 20:43:13 +00:00
Juan Badia Payno 78f1fb3096 Collect ~/.ssh/config file
In some environment the ssh client is waiting for 10 seconds to
connect to the server, even though the use of an IP.

If we remove the dns from the nsswitch.conf the delay disapairs.

Let's check the config file, to ensure that there is nothing weird
there.

Change-Id: Ia0c2f9548d57bd4ed5091524687795aa3f5c1322
2023-09-15 20:38:21 +00:00
Sergii Golovatiuk 6815b0fb1f Fix CI issues
* Added infrared_plugin/main.yml to exclude path as ansible-lint fails as

infrared_plugin/main.yml:5:3: syntax-check[specific]: The field 'hosts'
has an invalid value, which includes an undefined variable. The error
was: 'other' is undefined. 'other' is undefined

* Bump version on ansible-lint
* Set upper limit for tox as version 4 is not well compatible yet

Change-Id: Id60cb45a96a8080c4257d33a0739d0972978045d
2023-09-15 22:30:47 +02:00
afazekas e861134a9d Reduce /tmp usage when gzip target
New images are using small /tmp volumes
by default which can lead to too many logs
created in a long running job.
Since those jobs does not using sanitizing
the gzip compression can be moved to an
earlier stage relatively easly
which is sufficient to solve the issue.

Closes-Bug: 2013321
Change-Id: Idd31cbf2adf8a8600f556e9b9375fd6f682247b6
2023-05-02 08:29:45 +02:00
afazekas 61ec0ed103 Fix elinter isort
Poetry got a new linter rule for pipfile,
which was not followed by isort,
isort stopped supporting old python, but
still released a fix for the stable branch for newer.

The black checker also show some issue,
which is not visible with current fedora37,
Just disabling it for now.

Change-Id: I42b807b03ee79e3f3c8317dfc840cb18ff344e4b
2023-04-14 13:00:58 +02:00
Arx Cruz b44c7cc7b4 Copy and unzip testrepository
In an effort for ci-logging-processing process the testrepository to
have tempest results on opensearch, the testrepository can not be
gzipped, since logging processing tool doesn't support gzipped files
yet, and also be in the root of the logs directory.

Depends-On: https://review.opendev.org/c/openstack/tripleo-ci/+/859526

Change-Id: Iebba70821f7aec02dc97477f49148064da9aa743
2022-11-21 09:32:12 +01:00
Arx Cruz 9a20147383 Fix ansible sanity and linters jobs
The ansible sanity job was failing because the new node
that runs the job was updated and no longer have python 3.8.
In order to use python 3.10 you need to update ansible-core
to at least 2.13, doing so, it also requires that we add
the ignore-2.13.txt, and update the zuul.d/layout.yaml.
The pylint complains then about use-a-generator, so updating
sova to fix the issue, once the PEP0289 [1] is from 2003,
it should work on all python versions.

The linters job started to fails because gitlab requires now
authentication to clone the flake8 repo, so moving to flake8
repo on github.

1 - https://peps.python.org/pep-0289/

Change-Id: I1370d41b0c4e057c1c65cfd75ff945d648696771
2022-11-15 13:09:26 +01:00
Cédric Jeanneret adab619a16 Ensure we get every connection/socket
the netstat command overlooked some of the connections/sockets,
preventing efficient debugging when times come to look at connection
states.

Change-Id: I4fb7650568021d89876cbc05a858a29bc2ce4dbe
2022-10-11 12:02:19 +02:00
Cédric Jeanneret 451279f069 zuul: Declare queue at top level
Zuul deprecated declaring shared queues at a pipeline level with
release 4.1.0[1]. This updates the job definition to use the top level
declaration instead.

See [2] for details.

[1] https://zuul-ci.org/docs/zuul/latest/releasenotes.html#relnotes-4-1-0-deprecation-notes
[2] http://lists.openstack.org/pipermail/openstack-discuss/2022-May/028603.html

This is similar to Ib621978bc27a33bbb568ad89d51f0aecf9a5c9f1

Change-Id: If1dcb882ba9f6ef394a479026b4d2b4495f8554c
2022-10-11 12:01:14 +02:00
Cédric Jeanneret ffb9f0e5c1 Change the output format for journalctl
The "-o cat" removes the timestamp, making it pretty useless when we
want to investigate dropped packets based on time.

Change-Id: I1534a39e01ae9ade52ef0c8cd353d49ab26b68f8
2022-08-08 08:40:37 +02:00
Bogdan Dobrelya dcbce14875 Also collect overcloud-deploy and multi-stack inventories
For newer deployments, config download stores artifacts under
~/overcloud-deploy. Those also include mult-cell artifacts.

Collect these directories, and generated static ansible inventories for
it.

Change-Id: Ibb9b5e3a153c64d44ae78b304c372287d0f4cca1
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2022-07-27 15:41:47 +02:00
Cédric Jeanneret 4a9dbcbb4f Get a dedicated, well formatted file for dropped packets
With the current[1] configuration, nft logs end in journald. In order
to ensure we get a readable output, let's just grab the important
lines and create a dedicated file.

This will NOT work for iptables backend, since nftables is configured
with some specificities we can't set in iptables.

Since the log jump is at the very end of the chain, right before the
drop, anything logged is a packet that doesn't match any rule; we can
therefore understand them as "dropped packets", and would be able to
understand the actual reason, and add potential missing rules if
needed.

[1] https://review.opendev.org/c/openstack/tripleo-ansible/+/850222

Change-Id: I36d2fe7340c525c0438efc80bf73a103d90aa44d
2022-07-21 09:24:12 +00:00
Zuul 5feaf4d3f6 Merge "Use nftables when we can" 2022-05-31 10:12:12 +00:00
Cédric Jeanneret ea02074571 Use nftables when we can
nftables content will contain all of iptables - especially starting cs8,
where iptables is a compatibility wrapper for nftables (true name:
iptables-nft).

In addition, getting a dedicated file for nftables content makes things
easier to read, especially with the nftables output (think "json", more
or less).

Notes:
- iptables will still be called if the system can't find the
  "nft" binary.
- this patch will be especially important once [1] get in, since
  iptables will NOT see any of the nftables rules.

[1] https://review.opendev.org/c/openstack/tripleo-ansible/+/841414

Change-Id: Icba6b51ba5480091adcd2e010c9e34c049216c22
2022-05-31 06:13:25 +00:00
Cédric Jeanneret fb3bbfb451 Get some more data out of OVN
It may happen we need to get some more data out of OVN - let's gather
them.

This new output may help in case we have doubts about the actual OVN
config, especially its bridge and mappings.

Change-Id: I79ceee4d9b088d8b4dd5bd6935480fc05dd2ccf1
2022-05-30 12:47:21 +00:00
Cédric Jeanneret 5f1069ba9a Some linting, and correcting deps for sanity
ansible-test seems to take the latest ansible-core by default, even if
we push upper/lower constraints in the requirements.txt or
test-requirements.txt.

Pushing the constraint directly in the tox.ini, for the "sanity"
testenv, seems to do the trick, as we're testing against an ansible
version we actually support, instead of the latest (2.13 today).

This patch also takes the opportunity to remove unwanted warnings
(ansible.cfg deprecated options), as well as ensuring the ignored
content for `ansible-test' doesn't raise any warning.

Closes-Bug: #1976251
Change-Id: I596aecd71ebe7d8a747ab8e6d05766f70dd78f1d
2022-05-30 14:14:45 +02:00
Zuul e5450815d3 Merge "Moved content from pyproject.toml to setup.cfg" 2022-05-05 16:46:08 +00:00
Cédric Jeanneret 41722efcb0 Get IPTables stats in network info
This can really help debugging issues, since we can see stats for
packets hitting the rules.

Take data out of the filter table only - but we may consider adding the
nat one if needed in the future.

Change-Id: If425a11de5a8ceaf8c3427dd14b0f135d3fa53ed
2022-04-26 11:51:08 +00:00
Jiri Podivin 24cecbfb5d Bumping black to 22.3.0
Setting desired version of black to 22.3.0 prevents issues with
the click dependency described in the #1966879.

Also modifies the docs/source/conf.py file to comply with
linting rules.

Related-Bug: #1966879

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Icb5cc90d33ffdcb15e1870e424981d435683c77c
2022-03-30 13:44:46 +02:00
Jakob Meng 2991e8f97e Moved content from pyproject.toml to setup.cfg
pyproject.toml is not conforming with PEP 621 and
only used for setting a profile for isort.

Change-Id: Ic0bf6ebef94385ca70bfd16152c828cfbbd059df
2022-03-27 09:17:29 +00:00
Sandeep Yadav ed6b3e37e8 Disable auto discovery as a workaround
Tripleo-ci jobs are broken after latest release of setuptools 61.0,
details in Releated-Bug.

Trying the workaround as mentioned in [1]

[1] https://github.com/pypa/setuptools/issues/3197

Releated-Bug: #1966382
Change-Id: I02e08ab6225a1bdc897cdebda25365fc4865c716
2022-03-25 18:25:53 +05:30
Zuul 5865c524f5 Merge "Add ipa command log collection" 2022-03-03 13:21:06 +00:00
Jakob Meng b5dd48c86b Drop deprecated non-zuul-based reproducer
The non-zuul-based reproducer has been unmaintained for years. Its
functionality is a strict subset of the zuul-based-reproducer
nowadays. Hence let's get rid of it.

Change-Id: If05b80b3a3cbf85d14e13d12af07d476a4b7b7b3
2022-02-28 16:15:40 +01:00
Bogdan Dobrelya 3ce9bdde3d Also collect container-config-scripts
Change-Id: Ifa1b0c47fee26739da778ac44032e29606dd69e4
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2022-02-22 11:01:00 +01:00
Bogdan Dobrelya d8fdd04f93 Fix slow timings regex matcher
Change-Id: Id58b76ffa608654418e41cd8ab4c3d1021102ceb
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2022-01-27 10:30:18 +01:00
Alex Schultz ae4d1c7913 Add ipa command log collection
If IPA is installed, let's capture the config and dns configuration to
help troubleshoot ipa related things.

Change-Id: Ic45d32c46dbac2e81abde1a9116d34ffad14bf18
Related-Bug: #1957083
2022-01-11 09:24:22 -07:00
Sagi Shnaidman 1809de92a6 Fix ansible-lint failure
Change-Id: I622a45d472ae3adb007f9d3f6aed5f166c49c302
2022-01-10 15:05:19 +02:00
Martin Kopec 0873c32187 Add artcl_find_* as infrared arguments
Add support for setting the artcl_find_maxdepth and artcl_find_max_size
variables via infrared's CLI when running the role as infrared plugin.

Change-Id: I3f5c26fe6ac5c69223c12d2574ce1659755c696c
2022-01-05 10:04:17 +00:00
Alex Schultz edea40ca39 Add chrony status capture
To help troubleshoot ntp, let's capture the chronyc source list.

Change-Id: Ib427181cb5f4880cc951c3b949ec9407f0f65224
2021-12-23 13:36:30 -07:00
Sagi Shnaidman 0913c46357 Use podman driver with molecule
Change-Id: I3d16e7e7de8afe123ee2b7175c242ceaf3c0af65
2021-12-09 13:44:43 +00:00
Zuul 66c819423e Merge "Replace ansible requirement by ansible-core" 2021-12-01 15:22:52 +00:00
Zuul fee053a6f1 Merge "Collect Nova instances console logs" 2021-11-30 11:42:36 +00:00
Sagi Shnaidman 2559de1892 Replace ansible requirement by ansible-core
Depends-On: https://review.opendev.org/c/openstack/tripleo-quickstart/+/818794
Change-Id: I4ae3807292d2be84f42425357b6b37dcc58b9639
2021-11-25 08:36:52 +00:00
Zuul f999ab4439 Merge "Increase timeout for container collect logs" 2021-11-24 22:08:58 +00:00
Bogdan Dobrelya ce53850b74 Also collect requests/calls took longer than 30s
Change-Id: I9b2a2465c91bb912d49eef28d5d767ffde790169
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2021-11-23 16:44:46 +01:00
Bogdan Dobrelya 4a4fba487a Collect pcs CPU throttle events to logstash
That helps to determine "slow envs".

Related-bug: #1951577

Change-Id: I11814e3fd02f3a8841a7b7038b0a5291ab51cf12
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2021-11-23 16:44:46 +01:00
Bogdan Dobrelya 529f0eecea Also collect rabbitmq report and cookies
Related-bug: #1951577

Change-Id: I73c4458bbfac04ee21f2f8ee42b8293046355911
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2021-11-23 16:44:46 +01:00
Douglas Viroel 952eb55a28 Increase timeout for container collect logs
Reason: when testing with FIPS enabled, collect logs for containers
is taking more to finish and ends timing out.
This patch updates async call timeout and async_status waiter tasks
to use the timeout in seconds defined by 'artcl_container_collect_timeout',
instead of a hardcoded value.

Change-Id: Ia936fa2894af5cf41c12a232aa0c1795d87400f7
Signed-off-by: Douglas Viroel <dviroel@redhat.com>
2021-11-23 11:32:53 +00:00
Arx Cruz 3cb42de4eb Update sanity ignore file
Updating the file to ansible-lint 2.12 and also adding the
use-a-generator for sova.py

Change-Id: I7f7802c873bf030bc15eba619dd5917680da69ff
2021-11-22 17:29:25 +01:00
Bogdan Dobrelya 07cee7b6a2 Collect Nova instances console logs
Those are needed to easier troubleshoot qemu issues

Change-Id: I3c605c471ffd8dac54d12a583f8c14146808e543
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2021-11-19 17:08:08 +01:00
Arx Cruz a1138ea71d Remove the ternary condition for sova_config
The ternary is failing for some reason, so it is better to avoid the use
of ternary and split the task in two using the when: sova_config_file is
defined or not defined.

Change-Id: Ieb1ebe58608d2445c78942062cd9a82929ffdeb4
2021-11-03 14:25:10 +01:00
Zuul 0b8d481254 Merge "Fix molecule job" 2021-10-21 14:15:18 +00:00
Arx Cruz 647c202a91 Fix molecule job
This adds the possibility to sova uses a local file instead of
downloading from github.
This is required because the verification searchs for a specific
failure, that recently was updated in the sova config file, and
the test started to fail. So, now, we use a static sova config
file to be used by the molecule, avoiding these kind of failures
happen in the future.

Change-Id: I2530188f1795a39ec6ec7e43c9ba118349c08541
2021-10-21 11:43:12 +02:00
Cédric Jeanneret e8058a1ee5 Remove the "no service" option
Apparently, sealert doesn't allow this option to be used with other
options, and returns a wonderful:
"cannot run as noservice with other option"

Change-Id: I18d2a2efd21c2748a3e74907ba0654e51bf9fe82
2021-10-19 11:10:09 +02:00