Commit Graph

132 Commits

Author SHA1 Message Date
Ghanshyam Mann 72ea117f61 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: Ic549bdcc76a5e12a0104143fbe79fd0db2c866b0
2024-02-24 11:44:35 -08:00
Takashi Kajinami 80c6f8b006 validate: Remove logic for unsupported old releases
This change removes logic for releases older than train, because these
releases are already EOLed. This covers only tempest roles and
playbooks.

Change-Id: I0b50cad30107a83b562b8c22b2afd7af7636c615
2022-10-25 17:16:18 +09:00
ramishra 452bbdca6e Don't use disable-telemetry.yaml
Legacy telemetry has been disabled by default since
ussuri.

Change-Id: I1d233e5109a009bd1422c9657cdadcf4df1d17bd
2021-06-07 09:47:39 +05:30
Marios Andreou c2b0910fe1 Remove all rocky related conditionals and tests after rocky End of Life
Rocky is now EOL since [1][2] so this removes all the rocky related tests
or conditionals.
Related reviews in topic branch tripleo-ci-reduce-rocky [3].

[1] https://review.opendev.org/c/openstack/releases/+/774244
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-March/020912.html
[3] https://review.opendev.org/q/topic:tripleo-ci-reduce-rocky

Change-Id: Icb999fa6c8278bd54c200c73963b5e364c94c23d
2021-03-29 11:54:27 +00:00
Zuul 827874ac54 Merge "Added missing role" 2020-11-17 02:03:30 +00:00
Arx Cruz 9532986f72 Replace skip_file.j2 template to use tempest-skiplist
This template was using the old yaml file, since we still have some jobs
running validate-tempest, and the skiplist files were already
deprecated, we need to load the testes from the new tempest-skiplist
tool.

Closes-Bug: #1899980
Change-Id: I954edaf6de84d97dd896b6bbb092931122740b9c
2020-10-19 12:10:06 +00:00
Sagi Shnaidman ce4af2ece2 Fix URL for tinyipa-stable-pike image ironic tempest
Depends-On: https://review.opendev.org/#/c/712940
Change-Id: I871362fb02ed77acd305b9f0a9dec02e4d4c2753
2020-03-18 04:45:03 +00:00
Soniya Vyas 1f5cf68972 Added missing role
There was an absence of ResellerAdmin role in
the configure-tempest.sh.j2
This patch fixes it.

Related-Bug: #1862143
Signed-off by: Soniya Vyas<svyas@redhat.com>

Change-Id: I34b76c70986da82fde8c74cbbcfd7a5d55ea9405
2020-02-09 14:05:40 +05:30
Zuul 2e001a3b11 Merge "lint: enabled whitespace fixes" 2020-01-11 21:29:34 +00:00
Martin Kopec 91f8ed6386 Override tempest nova scheduler filters
In Rocky and Queens tempest contains a default value for nova scheduler
filters equal to all, which results in the mentioned bug when tests which
are meant to be executed against specific filters are not enabled in the
system.

Overriding filters in tempest to only those which are available in the system
will skip the tests which are meant for different filters.

Change-Id: I98532113d3ad1339fdc4869686ad875b304f094e
Closes-bug: 1857365
2020-01-06 21:05:05 +00:00
Sorin Sbarnea fce23f7646 lint: enabled whitespace fixes
Adds two checks that were used in order repos (liketq)but not on this
one.

Change-Id: I4ccaf3dc78777b4b661fa17382f2feef8eb0d03e
2020-01-05 14:07:37 +00:00
Brent Eagles 5b8665b18d Preserve Octavia networks when running tempest
To prevent cleanups of the octavia network resources that are created in
the overcloud during deployment.

Change-Id: Iff54ff52c9db65e3675af69fc17dd9461eb596a5
2019-09-11 11:30:58 -04:00
Ronelle Landy 5bd20e7947 Add compute_feature_enabled.config_drive to configure-tempest.sh
https://review.opendev.org/#/c/676439 added this setting to
fs001 but it's needed generally. Adding it to
configure-tempest.sh.

Change-Id: Ic23fb25f1d03d35edd4ae8850003b90db422b438
Related-Bug: #1836046
2019-08-22 08:50:27 -04:00
Chandan Kumar (raukadah) 6c1cafd985 Remove auth.tempest_role from extra tempest overrides
As https://review.opendev.org/#/c/638617/ takes cares for looking
for Member role so we do not need to specifically specify the same
in tempest config extra overrides.

Depends-On: https://review.opendev.org/#/c/660060/

Closes-Bug: #1828859

Change-Id: I478e5f036e3c57c09dae6623bf00e4b4f40e55cb
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
2019-05-20 09:31:06 +00:00
Chandan Kumar 254443f7ec Set regionOne for undercloud and tempest_cloud_name
https://review.openstack.org/#/c/645500/ with this review
if heat is enabled, tempestconf tries to set the conf for
heat tempest plugin where regionOne is required but in
stackrc It is missing which leads to failure for
generating tempest.conf.

Closes-Bug: #1825265

Change-Id: Id7dd0c0902536226aa9874a41407baef2f21f821
Signed-off-by: Chandan Kumar <chkumar@redhat.com>
2019-04-18 14:14:50 +00:00
Zuul 1100482ec5 Merge "Ensure cirros-0.3.6 is referenced consistently" 2019-04-01 17:14:47 +00:00
Steve Baker 7d2cff88dd Ensure cirros-0.3.6 is referenced consistently
This change updates references to older versions

Change-Id: Idce4f097898d1885fa3fa59b9ca3b288cb83f1e0
2019-03-29 20:59:34 +00:00
Chandan Kumar c54a1087d4 Copy /etc/ipa/ca.crt file to tempest container
/etc/ipa/ca.crt is also required by novajoin tempest tests in order
to run tls tests.

Change-Id: Ifb86485139044e409302c851842397e95ad0e4e6
2019-03-28 14:08:53 +00:00
Arx Cruz a4b1340a1c Fix containerized tempest logic
We weren't testing containerized tempest in standalone job due the
missing logic on tempest-setup.sh script. This patch adds the logic for
when containerized tempest runs in standalone, copying the clouds.yaml
file instead of the stackrc/undercloudrc and also maintain the logic
when you execute tempest in the ovb, copying the rc file.
This also ensures that /var/lib/tempestdata and /var/log/tempest
directories exists in order to not fail the execution of containerized
tempest.

https://tree.taiga.io/project/tripleo-ci-board/issue/836

Depends-On: https://review.openstack.org/#/c/643212/
Change-Id: I90204150085a1c9b943f9e054c0420a8a5e66538
Related-Bug: 1819440
2019-03-15 10:34:40 +01:00
Chandan Kumar cd7bb9bc8a Fix tempest container post logging
Currently when podman tempest container tempest tests fails, it
stores the exit status as fail and exit the run_tempest.sh script
leading to not copying the stuff from tempest container to host.

It decouples the step of copying and managing permission for tempest
post log processing and run only when tempest run finishes with in
a container.

https://tree.taiga.io/project/tripleo-ci-board/task/819

Change-Id: I9c7f97f3aa97c0ea061ba6aeb125501bf3a1adbf
2019-03-07 10:37:46 +00:00
Chandan Kumar 36f51a1b42 Mount required files for running novajoin tempest tests
In order to run novajoin tempest tests for testing tls in tempest
container we need to mount ipa related files and export
KRB5_CLIENT_KTNAME within tempest container so that novajoin
tempest plugin ipaclient can access those and help to run tempest
tests.

Copy tls related files in pre-tempest phase.

https://tree.taiga.io/project/tripleo-ci-board/us/670

Change-Id: I105d7839a3cdbf6e69d006fc588fb7d13e4e3a03
2019-03-05 21:45:42 +05:30
Wes Hayutin b01bcdacc4 echo out the user that tempest is containerized
Let's make it obvious if tempest is executing
via the container and not from the undercloud.
echo out a statement, noting it.

Change-Id: I50a6b8ebcf33a7d216237b06f1e3e24867d17f58
2019-02-28 16:25:45 +00:00
Chandan Kumar d1fd33e82f Set container_binary to podman from stein releases onwards
https://review.openstack.org/#/c/608452/ Switch the undercloud to
deploy Podman by default starting from Stein and
undercloud_container_cli var is setted under undercloud_deploy role
and it cannot be used in another role which will set
container_binary to docker but docker is not there in stein leading
to fail running tempest from container.

Use sudo while pulling tempest using podman

Change-Id: I7ee75d71a7c34bdb85232a1378880ff16579c5db
Related-Bug: #1816026
2019-02-18 22:47:14 +05:30
Zuul cb60c88eca Merge "Setup Ironic in Overcloud" 2019-02-05 18:54:53 +00:00
Derek Higgins 099cdd5393 Setup Ironic in Overcloud
Set up resources on the overcloud so that ironic
can be used to deploy baremetal.
- Add IPA deploy kernel/ramdisk image
- Add a cirros wholedisk image
- Create a provisioning network
- Adds baremetal nodes
- Updates the flavor user by ironic

Change-Id: I1dc1f121b937f73d89d3f1ae8511f36cb526b2a8
2019-01-30 11:38:51 +00:00
Chandan Kumar 881d16fb42 Added support for installing tempest plugins from git
In order to use it, in any FS, set tempest_format to venv
and then set:
tempest_plugins_venv:
  - '<complete upstream openstack tempest plugin git url>'

Change-Id: I95a4449ca3976a914faf1ba5f3f4c0e756a6fefc
2018-12-24 10:49:42 +05:30
Chandan Kumar d9a66b56b4 Fixed path for tripleo deployer input file
* While porting the validate-tempest to podman[1], we added tempest_data
  variable to keep tempest related input data files while running in
  container, All the dir path in the script got updated but tripleo
  deployer input path was left to tempest_dir but we were keeping
  the files in tempest_data dir due to which tripleo deployer
  input file was not passed leading to the failure of object
  storage tests.

[1.] https://review.openstack.org/605356

Change-Id: I132009d3f00bb4bcff3b21def0edd568bfab14ec
Closes-Bug:#1773325
2018-11-23 06:27:24 +00:00
Honza Pokorny 7ff41dea0e Add option to install chrome when running tempest
Change-Id: Ie5892ee14cc5e9bbc09dc79aeac7611bfb26e5bb
Partially-implements: blueprint automated-ui-testing
2018-11-19 13:52:48 +05:30
Zuul 84a9a1b178 Merge "Fix iteritems for dictionary" 2018-11-15 22:13:08 +00:00
Wes Hayutin feb33e63d8 break out the tempest skip list generation by deployment
Simplify the logic in jinja to more explicitly
create the tempest skip list.  There are three
different types of deployments for tempest and
it should be more clear how the skip is generated.

Closes-Bug: #1803419
Change-Id: Iade08ee92d7f48e07a625678d2a1c6ac1cd1982b
2018-11-14 11:56:25 -07:00
Derek Higgins 503f82a1ad Create /var/lib/tempestdata with sudo
Change-Id: If20d61b7a424e061b520a63573eaf06f949ffc1b
Closes-Bug: #1802409
2018-11-08 22:47:22 +00:00
Zuul 632ac5c308 Merge "Add podman support to validate-tempest role" 2018-11-08 07:49:15 +00:00
Chandan Kumar 2d255d14f8 Add podman support to validate-tempest role
* https://review.openstack.org/#/c/600517 introduces undercloud_container_cli
  to choose docker/podman container runtime. This changes introduces to use
  both docker/podman for running tempest tests.
* Tempest user does not have permission to create tempest workspace let's
  create the tempest workspace and own it with the tempest user.
* Introducing tempest_data directory to keep tempest related data
  which can be used by tempestconf and tempest run to tests
* Cleaned up stuff which is not necessary for tempest container.

Depends-On: https://review.openstack.org/#/c/614664/

Change-Id: I1b19b2580d1d4c9844e9221f18b23655b36b5a23
2018-11-06 15:41:48 +05:30
Rabi Mishra 2824be4d63 Set identity.region with tempestconf explicitly
When running tempest set the identity.region explicitly as
it's not picked from the rc file.

Change-Id: I3374bdb52838572e267788e183b5f1eff9a14ec9
2018-10-23 05:13:10 +00:00
Chandan Kumar a47f26d227 Create tempest networks for standalone
* In order to run full tempest tests, we need a public network which
  can be consumed by tempest tests in order to run full tempest tests.

Change-Id: Ib643dba40efa49095715fcf17f93894ebc8cdea9
2018-10-19 14:21:38 +00:00
Alex Schultz d2389fbfe1 Fix nits with configure-tempest
See comments from https://review.openstack.org/#/c/600586

Change-Id: Ida8529beb06bf9ba525c7abac625abed87d0e4da
2018-10-02 19:30:51 +00:00
Alex Schultz 5a6ba28893 Add support for OS_CLOUD
Since the standalone deployment uses clouds.yaml, we need the validate
tempest role to allow for configuration using OS_CLOUD rather than the
traditional {stack,overcloud}rc files.

Change-Id: Ied55638618b718ee15a2ef5bc2f89cef232b5b7e
Related-Blueprint: all-in-one
2018-09-13 20:38:55 +05:30
yatin 188b89494c Fix Subsequent run of tempest-setup.sh
Rerun of tempest-setup.sh was broken with containerized
tempest. tempest_container.sh was appended with rerun,
this patch fixes it by creating a new tempest_container.sh.

Closes-Bug: #1784555
Change-Id: I496b33ba3579985b5ba72286c066b0c102dcdd17
2018-08-20 06:28:28 +00:00
Chandan Kumar 656c195b04 Updated tempest role for rocky branch
* https://review.openstack.org/592276 marks the release of tempest-
  19.0.0. Let's update the role to consume it
* Updated skiplist for rocky

Change-Id: I7a758d740d20ef8036d301aa612184186bac62f0
2018-08-16 14:54:22 +00:00
Zuul 3b6d85d88a Merge "Fix ssl warnings on tempest containerized" 2018-08-01 05:40:01 +00:00
Arx Cruz a9755c202a Fix ssl warnings on tempest containerized
The python-tempestconf uses requests python module to make the calls to
the openstack api, if ssl is enabled, the requests throws an error
saying that cannot validate the certificate, and so fails. This only
happens when we run tempest containerized.
In order to avoid that, we are using PYTHONWARNINGS and CURL_CA_BUNDLE
environment variables to skip ssl check.

Change-Id: Id53643fecc545a2a15b8bab478dd49d32de4068c
2018-07-31 09:15:46 +02:00
Chandan Kumar 5241e085da Remove single quote from docker inspect command in tempest run
* Shell commands are not interpreted in single quotes and
  this patch fixes it.
* It also remove tempest_data dir created in previous tempest
  container run to fix dir exists

Change-Id: I6af87d5013c8311eb36ebddf947bd921c6fe13f0
2018-07-31 10:20:29 +05:30
Chandan Kumar da4fc17d58 Fix tempest related files permissions for tempest container
* https://review.openstack.org/#/c/583940/ added tempest user with
  tempest container to fix tempest init log issue and it broke the
  container as all the directory with in tempest container and files
  getting mounted from host have different permision. It fixes the
  same.

* It moves all the tempest related files to tempest_data dir and then
  mount the same to tempest container by changing dir permission if
  tempest user is present else run the docker run as it is.

* Moving tempest dir creation step under container shell script

Change-Id: I9696b490e5d4646044de5258c676a357ee2779bb
Closes-Bug: #1783055
Depends-On: I20f04e8b821058a89a5464c9be1bb14d30f1f223
2018-07-25 23:56:06 +00:00
Arx Cruz 018d057f49 Fix tempest-deployer-input.conf path
Tempest containerized run as root, and so, although the
tempest-deployer-input.conf file was being imported to the container,
the patch was ~/tempest-deployer-input.conf that was pointing to /root
instead of working_dir, so, tempestconf wasn't getting the defaults from
the deployer input file, setting the region to RegionOne instead of
regionOne, and so, the object_store tests were failing, because was
getting the default endpoint http://.../ instead of http://.../v1/AUTH

Change-Id: Ic88c9121441b4021da3400933cacc4ff942b727f
Closes-Bug: 1773325
2018-07-18 13:22:53 -03:00
Chandan Kumar 885ee1707d use upstream git url instead of github
* It changes the git url of python-tempestconf and tempest
  and list files to make sure directory get clonned.

Change-Id: I82ea378ac5da93e65db44613404965566903a89f
2018-07-16 16:51:28 +05:30
Adriano Petrich 1b8cf6e2cf Fix iteritems for dictionary
With the right envs "Create overcloud tempest setup script" task fails
with "AnsibleUndefinedVariable: 'dict object' has no attribute 'iteritems'"
this changes moves that for dict.items().

Change-Id: I23ebc34f538f6be3bc271f101a32ed8121710a5f
2018-07-12 12:16:01 +00:00
Zuul ce255fa0f3 Merge "Fix tempest compute feature for releases before rocky" 2018-07-06 01:05:25 +00:00
Arx Cruz 861e5f1fc6 Disable ssl certificate validation in tempest
Since the certificate is not validated in tq/tqe, and tempest default is
to enable the validation, adding it for override. There are some
featuresets already failing due this.

Closes-Bug: 1779628
Change-Id: I5a5ddda04d1cddb1c712ac79e8b78a0faaa57a9f
2018-07-02 06:00:39 -03:00
yatin 07d323aa31 Fix tempest compute feature for releases before rocky
Review [1] removed tempest config for all releases but
the patch [2] that added these parameters in python-tempestconf
is currently available only in rocky.
This patch fixes this param for older releases unless there
is plan to use the tempestconf patch in older releases as well.

[1] https://review.openstack.org/#/c/570159/
[2] https://review.openstack.org/#/c/570157/

Closes-Bug: #1779271
Change-Id: Id30e9cc7b237e09486c72d9fe2c1354814a3b993
2018-07-02 09:43:25 +05:30
Arx Cruz 9ae6212f00 Removing options in configure-tempest
The following options are being handled now by python-tempestconf
* compute-feature-enabled.attach_encrypted_volume
* compute-feature-enabled.console_output

So, this is no longer required.

Change-Id: I5c3f1e008d6a9c4fa53a2c085039255f41a059ee
2018-06-25 05:45:22 -03:00