Commit Graph

501 Commits

Author SHA1 Message Date
Martin Kopec 77977988cd Update jobs for the current release
Adding job running unit tests on py3.11 and jobs
running on stable 2023.2 release.

Change-Id: Ia3941f164d6531c0137abcb57a54f31030483cf9
2023-12-12 10:04:06 +00:00
Chi Wai Chan 3366caea2c
Fix compute, volume, and share endpoint discovery.
The endpoint discovery mechanism in compute, volume, and share use
no_port_cut_url to cut the URLs after the version (including the
version) if port is not present.  However, when the port is present, the
no_port_cut_url method sets the top_level to True when calling do_get
method. This causes the do_get method also cut the top_level_path of the
URLs because by default the top_level_path is set to "". This behavior
is not desired because different clouds maybe have endpoints with
different top_level_path other than "". Instead of using
no_port_cut_url, we can use utils.get_base_url to properly cut the URLs
after and including the version.

Story: #2010968
Task: #49109
Change-Id: I221b6267afce90b8b7e22d468f0824c9365f4a91
2023-12-12 15:22:55 +08:00
Martin Kopec b5ae1f69ac Support Admin admin user and role
We didn't take into account that the admin role and user might be
called on with uppercase first letter - Admin - on some systems.
The patch edits the logic so that we accept this admin name or
role.

Story: #2010880
Task: #48601
Change-Id: Ie027de58f77a58f44b31274e6d75dc830d3b717d
2023-09-18 10:15:25 +02:00
Mert Kırpıcı 58e32bbe5a fix: un-hardcode v3 credentials
During cloud discovery resource creation, the domain_name and
user_domain_name information used to be hard coded to 'Default' which
might not be the case for all credentials, admin or non-admin.

This patch adds support for domain_name, project_domain_name and
user_domain_name information by defaulting all of them to 'Default'
however in the case they are available in the cloud credentials, using
them during python-tempestconf runtime as well as rendering them
correctly in the final tempest configuration.

Story: 2010811
Task: 48330
Change-Id: I4355837f4d8d514524039df6f3989dbd69f2c700
2023-08-21 11:29:06 +00:00
Martin Kopec 915f9cea7a Drop tripleo-ci-centos-9 jobs
tripleo-ci-centos-9-content-provider has been failing for some
time and the other tripleo-ci-centos-9 jobs depend on it.
Based on the recent builds of the jobs outside of
python-tempestconf project it seems they aren't executed on master
anymore.
Due to boh of those reasons this commit drops those jobs.

Change-Id: Ibc7e3a0dd6b661d9c615e087921cc9dd426382a9
2023-08-16 14:09:22 +00:00
Martin Kopec 15d6aebfb2 Do not run a few dns tests from designate plugin
The tests require a specific dns setting in tempest.conf
pointing to the dns server:
dns.namservers = <ip>

This is complicated to set in our jobs, therefore the patch
excludes the tests.

Moreover, this patch [1] made everything install in global
venvs, however, centos-9 isn't yet compatible with that
and the jobs are failing now.

This patch disables installing in global_venv on the
centos 9 job.

[1] https://review.opendev.org/c/openstack/devstack/+/558930

Change-Id: I99c8cbc20be60b2f9475950667ac72114dc298a9
2023-08-15 18:06:31 +02:00
Roman Popelka 772b77de70 Add fips job
Let's add a fips job to the check queue to test
the python-tempestconf's compatibility with FIPS.

Change-Id: I5258cf8186ef2742ca6c551717ded135ce228e6f
2023-07-13 11:52:18 +02:00
Roman Popelka 9ff70dd6bc Fix tox<4 issue for zed job
Added task to install proper version
of tox(<4) so the job won't fail and
set the job as voting again. Set
ensure_tox_version to <4 for zed admin
job and admin plugins job (since it failed,
on tox>4 related issue too.

Story: 2010573
Task: 47319
Depends-On: https://review.opendev.org/c/openstack/tempest/+/884584
Change-Id: I0e9ad3632d16a5aa8c0e98d3e0d10bee79cead99
2023-06-28 19:05:38 +02:00
jskunda 468044fa98 Switch to bobcat testing runtime
Updating the testing template to Bobcat testing runtime:
https://governance.openstack.org/tc/reference/runtimes/2023.2.html

Change-Id: I9dd37c009d8e6c624ff6d3fb27650e2d03fd9f4e
2023-06-22 10:46:43 +02:00
Arx Cruz ea9dc57278 Handle when there is no volume backend available
We query the volume pools to check if the user has permissions to list
the backend storage, but we do not handle when the volume backend is not
available, only when the user is not allowed. This patch adds the
ServiceError exception to handle it and set the backend properly.

Change-Id: I0fd61813dbadf5ef3a0db55791e3b261d4c9d885
2023-06-02 12:19:43 +02:00
Martin Kopec eca54c4743 Unblocking CI by n-v a few jobs
The commits marks several jobs as n-v to unblock the CI. The jobs
already have fixes proposed and are in the process of review.
Right now we wait on a change in Tempest which may take serveral
days to get merged.
The patch also fixes an issue with pep8 - too long line - seems
like the sensitivity of pep8 was increased because previously
the line was ok with pep8.

Change-Id: Icea222faadfe22ab029d0321fd68c3e6f1bbc0b4
2023-06-01 13:41:48 +02:00
Martin Kopec b0ee1bcdac Releasenotes for 3.4.0
A new tag has been released recently. This commit tags all
releasenotes written until the 3.4.0 tag and groups them
together.

Change-Id: Ic4ae5afa91b0942fe8d821177a8ab260129b6473
2023-03-27 12:47:24 +02:00
afazekas fc128db3b2 Do not disable live migration by default
Live migration supposed to work in all qemu/kvm deployment.
It is expected switch to block magrate in case of no shared storage,
tempest expected to skip migration tests when there is no multiple
compute nodes and it would lead to test failure.
Also update the documentation regarding the options set by default.

Change-Id: Id9a25ad50df85f16f27a228a0075c2e073670937
2023-03-09 15:21:40 +01:00
Zuul 63d7cd0175 Merge "Add SRBAC jobs" 2023-02-15 13:02:29 +00:00
Zuul 94514a27eb Merge "Remove skipped test from designate-tempest-plugin" 2023-02-13 11:51:13 +00:00
Zuul 025c0c4891 Merge "Remove volumev2 from volume service" 2023-02-10 16:28:39 +00:00
Zuul e90e9cbf92 Merge "Change auth.tempest_roles default value" 2023-02-10 12:28:51 +00:00
Martin Kopec a0bcf9ad55 Change auth.tempest_roles default value
This commit changes the default value of the following option
from
CONF.auth.tempest_roles _member_
to
CONF.auth.tempest_roles member

Change-Id: Ic8263d0bfd9b093aab7f1779d24b19ca2a9b30bd
2023-02-10 07:29:13 +00:00
Lukáš Piwowarski 5bc9166bcb Remove skipped test from designate-tempest-plugin
We can remove test_manually_trigger_update_secondary_zone_negative
test from exclude_regex as bug 968717 was fixed by removing the
test from the plugin [1].

[1] https://bugs.launchpad.net/designate/+bug/1968717

Change-Id: Ie8d0cd289302b789d48c925c1ab0b9940a6e09ac
2023-02-09 12:06:23 +01:00
Lukas Piwowarski 7eeb86a342 Return designate tests to admin-plugins job
Depends-On: https://review.opendev.org/c/openstack/designate-tempest-plugin/+/862804
Change-Id: Ie056cc68a5ac0d1743bf1c80cbdb01fd95bc3174
2023-02-09 12:06:05 +01:00
Lukáš Piwowarski fa6865c615 Fix opendev-tox-docs job
With the upgrade of tox to a newer version we started to encounter
failures in the opendev-tox-docs job. It looks like the interpretation
of the variable skipdist changed.

A similar problem was solved in tempest repository by removing the
skipsdist option from tox [1]. It looks like a similar solution
works for python-tempestconf as well.

[1] https://review.opendev.org/c/openstack/tempest/+/868527

Depends-On: Ie5ea7f9305c7e7611f205d2e0703849bd6321a68
Change-Id: I9ee6570b72c10ea0466819008135ddebe891a445
2023-02-09 12:05:44 +01:00
jskunda 1d8c69a283 Update jobs for Antelope development cycle
- adds antelope zuul template
- adds stable/zed jobs
- adds openstack-tox-py39 jobs as its not part of antelope template
- removed all victioria, wallaby and xena jobs
- docs, yoga and tripleo-ci-centos-9-standalone jobs are temporarily
  marked as n-v to unblock the gate

Depends-On: https://review.opendev.org/c/openinfra/ansible-role-refstack-client/+/865522
Change-Id: I31b23b077bd2dc91524fde16b08de7aed1ca4c29
2023-02-09 12:04:37 +01:00
Arx Cruz 5457aa641f Remove volumev2 from volume service
The volumev2 endpoint was removed in Xena release [1]

1 - https://review.opendev.org/c/openstack/cinder/+/792299

Change-Id: Iad43c2c786dd59e91c83c0d38c4568fe73629ea4
2023-01-23 11:27:41 +01:00
Roman Popelka 8d2ee59af3 Add SRBAC jobs
This patch adds jobs with scope enforcement and new defaults
enabled for Nova, Cinder, Glance and Neutron.

Keystone still has system scope adopted in their policy. The
scope enforcement will be disabled for now until Keystone's policies
are updated accordingly[1]

[1]https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html

Depends-On: https://review.opendev.org/c/openstack/tempest/+/869440 
Change-Id: I64019c4f3f25cd1bd347fb55de5e38408a335cb0
2023-01-09 10:12:40 +00:00
Lukáš Piwowarski 6488be3e82 Change class variables to instance variables
TempestConf has a set of class variables that do not need to be
class variables because there are no multiple instances of
TempestConf class that could share the value.

The reason why we need to move the class variables to instance
variables is that some unit tests under certain conditions were
failing because multiple unit tests were changing the
TempestConf.priority_sectionkeys value.

Change-Id: Ic6f51be112aa9f93904fcab289d78a7e06f20f62
2022-11-24 08:56:45 +00:00
Lukas Piwowarski 29cc5000c6 Remove designate tests from admin-plugins job
Currently tests from designate-tempest-plugin fail when the
[dns].nameservers value is missing in tempest.conf. The failure
is caused by this patch [1].

This patch removes the designate tests from the admin-plugins job
for now. Once we fix the issue (either by fixing it in
designate-tempest-plugin or in python-tempestconf) we can
add the designate tests back.

[1] https://review.opendev.org/c/openstack/designate-tempest-plugin/+/860116

Change-Id: I6a4ca43db2ffe602318141b0981f287d15cda3ac
2022-10-27 13:33:13 +00:00
Zuul d5fc8ad86b Merge "[share] Add support for thin_provisioning" 2022-09-13 14:50:51 +00:00
Zuul 9aec82a788 Merge "Fix cinder-backup logic" 2022-09-07 15:08:03 +00:00
Arx Cruz ea78088ecb Fix cinder-backup logic
When you have several controllers, if the first controller have
cinder-backup service disabled, the pacemaker return it as down, and so
the cinder-backup is set to False, even though it is running in a
different controller.
This patch do a loop to check if the cinder-backup is enabled in other
controllers, if so return it as True.

Change-Id: I3a16ec4f7b45267fcb8f9c6d01f28fe40faf7661
2022-09-01 15:54:49 +02:00
lkuchlan 684db64bf1 [share] Add support for thin_provisioning
Since some of backends support thin_provisioning,
it's necessary to have a new parameter for skipping
the test in unsupported environments.

Change-Id: I9164a9f9d7d0dc913a1b91eb0efa741db8d523b8
2022-08-28 11:11:15 +03:00
Martin Kopec dea47bbbf4 Swith to packstack-centos-9 job
packstack-centos8s job has been superseded by packstack-centos9
one. This commit updates the parent of our packstack jobs.

The commit also uncomments and puts a few jobs back to voting
after the CI crisis has been resolved.

Change-Id: I9ba1859637c14a86496afdc8eb0bf55a6794a495
2022-08-24 10:34:06 +02:00
Goutham Pacha Ravi 7736ba2819 [CI] Fix manila tempest plugin issue in W/V
Manila's devstack plugin can be told not to install
the manila tempest plugin hostwide. Installing the
plugin host-wide isn't reqired and would cause issues
with requirements for other packages.

Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
Change-Id: I5820671240a21c3c795082791400463011a73b12
2022-08-23 07:14:29 -07:00
Martin Kopec 448ff51dec Drop py3.6/7, T, U jobs and fix neutron discovery
python 3.6 and 3.7 are dropped (upstream tooling as e.g.
Devstack doesn't support this those anymore) together with
train and ussuri jobs.

refstack-client jobs are non-voting now until a fix on
refstack-client's side has landed. Also victoria jobs are
marked as non-voting because they require a patch on devstack's
side which isn't ready to be merged yet [1].

manila-tempest-plugin needs to be pinned in Victoria and
Wallaby because the plugin requires newer tempest version
than is available there.

The patch also makes neutron version discovery with a not
top level URL, seems like something changed because
the discovery has been failing.

[1] https://review.opendev.org/c/openstack/devstack/+/844774

Change-Id: Ia3d78e84ad9eee515eb8ca017ea84df1fd160929
2022-08-19 09:13:03 +02:00
Zuul a8aaad54f6 Merge "Unskip devstack-admin-plugins job" 2022-05-03 14:03:17 +00:00
lpiwowar 736304d4b6 Unskip devstack-admin-plugins job
The job was failing because of a bug described in the launchpad [1].
As this bug is resolved and the job is no longer failing we can
start using this job again.

Before enabling the devstack-admin-plugins job we need to fix two
things:

- Put test_manually_trigger_update_secondary_zone_negative designate
  plugin test to exclude_regex as it is currently broken.

- Allow git to read plugins directories. This is necessary because
  of a patch that was recently added to git [2].

[1] https://bugs.launchpad.net/neutron/+bug/1959125
[2] 8959555cee

Change-Id: I5bf3826f0011a9392a38ceceb51c113d38231ad6
2022-04-26 14:39:19 +02:00
Martin Kopec 7f14a54134 Update jobs for Zed development cycle
* adds zed zuul template
* adds python36 template as it's not part of the zed one
* adds stable/yoga jobs

Depends-On: https://review.opendev.org/c/openinfra/ansible-role-refstack-client/+/836124
Change-Id: I57ae300944e4e980b202b6132daa6bcb0075bbbc
2022-04-21 15:47:17 +02:00
Martin Kopec 6bb29fdd27 Fix TestImageService's unit tests
The test class had hardcoded DEFAULT_IMAGE_DIR value to /img/
which resulted in unit tests failures when this path existed
because the tests expect a call to makedirs which didn't happen
as the DEFAULT_IMAGE_DIR already existed.
The patch fixes that by passing exist_ok=True to makedirs call
which will result in always calling makedirs, whether img_dir
exists or not.

Change-Id: I47d15747536394006f6b502b3025220a5077e547
2022-03-29 14:59:40 +02:00
Zuul 9586241409 Merge "Add multistore image option" 2022-03-14 17:26:05 +00:00
Eduardo Olivares 8e5a594d93 discoverability may not be defined on object-storage-feature-enabled
Using a deployer-input file that includes object-storage-feature-enabled
section without discoverability fails, although discoverability is an
optional parameter

Change-Id: I52838fc6b6f7e576604764e1b8b7938fe4b2ea0d
2022-03-04 13:18:00 +01:00
Soniya Vyas fb978cf770 Add multistore image option
This is an attempt to populate tempestconf with
multistore feature enabled if and only if multiple
stores are available.
In Rocky and Stein, Glance has added the ability to
configure multiple stores as an EXPERIMENTAL feature.
This feature is fully supported from the Train cycle.

Please refer [1] for more information
[1] https://specs.openstack.org/openstack/cinder-specs/specs/ussuri/support-glance-multiple-backend.html

Here are two test-projects exercising the results of
this change

1. With multi-store enabled
https://review.rdoproject.org/r/c/testproject/+/37159
2. With multi-store not enabled
https://review.rdoproject.org/r/c/testproject/+/37160

Signed-off-by: Soniya Vyas <svyas@redhat.com>
Change-Id: I45f9dce14b60e9385600c57ee56b50aba3a4476f
2022-03-03 18:40:38 +05:30
Martin Kopec 490a7ea40b Fix no floating_network_name option
If there is no public network set, python-tempestconf doesn't
set network.floating_network_name option. In order to avoid
the following error when heat_plugin options are being set:
No option 'floating_network_name' in section: 'network'
the commit adds a try except block to catch this situation
and log it for the user.

Change-Id: Ib1f04584b620fc662fd415c4430a03ea92c35b76
2022-02-21 15:43:38 +00:00
Zuul e30addb390 Merge "Move TripleO zuul jobs layout to centos9 only for master branch" 2022-02-15 12:11:20 +00:00
Bhagyashri Shewale e03428f35e Move TripleO zuul jobs layout to centos9 only for master branch
See topic branch [1] for related reviews.

[1] https://review.opendev.org/q/topic:c8_teardown_master
Depends-On: https://review.opendev.org/c/openstack/tripleo-ci/+/826317

Change-Id: I43e1d89a9054c53f1a1ca26d2467d953030b2398
2022-02-15 04:36:11 +00:00
Martin Kopec 9f14691955 Use run-tempest-26 in stable/train job
Change-Id: I9ff9d1520266f7eeb59bfa6cf4d53dfd124b0f2c
2022-02-10 11:51:28 +00:00
Zuul d630e489aa Merge "Remove references to live_migrate_migrate_instance" 2022-01-19 12:25:08 +00:00
Zuul 11057a90f7 Merge "Fix scenario010 job configuration" 2022-01-19 02:53:03 +00:00
Martin Kopec 1091a39d71 Use python-manilaclient from source
Some changes have been merged to python-manilaclient recently
which aren't packaged yet and therefore cause problems in our
gates - the jobs are failing to create a share group type.
Installing the client from source will fix our gates.

Change-Id: Ia4d856118fa204f821c3ec0fdf39d210eaad34b1
2022-01-18 11:27:59 +00:00
Luigi Toscano 9b2c8127b1 Remove references to live_migrate_migrate_instance
The option was removed long ago in tempest 10.0.0:

https://review.opendev.org/c/openstack/tempest/+/277834

Change-Id: I1f8e9fabf7465479e1eee7fc466e39be1e67a8f8
2022-01-04 12:17:00 +01:00
Gregory Thiemonge c13c953677 Fix scenario010 job configuration
This job requires the octavia amphora image in glance, which depends on
the octavia tag.

Change-Id: I82a901a2a0886785afd230f09b068b744fcf4e6c
2021-12-06 14:26:35 +01:00
Martin Kopec 67f7408b0a Uncomment jobs, part 1
Let's activate a few jobs which were commented out in order to
unblock the gates and merge necessary changes.

Change-Id: I07b923d48aab5908c48fcfdd3a3fb23207178be7
2021-11-25 07:35:11 +00:00