Commit Graph

131 Commits

Author SHA1 Message Date
Roman Safronov
ce9d938cd6 Add --overcloud-ssh-username option to Tobiko InfraRed plugin
It adds the ability to specify custom tripleo.overcloud_ssh_username
option to tobiko.conf file.

This is needed for some downstream jobs that use a custom ssh user
rather than default one (heat-admin).

Change-Id: I42a8e2d294bbe21f127150d45670be0a540b9e2f
2021-09-01 10:44:26 +00:00
Federico Ressi
66744be59c Remove quota handling from tobiko-configure role
Change-Id: Ic9948410664542d80b0b445ded03ccdd64201818
2021-07-20 19:51:40 +00:00
Roman Safronov
d652328de4 Create workflows for OVN migration
This patch adds 2 workflows for creating and checking resources
relevant for ML2OVS to ML2OVN migration scenario.

Change-Id: I4a425fbdbe48759780de1456c3fbf8123157cfb4
2021-07-15 13:19:08 +00:00
Zuul
88fbfe6329 Merge "Add option to skip all remaining test cases after a given timeout is expired" 2021-07-10 00:15:58 +00:00
Federico Ressi
61a6332185 Add option to skip all remaining test cases after a given timeout is expired
After some given seconds of timeout test runner execution self-interrupt
to avoid hitting jobs timeout.

The problem is that when it occurs all remaining test cases that didn't started
yet are missing from the reports.

This changes things by marking such test cases as skipped, so that we
can see it from test results.

Change-Id: Idd0064812fc5a2da295712914c4531bdef466c24
2021-07-09 09:39:32 +00:00
Federico Ressi
3fa4d50d71 Accept yaml format for --tox-enviroment Infrared plugin option
This allows to execute below command line:

  tox -e infrared -- --tox-environment '\{VAR1: VALUE1, VAR2: VALUE2\}'

Change-Id: Ic6cc2f62f9baa8d2e6d233209de1ed3f22f7887c
2021-07-08 20:11:50 +00:00
Federico Ressi
1cb0c3d814 Fix issue when noise neaks into get_python_info.py script stdout
Change-Id: I36f9e80199115b628993814f8751ce834f84f467
2021-05-03 11:24:43 +02:00
Eduardo Olivares
8073f3ae5a Fix "raise error in case of timeout" task from tobiko-tox role
Change-Id: I2fb9090edac3e6c764df56fbe971b5b8ec69ee6c
2021-03-23 11:23:33 +00:00
Eduardo Olivares
ce7e827c60 undercloud_ssh_hostname should include FQDN suffix
Change-Id: I00e6af739caaf458674a6f1ca134b14f7b683ed4
2021-03-22 15:31:24 +01:00
Eduardo Olivares
84d8592c82 Force failure when test execution times out
Change-Id: Ie585f6de6c760f02a8b2cf169a0f4a768f52db95
2021-03-12 09:19:43 +01:00
Eduardo Olivares
e21d209587 Set undercloud_ssh_hostname on tobiko.conf
Tobiko IR tasks failed on some downstream environments when the
undercloud hostname was not undercloud-0

When this happens, the tobiko IR command can be executed with
--undercloud-host or --underclout-ssh-host options

RHOSENTDFG-1695

Change-Id: Ife055b62682044bdc446e6447ef9da562fe4bb73
Co-Author: Eduardo Olivares Toledo <eolivare@redhat.com>
2021-03-09 13:40:29 +00:00
Federico Ressi
60483d8eb9 Gate Tobiko projects running faults test cases
Change-Id: I2c4dd48b7ee3563f8a3cc2c9fac46b910140146b
2021-02-02 08:16:58 +00:00
Federico Ressi
7fcb7acbb3 Rerun test cases of the last verification step
Change-Id: Ic146fd7d0a7325e341d3ea1cb509ea158f9ebdec
2021-01-27 16:21:03 +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
Federico Ressi
3ce3c741e5 Switch to pytest test runner
Change-Id: I8132e07ad624fe9faa01265d700b5eb37b94815f
2020-12-18 13:51:08 +00:00
Federico Ressi
27e0ce5ef3 Add workflow for gating tobiko changes
Change-Id: Id08b4926af065e103b931318816e4e6fe3363ae2
2020-12-17 14:21:31 +01:00
Federico Ressi
7d5d82d02e Fix --tobiko-refspec option in IR tobiko plugin
Change-Id: Ifaf1d5946ec2dad569faa3e205f4f50018ed63be
2020-12-01 12:16:19 +01:00
Federico Ressi
b9574a0aa4 Remove DevStack support from tobiko repository
- Use Tobiko project as default tests directory on zuul jobs
- Remove DevStack plugin

Change-Id: I3f1ab818d835bb5db050d6cbe64dc20fc98b6610
2020-10-01 14:34:39 +02:00
Federico Ressi
31a9a6e8e6 Add a timeout for workflow stages
Change-Id: I9938a8bbd71ab131c8b6a2210e5d1a903ef21efd
2020-09-28 12:04:49 +02:00
Eduardo Olivares
99ce6a399c Install python3 from correct repo with rhosp-RedHat-7.9 setups
Tobiko stage was failing on Downstream OSP13 jobs because it tried to
install python3-devel from rhelosp-rhel-7.9-server-opt repository, which had
some problems with dependencies (specifically with package python3-libs)

With this patch, any other repo matching  rhelosp-rhel-*-server-opt*
is enabled and python3-devel can be installed successfully

Change-Id: I4b3db12ffccef7ff6357e2ef96c27e238572b5fc
2020-09-15 08:33:22 +02:00
Zuul
b3517cd4c0 Merge "InstanceHa seperate from HA tests" 2020-09-07 16:48:15 +00:00
Federico Ressi
a8fd02960c Ensure python-docutils package is installed
- Use IR fix for setuptools installation [1]
- Restore voting to 'tobiko-tox-infrared-centos-8' job

[1] https://review.gerrithub.io/c/redhat-openstack/infrared/+/501507

Change-Id: I04dafdae5cc62a4c470204e0ba816e9bde522aaf
2020-09-01 08:21:12 +02:00
pinikomarov
4767016bdc InstanceHa seperate from HA tests
Change-Id: I373ec078e03107c7ec528886e76e5141eaf618fb
2020-08-30 23:02:08 +03:00
Federico Ressi
c7d56d0213 Configure CI test cases timeouts
Set following default CI timeouts:
- 30 minutes for DevStack jobs
- 2 hours for IR plugin

Change-Id: I202bb5a6896817043b2514e591cc1ae37be7bf8f
2020-08-21 14:07:12 +00:00
pinikomarov
154c0981f5 add workflows create and check for octavia specific test scenarios
Change-Id: I95ceb3fcfaa11c177d904891b5aabb898f938d86
2020-08-21 00:55:46 +03:00
pinikomarov
01153bbf7c fix workflow check resources faults into a dict
Change-Id: Iaae3c0e4da8524ef49d45da4f32d6133f1d224b3
2020-07-27 15:21:30 +03:00
pinikomarov
afaf06f329 add check-resources-faults check for post upgrades/updates checks
Change-Id: Ic116e9f1c81cb6bd9d64f65e77dd143d6855f038
2020-07-16 11:51:30 +03:00
Zuul
43e31b1529 Merge "Use InfraRed master version for RHEL 7" 2020-07-03 14:37:36 +00:00
Federico Ressi
be4ab43b37 Use InfraRed master version for RHEL 7
Change-Id: Id4e757befb33d69af8cbe6acb21192f6c11e0622
2020-07-03 14:07:13 +02:00
Federico Ressi
5252001658 Introduce pre-commit hooks for linters verifications
Change-Id: Icd098df8adf72bf53955b0f07d9ed606c7803296
2020-07-03 06:15:47 +00:00
Federico Ressi
39cfc87676 Fix ansible-lint failures
Change-Id: I452cde8a2c6ea65f0ec81d971e07a406e57067a7
2020-07-03 05:20:10 +00:00
Federico Ressi
a5d82af9c4 Avoid sudo's 'secure_path' value from affecting stack.sh/unstack.sh scripts
Change-Id: Iffdf99bb00ec24b95269985aab969fd2c6896676
2020-06-29 10:45:32 +00:00
Federico Ressi
2a1926ec96 Fix tobiko-devstack role
Change-Id: I9b3625701cbf3d4b16222f1a61de32cc6148d453
2020-06-26 15:36:40 +02:00
Federico Ressi
43e88151b2 Fix copy of local.conf (permissions escalation)
Change-Id: I836a2884a2cb9cf381be8d9de223c59047242711
2020-06-26 10:33:39 +02:00
pinikomarov
ef8453eddb Set default log to non debug, currently debugging tests is very difficult
I really can't figure out where the test failed and what actions tobiko did
each test should be verbose enough so that new users will not spend more than 5 min
in tobiko logs , to figure out what broke

Change-Id: I3972b7b78f7c6154e03588413520363c03eb626c
2020-06-24 11:02:42 +03:00
Federico Ressi
07e593f829 Rewrite Vagrant file using ansible and Centos 8
Depends-On: Ifa876b3e5f89258f40055fa7ce03f5e9c601771c
Change-Id: I806c76bff85210f74cd23c29835f41c174b8c960
2020-06-23 11:47:17 +02:00
Federico Ressi
bb0a45ffde Update role tasks to reduce false 'changed' state
Change-Id: If7b1d35bdf89a249214b81ee8979c16cea275789
2020-06-22 13:11:54 +02:00
Federico Ressi
846fd51a97 Handle non-RHOSP hosts without rescueing from an error.
Change-Id: I2f8bee52d8fd5b9e28c9b366e3b4ccc064429fa8
2020-06-22 11:13:04 +02:00
Federico Ressi
2c38d883bb Use special RHOSP vars files in tobiko-ensure-python3 role
Change-Id: I09055d0610ddc26c0ada947f95d823c28e9494b4
2020-06-10 05:33:10 +00:00
Federico Ressi
1702b42ff4 Automaticall use Python 3.8 IR patch when required
Change-Id: I71f02b9944c0a5d09e029a54625f0259c9fa9eaf
2020-06-09 12:15:14 +02:00
Federico Ressi
711cfcb6ad Add py3 prefix to Python 3 platform vars files
Change-Id: I577f2558bb1468478fa6c86b65646286a49fffac
2020-06-08 15:19:19 +02:00
pinikomarov
31ce2569c1 Fix rhel optional repo not found and not reported as error
error links:
http://pastebin.test.redhat.com/872688
http://pastebin.test.redhat.com/872689

problem 1)
currently even a made up repo enable command returns zero:
[stack@undercloud-0 ~]$ sudo yum-config-manager --enable petepan-repo-rhel-7
[stack@undercloud-0 ~]$ echo $?
0
we can switch to using "shell" ansible module, and grep for the baseurl
so that the if it fails we'll actually catch the error

problem 2)
no such thing as rhel-7-server-optional-rpms repo (exists only in som latest versions)
what does exist is : rhelosp-rhel-7.8-server-opt
and we can use : rhelosp-rhel-*-server-opt
to be version agnostic

Change-Id: Icd5c62d3d421e0f561032620ab3548d32b4ff387
2020-06-08 03:29:12 +03:00
Federico Ressi
12db48915f Enable rhel-7-server-optional-rpms repo
This allows to install 'python3-devel' package removing
therefore the need for compiling python on RHEL-7

Change-Id: I103f5d52fee4f54dba03588b469da3bae66e714d
2020-06-05 09:59:53 +00:00
Federico Ressi
38b58a6d0e Enforce using compiled python release on RHEL-7 by pinning 3.7 release
Use the same configuration for CentOS-7 and RHEL-7

Change-Id: Ie18bcfcab53e4d5c82d19a002ae4dded15a5e6cd
2020-06-04 14:12:46 +02:00
Federico Ressi
15fa84f133 Compile Python3 on RHEL-7
Change-Id: I20a8764560174fde7cee9147afd0bd3dc01bfb51
2020-06-03 18:59:18 +02:00
Federico Ressi
d4b18155a4 Remove python3-devel package from RHEL-7 bindeps
This allows running InfraRed jobs against RHEL-7 hosts
Test cases are going anyway to fail because python3-devel
is actually required by Tobiko python dependencies.
Romoving this package from dependencies helps fixing
other issues before package lack is solved.

Change-Id: I47aeae358652a7ee5618d8cec9dae01f872f5c40
2020-06-03 16:00:18 +02:00
Federico Ressi
64308b3eb4 Add Fedora 32 IR jobs (with Python 3.8)
Change-Id: Ie3d720f8a42ae1d7b20f43f673b8f80592971dbb
2020-05-25 10:28:13 +02:00
Federico Ressi
c85c3af404 Disable tempfs mounting on /tmp of Fedoras
There a no-space left error affecting pip packages installation
when using Fedora-32 withing Vagrant

Change-Id: I900656f23f5fd9da448294477a174565b29a9a1e
2020-05-25 10:22:37 +02:00
Federico Ressi
302a5711c5 Add support for Fedora 31 and Python 3.7
Change-Id: I118074705c9b83167914d1d0d568f8727d2076e3
2020-05-20 16:16:29 +00:00
Federico Ressi
2f95d7a975 Add support for ubuntu 20.04 LTS and Python 3.8
Change-Id: Ie1972f708bd0901117cfcb8341b55b8e6ef3cf64
2020-05-20 11:25:25 +02:00