27 Commits

Author SHA1 Message Date
Eduardo Olivares
926fc6326f Tobiko adapted to python3.12
Updated requirements and pre-commit-config files to support python3.12.

Tests from tobiko/tests/functional/run have been removed to avoid
failures on tobiko-infrared-centos-9 with multiprocessing.pool module:
https://github.com/dask/dask/issues/5806
These tests were going to be removed in any case at:
https://review.opendev.org/c/x/tobiko/+/936633

TODO: after updating ansible-lint version used to 6.21.1, due to the
big amount of failures, ansible-lint is mostly skipped (see
.ansible-lint file) - this will be fixed in a follow up patch.

Change-Id: I2768cd8d0c2b5f015f1beb0e42dae67dd24f97dd
2024-12-02 15:59:32 +01:00
Slawek Kaplonski
e1105c97b7 Add topology which represents Podified RHOSP deployment
Topology class can now discover EDPM nodes based on the
data from the OCP cluster.

There are also basic functional tests for new Topology class
implemented.
Unfortunately those tests can't be run in the upstream CI
as it required OCP (CRC at least) and OSP deployment on top of that
OCP cluster. And this requires too much resources for the upstream
CI infra.

Related-Jira: #OSP-22166

Change-Id: I60385f52f01ca0dc4742ed105b14338c1317075e
2023-12-12 12:43:48 +00:00
Eduardo Olivares
9bc3c0a650 Pin podman-py version to 4.7.0
Tobiko tox virtual env creation fails with podman-py 4.8.0 due to
an issue with dependencies.
The new podman-py does not include any feature relevant for Tobiko, so
we can continue using 4.7.0.

Change-Id: I6003d5f7f36620a71e9ad31eab707edd7e81a041
2023-11-30 09:53:42 +01:00
Federico Ressi
2b6e853269 Add pytest-subtests plugin
Change-Id: I826cc04be1ae08b78572aa320f1dedc0e28ab473
2022-07-25 09:35:42 +02:00
Federico Ressi
0aa2a7b42f Add ReporPortal PyTest plugin
Change-Id: I0853cc02cf2d82bff101131089e9b342ea6e6d34
2022-02-15 05:50:05 +01:00
Federico Ressi
d65d80efdc Add podman 1.6.0 source files and update requirements
New requirements:
 - podman
 - python-dateutil>=2.8.0
 - varlink

Change-Id: I7c5ec418fd8f9c7d0d36fce033fe588a59e36f5d
2021-10-27 16:34:09 +02:00
Eduardo Olivares
1d8a0b18e6 Add tcpdump support and verify DSCP marking in QoS tests
tcpdump can be executed as a background process. A capture file,
a filter and an interface can be defined
Once the process is launched, traffic can be sent
After that, the process can be stopped and the capture file can be read
and verified if any packets have been captured

For the specific DSCP scenario, a filter is defined based on the DSCP
marking value configured for the QoS policy

Change-Id: I68a6529284aee27f162e7c27a322b83b767e2504
2021-07-21 20:06:53 +00:00
Federico Ressi
41389ec8ae Move validations-lib to core requirements
Change-Id: I228885d0a8d90058bd52eed52e32273962300a57
Depends-On: https://review.opendev.org/c/openstack/requirements/+/797011
2021-06-18 11:34:04 +02:00
r
3fa7adcab1 osp16.2 >= icorporate podman-py api usage podman_ver3, where needed
Change-Id: I5be8be3f95a0cb2a09a4988c451bdfa0d6580b2f
2021-05-22 00:56:13 +03:00
Federico Ressi
6a56f0f0fb Let rename old podman varlink package as podman1
This allows to import old varlink based podman client
ase podman1 while keeping safe to install the new
client podman-py package as podman.

To archive such result it first temporarly rename existing podman
dir, then install podman package on its place, renames it as
podman1, and finally restore pre-existing podman directory
if any initially found.

Change-Id: If834cc383f11e656f17e49d5e6fa401ac8bee829
2021-05-19 21:05:44 +00:00
Federico Ressi
190451d1ed Use pytest-cov plugin for getting coverage
Change-Id: Ifb5db0e8b1e12cf7d14045c2ccc7fc5ebfeaa40b
2021-01-27 21:11:21 +00:00
Federico Ressi
db64a23d0d Use pytest timeout and log capturing
Change-Id: I4d3394274c410ff8c424fe166a1657b2540f47fd
2021-01-27 21:10:27 +00:00
Federico Ressi
d44b3051bf Add check requirements job
Change-Id: I06e035a5570ffd25563f0483e6859ea55825b6f1
2021-01-05 13:35:44 +01:00
Federico Ressi
4d88f7d81a Update requirements
Requires docker==4.4.1 since version 4.4.0 can't be installed
Rerun tests on integration failures
Remove redundant requirements

Co-Author: pini <pkomarov@redhat.com>
Change-Id: I0cd54b6a9361e8e3c3205da2ba939baba2c6b1ce
2021-01-04 15:20:06 +01:00
Alex Katz
e759386c53 Add openstack client tests
We need to test openstack client as it may differ from the openstack
API. Added some new openstack client tests together with the module
to execute openstack commands on the undercloud node.

Change-Id: Ia4960385c7f2b7565a5e9a5888a9cb5613f45520
2020-11-06 11:49:37 +01:00
Federico Ressi
8cb808f22a Declass Pandas as an extra optional requirement
Change-Id: I244107c5d1d9a74c6fdbf3053014ff20a727e24c
2020-06-25 12:27:14 +00:00
Federico Ressi
3e2fc6c388 Add validations-libs as an extra requirement
Change-Id: I5bc1ce84a2963a0dd0e3d9e13008544c5cfe3e8f
2020-06-18 14:27:43 +00:00
Federico Ressi
0112246649 Fix requirements and use ReadTheDocs HTML documentation theme
Change-Id: Ibc24055f05b880a5f21a415078472dff21a0fb9d
2019-05-07 17:00:32 +02:00
Federico Ressi
c585ba3a95 Add Jinja2 to requirements file.
Moving other requirements from extra-requirements.txt wasn't possible
because those requirements are not uficially considered an OpenStack
requirements and would be refused by openstack check-requirements
upstream job. We should thereofre thread those requirements as
still extras.

Change-Id: Idd3c7daf38cbcac4d3c0253f13034529aaeb5167
2019-04-24 12:50:26 +00:00
Federico Ressi
081ff5240c Replace tobiko.common.utils.network with tobiko.shell.ping
Change-Id: I55504fd6387593297f671b76753410d6414ef6b1
2019-04-11 09:36:30 +02:00
abregman
9fbfe5c321 Add tobiko-fault command
* tobiko-fault allows you to run different faults on different
  nodes in your environment.
* If os-faults configuration not present, tobiko-fault will generate
  it.

Change-Id: I428aebcbcdc3c9997a0c839e6a18564433e68ba8
2019-03-20 14:14:33 +02:00
Federico Ressi
0329e30896 Add licence type to cryptography extra requirement
Change-Id: I1f998444d3c403233eebdc2dae7c1560c57904ba
2019-03-20 09:40:06 +01:00
Federico Ressi
7d7f7cc2a2 Remove dependency from crayons library.
Fix pylint error when using crayons in run.py
  http://logs.openstack.org/71/639071/3/check/openstack-tox-pylint/7447118/job-output.txt.gz#_2019-02-25_11_49_06_494351

Planify coloring STDERR messages by implementing a colored logging
formatter to be registered with oslo_log library.
  https://trello.com/c/T148yfyN/61-add-colored-formatter-to-logging-library-for-stderr-stream

Change-Id: I9b0d49c4b2946a297ccfb9a9240f191bd69d65bf
2019-02-26 11:45:18 +01:00
abregman
3b72d757d6 Add Tobiko run command
Add basic structure file for supporting Tobiko run command.

The command will be used for generating configuration and run
the tests.

Change-Id: I046b3a85e2ad3d73f983d2be0c804ee863d56d9c
2019-01-25 10:38:15 +02:00
abregman
b0c1da528f Add support for faults
Added:

* Faults manager - a compnent for managing faults (load them,
connect os-faults to cloud, exdcute faults, etc.).

* Faults for test_floatingip test class

Also, modified test_floatingip tests to run faults
if faults manager set up properly (loaded configuration file,
managed to connect the nodes of the cloud, etc.).

Change-Id: I1dd48bc9a7cc385a46d9b3b2382000581a614b42
2019-01-08 12:46:12 +02:00
Federico Ressi
1f383c2783 Update project requirements.
Change-Id: I1a8e718f1079bed2d283f1031a5056df06c07d08
2018-12-18 12:34:46 +01:00
abregman
1d40d26c04 Add method to Ansible manager to run playbooks
This will allow us to support resources creation by using
Ansible playbooks.

Also, updated the floatinip playbook to include tasks for removing
an istnace. As opposed to Heat, where we can just specify the stack
name to remove it, to remove Ansible resources we need
to specify their names (since there is no bundling of resources).

Also, updated pipfile with Ansible requirement and removed walk
assert since there is no need to test it, it doesn't tells us
anything about Tobiko funcionaility.

Change-Id: I7581818934fca635ddb9b037ecee7ceae7a02010
2018-12-13 00:16:16 +02:00