13545 Commits

Author SHA1 Message Date
zhufl
fcfb31bccb Adding description for testcases - volume part2
When Tempest is used in customer site, often we are required to
provide a testcase list including testcase names and descriptions.
Now no this kind of doc is available, so we can add descriptions
with the format of doc string for every testcase, so later we
can generata such a testcase description list.

There are hundreds of testcases missing descriptions, so we can
add them gradually, and limit the modified files in one patch
for the convenience of reviewing.

Change-Id: I8577ceddcc99f77cfa091519d1466f075de54e43
partially-implements: blueprint testcase-description
2020-07-27 13:11:35 +08:00
zhufl
4810d887ff Adding description for testcases - network part1
When Tempest is used in customer site, often we are required to
provide a testcase list including testcase names and descriptions.
Now no this kind of doc is available, so we can add descriptions
with the format of doc string for every testcase, so later we
can generata such a testcase description list.

There are hundreds of testcases missing descriptions, so we can
add them gradually, and limit the modified files in one patch
for the convenience of reviewing.

Change-Id: Id3e49c09116c08b6a017b6bb9d016bb31cad9fcd
partially-implements: blueprint testcase-description
2020-07-27 10:45:18 +08:00
zhufl
0abb76f9ab Adding description for testcases - network part3
When Tempest is used in customer site, often we are required to
provide a testcase list including testcase names and descriptions.
Now no this kind of doc is available, so we can add descriptions
with the format of doc string for every testcase, so later we
can generata such a testcase description list.

There are hundreds of testcases missing descriptions, so we can
add them gradually, and limit the modified files in one patch
for the convenience of reviewing.

Change-Id: I5f4cd174a3dc2f23188b72ff856ec4e8f4b51414
partially-implements: blueprint testcase-description
2020-07-27 09:42:51 +08:00
Abhishek Kekane
7cff130795 Tempest tests for glance import workflow
This adds an initial test for glance image interoperable import
that uses the glance-direct method. It will skip if the server
does not support glance-direct.

Adding feature flag to enable the import tests as devstack on
stable branches cannot support image import feature.

Change-Id: I09e7fb4e7758edd5256ae70ceeea6f143466c3e3
2020-07-24 13:09:12 -05:00
Martin Kopec
14e2a4e421 Fix KeyError exc in volumes_client
is_resource_deleted method of v3 volumes_client was wrongly accessing
id value of a volume causing KeyError - in case the being deleted
volume was in error_deleting state.

Closes-Bug: #1887980
Change-Id: I6cea9917c248ceaa8b7cd60d0a20a2bf7540d9b9
2020-07-24 16:25:30 +00:00
Hervé Beraud
8aea021537 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I522388e474c205aa2bdf2e5167193f4e6b3381a4
2020-07-24 04:27:38 +00:00
Zuul
50ec7d74c3 Merge "Document the process to pin the constraint in tox.ini" 2020-07-22 03:23:41 +00:00
Zuul
6cb37d68b2 Merge "zuul: clean up some legacy jobs" 2020-07-17 14:10:30 +00:00
Lee Yarwood
99b7c11afa remote_client: Use blkid -L to find config drive by filesystem label
This change avoids the use of the re module to find the device name from
the normal blkid output.

Change-Id: I3c2c344768f6335c918565783da531db62b1bd3b
2020-07-15 19:59:23 +00:00
Ghanshyam Mann
0aa0636a09 Fix tempest plugin cookicutter repo path
cookicutter expect ether git+<repo-url> or it has the
'git' in url, otherwise it give error
- http://paste.openstack.org/show/795952/

plugin cookicutter README is fine but tempest doc does
not mention about it and end up having error
- https://opendev.org/openstack/tempest-plugin-cookiecutter

Change-Id: Ifb12011ac901be57d49a6ae623a24a916837c07d
2020-07-15 13:42:07 -05:00
Luigi Toscano
b4e0e2c7e7 zuul: clean up some legacy jobs
Replace legacy-tempest-dsvm-lvm-multibackend with its native version,
cinder-tempest-lvm-multibackend.

Remove legacy-tempest-dsvm-neutron-dvr-multinode-full, which was defined
as an experimental job in neutron and removed during the ussuri lifecycle.
See https://review.opendev.org/#/c/693630/
It seems neutron-tempest-dvr-ha-multinode-full should cover its use case.

Change-Id: I6edfd00f0c43cd0bfe688db5e43768288dd4c1c1
2020-07-15 15:40:28 +02:00
Zuul
6372ac2139 Merge "Unstable test_server_connectivity_cold_migration_revert" 2020-07-15 11:28:56 +00:00
Zuul
90018eabe7 Merge "Remove checking of Accept-Range header" 2020-07-15 07:32:23 +00:00
zhufl
93a047f42c Add response schema validation for volume backups
This is to add response schema validation for volume backups.

Change-Id: I2ab6ecfeb0c48c7ef4a0fc94e670d43dbc3f6650
partially-implements: blueprint volume-response-schema-validation
2020-07-15 01:29:05 +00:00
Zuul
ea55a17ee2 Merge "Fix pygments style" 2020-07-14 16:16:59 +00:00
Zuul
ef42797d0f Merge "Cap jsonschema 3.2.0 as the minimal version" 2020-07-14 16:16:56 +00:00
Zuul
a7203be653 Merge "Remove any reference to "tenant_id" in network" 2020-07-10 00:40:03 +00:00
Paras Babbar
e18335e1a2 Add skip flags for block level live migration
This has been observed recently that block level live
migration started failing with micro version 2.24 if the
user doesn't mention the "block_migration_for_live_migration"
it adds none in the api and thus tries to run it as shared
storage live migration and thus the test failed.

Change-Id: I4a3c1b83ee51a03a49f96b83e020419a306a15b3
Closes-Bug: 1884832
2020-07-09 14:53:26 -04:00
Martin Kopec
e1eebfa845 Replace mock by unittest.mock in 2 forgotten cases
We replaced usage of third party mock by the standard library in:
https://review.opendev.org/#/c/721021/
There are 2 forgotten occurrences where we still use the third
party mock, the patch fixes that.

Change-Id: I7d00be25bb0b70ce55e27790df33d9134c2a52ae
2020-07-08 13:27:02 +00:00
Lukas Piwowarski
4f633edd97 Remove checking of Accept-Range header
Some tests fail when Accept-Range header is not present in the
response of the API. This is not necesseary as the Accept-Range
header is not mandatory according to RFC [1].

[2] https://tools.ietf.org/html/rfc7233#section-2.3

Closes-Bug: #1885723
Change-Id: I521eb4a332937328b5010df53ddab2af76090202
2020-07-08 08:55:18 +00:00
Ghanshyam Mann
d89122be41 Document the process to pin the constraint in tox.ini
As discussed in Victoria PTG[1], we need to start pining
the constraint in tox.ini on Tempest new release so that our
tox.ini can match with compatible constraints with Tempest version.

[1] https://etherpad.opendev.org/p/qa-victoria-ptg

Change-Id: Ib705f59ef3aea93b2778cc87fc44d390b5a62c94
2020-07-07 13:11:42 +00:00
Zuul
3800158de0 Merge "Remove deprecated scenario image options" 2020-07-06 13:04:36 +00:00
Martin Kopec
02af6a44cc Remove deprecated scenario image options
Let's remove deprecated scenario image options which have been
deprecated for more than 4 years.

From now on CONF.scenario.img_file will need a full path for the image.
CONF.scenario.img_dir was deprecated and will be removed in the next
release. Till Tempest 25.0.0, old behavior is maintained and keep working
but starting Tempest 26.0.0, you need to specify the full path
in CONF.scenario.img_file config option.

Change-Id: I96d26ad3889f55d867fdea016953cce522a6fbdf
Related-Bug: #1393881
2020-07-05 10:16:18 +00:00
Ghanshyam Mann
aaaafbb5b8 Fix pdf-doc build by skiping the sample file
Tempest pdf doc build includes the sample config
file which is large in size and end up with
error 'Dimension too large'

- https://zuul.opendev.org/t/openstack/build/84d73ec987d04c05acc54b231d33067e/log/sphinx-build-pdf.log#1874

Its happening while adding new config option in
https://review.opendev.org/#/c/686073/ which means we
are at the edge of pdf build limit.

We should not include the sample config file as part
of pdf build.

Change-Id: I59383505989705d35d86b19b5c1aaafebd2bd307
Closes-Bug: #1886212
2020-07-03 11:24:43 -05:00
Zuul
c5e33135a9 Merge "object storage: fix and cleanup header checks" 2020-07-02 20:22:24 +00:00
Zuul
b721a6709b Merge "Add check_service_availability test" 2020-06-30 21:25:52 +00:00
Zuul
27aeea99fc Merge "Add unit tests for check_uuid.py" 2020-06-30 21:25:49 +00:00
Thomas Morin
42e111c7d8 object storage: fix and cleanup header checks
As explained in [1] it is not legitimate to require a Transfer-Encoding
header in Swift responses. That prevents running some tests
successfully in the case where Swift is behind a proxy/load-balancer
that does not use any Transfer-Encoding in its responses.

This change hence removes the checks for the presence of a
"Transfer-Encoding" header, and replaces them by the use
of the existing check methods, after modifying the
custom_matcher checks on which these methods rely on to accept
either a Content-Length or a Transfer-Encoding header.

Some adaptation was also required to avoid trying to process 'etag'
for DELETE requests.

A side-effect of this change is a code simplification and
cleanup since the specific header checks in the corresponding
tests are replaced by the generic check methods.

[1] https://bugs.launchpad.net/tempest/+bug/1819851/comments/3

Closes-Bug: 1819851
Change-Id: Iaccea41640a53b564f72cee73981e2e61d3e80ae
2020-06-29 23:24:42 +02:00
Ghanshyam Mann
b9bdeb4f5c Move process-stackviz role from Tempest to Devstack
process-stackviz role currently defined in Tempest and used
in tempest jobs. Issue with having it in branchless Tempest is that any
fix in that role cannot be backported to older Tempest. Also stackviz is
not Tempest things it is only used by Tempest jobs.

Stackviz can be considered as a service similar to Tempest so inatlling it in
Devstack side make sense. Also that will give us advantage to handle the
branch specific fixes or backpoting the fixes.

This can solve the current issues we are facing on rocky branch
- https://zuul.opendev.org/t/openstack/build/c1e2da80537448bfb24331fb4198a931/console#4/0/29/controller

Depends-On: https://review.opendev.org/#/c/737037/
Depends-On: https://review.opendev.org/#/c/737075/
Depends-On: https://review.opendev.org/#/c/737076/
Depends-On: https://review.opendev.org/#/c/737077/
Change-Id: Ide74cdf7967975fba9a3230007b35798d23e8bd2
2020-06-29 16:23:09 +00:00
Zuul
fdde1314db Merge "Fix test_get_service_by_invalid_params for microversion 2.75" 2020-06-24 16:23:58 +00:00
Tomas Krchnak
536d8284f4 Add unit tests for check_uuid.py
* adding a patch
* applying a patch
* adding uuid to test - with and without decorator
* adding import line to tests with uuid

Closes-Bug: #1878171

Change-Id: I59e2cb3bd0ee9a8b525b5904fd39eba446205efd
2020-06-24 15:03:08 +00:00
Tomas Krchnak
7cbe8b6b51 Add check_service_availability test
This patch increases test coverage of verify_tempest_config

partially-implements: blueprint tempest-cli-unit-test-coverage

Change-Id: I87966469df42f0fbabfa2b265398a101af414c9f
2020-06-24 12:59:00 +00:00
Zuul
b3229878a3 Merge "Unstable test_container_synchronization" 2020-06-24 07:06:51 +00:00
melissaml
217eebd0bf Fix pygments style
New theme of docs respects pygments_style.

more info: http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I4fbc5fc613e6eb64997935422697477db3ebcc91
2020-06-24 10:13:45 +08:00
Zuul
f9ba3e6625 Merge "Prevent raising exception if IP address is set in _hotplug_server" 2020-06-23 21:17:31 +00:00
Zuul
ecf2d6817b Merge "Fix the argument check for account-generator" 2020-06-23 21:13:18 +00:00
Martin Kopec
173c5c0009 Unstable test_container_synchronization
The bug which was the reason for skipping the test is considered
resolved. To make sure the test works, let's mark it unstable
for a while.

Change-Id: I7f02d82f5758bc2e32b06234652f755512a74787
Related-Bug: #1317133
2020-06-23 16:48:08 +00:00
Martin Kopec
fba44537c7 Unstable test_server_connectivity_cold_migration_revert
The bug which was the reason for skipping the bug has got expired
which suggests that the test is no longer causing problems.
Just to make sure the test works, let's mark the test as unstable
for a while.

Change-Id: I4c68caa693744e06de6be89a8f09d8f7e8ce8ba0
Related-Bug: #1836595
2020-06-23 16:46:15 +00:00
Zuul
206a9abec5 Merge "Fix request body for compute unshelve action API" 2020-06-22 16:21:16 +00:00
Martin Kopec
4c709ecaaf Use python3 venv instead of virtualenv
tempest-tox-plugin-sanity-check job is failing due to missing virtualenv.
As the job is running on master only and we don't support python2 anymore,
this patch edits the tempest-plugin-sanity.sh script so that it uses
python3 venv module to create a venv.

Change-Id: I3f711ec97ad9006c715bb45db9d8dd9d951bb6a1
2020-06-19 21:57:40 +00:00
Ghanshyam
cbf480ffa2 Fix request body for compute unshelve action API
Compute unshelve action API accept request body with
action name and null value. For exmaple: {'unshelve': null}.
But Tempest pass the empty dict instead of null- {'unshelve': {}}.
This works fine till 2.77 microversionbut after that nova
started rejecting the empty dict {}.

Defaulting the request body to None so that it works for older
as well newer microversion.

Closes-Bug: #1836187

- https://developer.openstack.org/api-ref/compute/?expanded=unshelve-restore-shelved-server-unshelve-action-detail#unshelve-restore-shelved-server-unshelve-action

Change-Id: I5b4be77d5ae88aedf6fd700e34a293064e655ba8
2020-06-18 11:49:45 -05:00
zhufl
8517b918a3 Fix test_get_service_by_invalid_params for microversion 2.75
From nova microversion 2.75, additional parameters of list_services
are not allowed, so test_get_service_by_invalid_params should be
skipped for microversion >= 2.75.

Change-Id: Iba870f077203d3f0d154aeb24de491a7534290af
2020-06-18 16:36:52 +08:00
Zuul
367e148d43 Merge "Fix 404 when deleteing volume group" 2020-06-17 16:34:04 +00:00
Zuul
f94204f044 Merge "[compute] Blacklist test_create_second_image due to race" 2020-06-15 15:34:34 +00:00
Lukas Piwowarski
58b0538670 Fix the argument check for account-generator
Concurrency parameter for account-generator command was accepting
negative values and zero.

This patch makes sure that when the account-generator is passed
a negative value or zero, it ends with an error.

Closes-Bug: #1811349
Partially-Implements: blueprint tempest-cli-unit-test-coverage
Change-Id: I4d7de89b2ad3ee91d113da3746fe393d8cce2aa2
2020-06-15 07:03:34 +00:00
Zuul
a0ee8b4ccf Merge "Change 'Member' role reference to 'member'" 2020-06-12 02:05:18 +00:00
Martin Kopec
99d4dae684 Change 'Member' role reference to 'member'
'Member' role has been deprecated and replaced by 'member'.
The patch replaces the leftover occurrences of 'Member' by 'member'.

Change-Id: I857655b8568eb2df1bb9bc263117119388d42f01
Closes-Bug: #1330132
2020-06-11 06:21:26 +00:00
Zuul
4341421365 Merge "Fix flavor swap default value for compute microversion 2.75" 2020-06-11 05:50:11 +00:00
Zuul
3280d8c134 Merge "Don't use deprecated configparser.readfp" 2020-06-09 22:50:55 +00:00
Gupta, Sangeet (sg774j)
423ae450db Fix 404 when deleteing volume group
In delete_group() method the group is deleted first and
then the volume information is fetched which internally
trys to find all the related groups. As group delete request
was placed earlier than volume list and the group might be
deleted before volume list try to find the group
information, it returns 404.

This is race condition based on group is finish its deletion
before list volume requests or not.

Better is to fetch the information of volumes first and then
delete the group. And use that volume info later
to cleanup the volume also if requested.

Change-Id: I5b52ebac2f325bfeda51773c90cb40e7f7e02c67
Closes-Bug: #1882116
2020-06-05 12:41:44 +00:00