Commit Graph

90 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
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
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
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
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
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
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
Zuul 84a9a1b178 Merge "Fix iteritems for dictionary" 2018-11-15 22:13:08 +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 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
Zuul 78bf4dc46b Merge "Remove hardcoded validation options" 2018-06-13 08:43:25 +00:00
Arx Cruz c1c82f063f Fix generation of docs
Docs for tempest are not being generated properly

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

Change-Id: I0cc8d0487b144026a6dadd4345bcc97800fbdcfc
2018-06-04 15:50:01 +00:00
Martin Kopec a239deaa75 Remove hardcoded validation options
python-tempestconf sets ssh user to centos always
if centos image is used, which is the default value.

Depends-On: https://review.openstack.org/#/c/570799/
Change-Id: Id16bc6436da18a413134764195697e010b4a4431
2018-06-01 09:54:25 +00:00
Zuul b018938c66 Merge "Remove hardcoded cinder v1 option for tempestconf" 2018-05-23 18:20:09 +00:00
Chandan Kumar c570dd05e2 Enable tempest.log in /var/log/tempest for container
* In CI, when tempest container is used, It is good to dump the
  logs in /var/log/tempest so that it would be easier to verify
  tempest container is used.
* Introduced tempest_log_dir and tempest_log_file var to the
  validate-tempest-playbook

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

Change-Id: Ifd72d902c623b3941a6c714e36b7cf104109a570
2018-05-17 13:08:03 +05:30
Martin Kopec da48e520bf Remove hardcoded cinder v1 option for tempestconf
python-tempestconf is able to detect deprecated versions,
therefor that line is no longer needed.

Change-Id: I577017bd3990f6e86caa2538061a850f619e4f66
2018-05-15 21:11:26 +00:00
Zuul 265301476c Merge "Use identity version v2.0 for Pike" 2018-05-05 00:06:29 +00:00
Zuul d5cbb60916 Merge "Get the list of tempest/-plugins rpms installed within a tempest container" 2018-05-03 13:35:45 +00:00
Chandan Kumar 94b81f1c01 Use identity version v2.0 for Pike
* By default in stackrc, the Identity version is 3 but pike does not
  have full v3 support, It leads to failing the tempest tests.
* The above patch fix it.

Change-Id: Iaf0a82c3408c9dcda0c17efb220480e9c0bfdcb9
2018-05-02 20:48:53 +05:30
Chandan Kumar 5cc8a81fc6 Added tempest skip list for undercloud for stable branches
* https://review.openstack.org/551441 adds the support for running
  tempest on undercloud as well as the skip list of master
* For first go, we need to replicate the same skip list for
  stable branches.
* Use default os_auth_url Newton, Ocata

Change-Id: I4b0bb88ce63f60131a1582f2a539ab6b23cbd1b4
2018-04-30 14:56:36 +05:30
Chandan Kumar 05945f957f Get the list of tempest/-plugins rpms installed within a tempest container
It will be useful for debugging and making sure at what commit
tempest/tempest plugins rpms are installed in the same in
tempest_output.log

Change-Id: I17f59e7763951f671f9c3c5b3cd06902c49c2c58
2018-04-25 12:06:09 +00:00
Chandan Kumar e754119d3a Fix config_tempest.py args for Newton
* For newton, we need to pass identity.uri admin password and
  username. It got removed somehow while refactoring, We need
  to fix by fixing the condition.

Change-Id: I891b85bea7db931f9924a124b07bd340f1e4bdb8
2018-04-25 17:00:14 +05:30
Arx Cruz 57f652a0f4 Fixing tempest containerized script
Run tempest containerized creates a script, that requires the
public_net_id set inside the script, before it was being set in the
cleanup-network script, which doesn't export properly the variable,
causing error.
Also, since docker run as root, the  tempest_container.sh creates the
tempest files as root, so we need to use sudo to cleanup the
directories.

Change-Id: Ie5723df5e791dbe9572b7d3e5b7b71506563d11c
2018-04-20 12:05:08 +02:00
Chandan Kumar de5dd4cc17 Refactored validate-tempest role for undercloud and containers
* Introduced new workflow for validate-tempest role
- Remove previously created tempest artifacts
- Install tempest
- Create tempest workspace
- Create tempest resources
- Generate tempest configurations
- Run tempest
- Removed unused ironic undercloud fake services
- Removing public network from undercloud as there is no public network
- Added tempest_dir var to give path to tempest workspace
- use {{ working_dir }}/tempest_git for clonning stuff
- Added test_black_regex to skip a series of tests
- Fixed permission issue for tempest_dir to generate subunit files
- Install stestr subunit-filters and subunit for generating subunit files
- Added tempest_skip_master containing skip list for undercloud
- Introduced tempest_conf_version for installing particular version of
  tempestconf from git
- Enable set -e to find the exit status of command running inside
  container

Change-Id: I021432e222fae0e57a13ca4859ba77e990ac6c67
2018-04-10 10:00:49 +00:00
Chandan Kumar c9d7f44fcc Set network-feature-enabled.port_security to True
tempest.api.volume.test_volumes_snapshots.VolumesSnapshotTestJSON.
test_snapshot_create_offline_delete needs port_security feature.
In tempest, It is disabled by default.
We need to enable in order to run this tests and this test is default
in another featureset from Queens. So enabling this params for the
same.

Change-Id: I792c1372ee4261a85a4bcb05cb2c3db7dad313c9
Closes-Bug: #1753370
2018-03-05 19:34:26 +05:30
Chandan Kumar b4505072d5 Remove scenario.img_file from queens release onwards
* https://review.openstack.org/#/c/535831/ will auto sets the same
  from queens onwards using tempest config tool. So removing it from
  queens releases.

Depends-On: I44936418ce359eaf04c4f47f0961687d65d45c6c

Change-Id: I6cd7eb36bb81df4f1c88c5154a40dafe859d6d6b
2018-01-22 15:47:03 +05:30
Emilien Macchi 6777cdbc42 tempest: use Member role in Queens and beyond
_member_role was removed from Keystone, we should use Member role from
now.
See Ib85479442ec68f9a67615c23e5c39bd217c9b109

Depends-On: I16f8f49b8e4ea35407ab2f2794d5dce8f2c03019
Change-Id: I6745d38c1d13fbfd3fa56a40cfcf3cd79d096867
2017-12-24 04:53:27 +00:00