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
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
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
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
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>
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>
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
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
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
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
* 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
* 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
* 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
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
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
* 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
* 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
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
* It changes the git url of python-tempestconf and tempest
and list files to make sure directory get clonned.
Change-Id: I82ea378ac5da93e65db44613404965566903a89f
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
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
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
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
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
* 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
* 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
* 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
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
* 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
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
* 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
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
* 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
_member_role was removed from Keystone, we should use Member role from
now.
See Ib85479442ec68f9a67615c23e5c39bd217c9b109
Depends-On: I16f8f49b8e4ea35407ab2f2794d5dce8f2c03019
Change-Id: I6745d38c1d13fbfd3fa56a40cfcf3cd79d096867