36 Commits

Author SHA1 Message Date
Federico Ressi
e4347ef32e Set default stable tag to 0.4.7
Change-Id: If41805aea413a318c9f9553ce580083d6f53a206
2021-09-02 10:51:01 +02:00
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
Eduardo Olivares
7bdc484d53 move default tobiko install to new stable tag 0.4.6
Change-Id: I1b9d5259471965628913282b6800d7491b5ec4b6
2021-08-24 11:37:56 +02:00
r
d12bc00c2e move default tobiko install to new stable tag
This will include the unblock faults fix
0.4.5 tag commits list:
https://opendev.org/x/tobiko/commits/tag/0.4.5

Change-Id: Id01400fa485f78bb8b023c60b2b437c0253da0fc
2021-08-10 20:41:08 +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
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
8c73e8bffe Use tobiko 0.4.0 as default version for Downstream jobs
Change-Id: I75b9364ec5d1d02015443acd700aad5cd797f23f
2021-02-09 10:40:17 +01:00
Federico Ressi
ba4ba20480 Pick the first tester, undercloud or tempest node from inventory
Change-Id: I26ec08ef20508feddb681718d91bd03a1ab3df24
2021-01-28 14:47:04 +00:00
r
b0fdc49eab tobiko IR version : set default execution version to 0.3.1 tag
Change-Id: If98f681b7039e36f26059417b6645d2193a7bfb8
2020-12-24 14:59:01 +02: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
5c2492a56d Get IR from master branch version
Change-Id: I46e0960de851f29bba943c3f7151f4a85980109a
2020-11-26 13:31:51 +01:00
Zuul
0c2560f0fa Merge "Update InfraRed requirements file" 2020-09-30 08:28:58 +00:00
Federico Ressi
0ad1350147 Update InfraRed requirements file
Change-Id: I9acf6553f9405236346c884a2f71342bdfae1277
2020-09-29 05:29:24 +02:00
Federico Ressi
31a9a6e8e6 Add a timeout for workflow stages
Change-Id: I9938a8bbd71ab131c8b6a2210e5d1a903ef21efd
2020-09-28 12:04:49 +02:00
Federico Ressi
bfb46b703b Update IR patchset version
Change-Id: I04a290d67c55977a2c9f3aa867528a69d224a9e4
2020-09-24 15:21:19 +02: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
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
Federico Ressi
0ab14daf73 Enable logging debug lines by default in infrared plugin
Change-Id: I16f13abd419e803a9eb92fc24c2930b267a07479
2020-07-13 13:40:49 +00:00
pinikomarov
1cc654103b Fix tripleo-validations : roles not found
This is due to a missing package and some poor static vars
which I remove here..

EROROR messages:
ERROR! the role 'haproxy' was not found in /home/stack/tripleo-validations/playbooks/roles:/home/stack/.ansible/roles:/var/log/validations/artifacts/c658cc41-926c-42a1-8933-ad37da38aa4d_haproxy.yaml_2020-07-03T22:/var/log/validations/artifacts/c658cc41-926c-42a1-8933-ad37da38aa4d_haproxy.yaml_2020-07-03T22:55:33.205590Z/runner_di_bi277gxt/55:/var/log/validations/artifacts/c658cc41-926c-42a1-8933-ad37da38aa4d_haproxy.yaml_2020-07-03T22:55:33.205590Z/runner_di_bi277gxt/33.205590Z/roles:/home/stack/tobiko/roles:/usr/share/ansible/roles:/usr/share/ceph-ansible/roles:/etc/ansible/roles:/usr/share/validations-common/roles:/home/stack/tripleo-validations/playbooks

The error appears to be in '/home/stack/tripleo-validations/playbooks/haproxy.yaml': line 17, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  roles:
    - haproxy
      ^ here

Change-Id: Ib4879a848da7022723566b3ecb4422640d8a8268
2020-07-05 23:49:10 +03:00
Federico Ressi
a5485d264b Use last IR version when running with Python 3.8
Change-Id: I00b947a6f5cb1440fd12c137d49c1645f72b0eab
2020-07-03 15:11:50 +02:00
pinikomarov
352a8b5a47 Add tripleo validations (post-deployment group checks) to overcloud healthchecks
- This adds the v>=1.0 dependency of tripleo validations-lib (py library)
  and the validations lib ansible checks as master
- We are adding the post-deployment group to the overcloud checks
- For now the checks will be passive - won't fail the test but report
failures if the are found

Change-Id: I8f768219fb52c64616f155583b77d6948b54abee
2020-06-20 23:09:51 +03: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
c50ab412a0 Create Docker files for Tobiko project
- Dockerfile file is intended for running test cases
  without using tox
- infrared_plugin/Dockerfile file is intended to run
  Tobiko IR plugin
- docker-compose file is intended to emulate the tox
  experience by using docker

All images are build staring from official CentOS 8
image.

Change-Id: I2f57f6e1c9c6161cef9448d25027d784ebd37e2c
2020-06-01 10:19:21 +02:00
Alex Katz
f13cb17e9d Fix condition check if previous task was skipped
Required as 'copy_src_dir | length' is equal 3 in case previous
task is skipped

Change-Id: Ie16c35ebab2136c04747271b49bd08ef1c57de23
2020-05-21 07:48:14 +00:00
Alex Katz
a202c74e5a Set default git version
This is required for test execution not to fail because of the plugin
doesn't perform checkout from git

Change-Id: I57a327e1888c6910a76eda9257cd47a774f225ba
2020-05-19 11:29:45 +03:00
Federico Ressi
cc3cb93742 Fix deploy role when no deploy-src-dir is given
Change-Id: Iad8711315dc05c4bc4eb72dfcff590a5eaa93e6d
2020-05-18 15:07:20 +02:00
Federico Ressi
c827a57b49 Move IR requirements file to IR plugin folder
Change-Id: I2cdf43882a07b7f83a21b17aca795285e8fd5fdf
2020-05-18 15:06:59 +02:00
Federico Ressi
077dc49e40 Move CI tasks from roles to infrared_plugin/roles
- create plugin roles folder with tasks required
  only by the plugin
- remove unused roles from tobiko roles folder
- link tobiko roles one by one to plugin roles folder

Change-Id: If74642f04b451cffc61c55560cd5004db14475ae
2020-05-14 09:23:47 +00:00
Federico Ressi
7bdb82d81b Fix Jenkins vars inclusion
Change-Id: I70aa53e07273688461809b771fa8442bddb64ea2
2020-05-12 10:23:08 +02:00
Alex Katz
32c91c7264 Added --ignore-test-failures CLI flag
Tox venv commands are expected to return a code that indicates
test cases final outcome:

 - 0 => any test vase has failed
 - 1 => some test case has failed
 - not in [0, 1] => any other error

This change handles the special case when some test cases have
failed. In any of below cases:
 - JENKINS_URL environment variable is defined on controller node
 - --ignore-test-failure flag is passed to IR plugin
then the plugin runs without treating it as an error.

This has been introduced because when running the plugin from
a Jenkins slave host, Jenkins itself is expected to check test
case have failed looking at produced Junit XML artifacts.

Change-Id: Ia7d7f736ae18a7561dced2271228d86ca658e892
2020-05-11 13:57:26 +00:00
Federico Ressi
9501f7589a Continue running workflow steps after step failures
Introduce new IR plugin option '--failfast' to abort
execution at the first failing workflow step

Change-Id: Ia79968cf7846f33fdaa05ac5bd511b614ae0784a
2020-05-04 16:25:43 +02:00
Federico Ressi
388426812d Use upper-constraints file from requirements project
Change-Id: I26318898ced32248a2ff31a78ec15d49382b9027
2020-05-04 14:47:41 +02:00
Federico Ressi
1f4e11b118 Update IR plugin
Change-Id: I8a4c483a4ac4b1f8dd1a3ec729ffe5bf6410073e
2020-04-29 05:38:11 +00:00
Federico Ressi
32300a380a Fix infrared plugin default test_host execution
test_host fact got from localhost has to be get
from hostvars when outside from a play because no
host is being considered for it.

Change-Id: I1902837ae10c8c5fb3010923ddafc9f03712d05c
2020-04-23 15:33:45 +02:00
Federico Ressi
3eadbe21f9 Set remote test directories owner user
Change-Id: I007b5f88a72f4c3a821466358d0c3793008354cf
2020-04-22 13:49:13 +00:00
Federico Ressi
b77367e8bc Move infrared plugin to infrared_plugin/ folder
Change-Id: I31290acb0e783145147f401af718e75611120ff0
2020-04-21 17:54:42 +02:00