13176 Commits

Author SHA1 Message Date
Zuul
0970274c55 Merge "Removal of deprecated argument[os-tenant-name]" 2020-02-17 14:08:20 +00:00
Ghanshyam Mann
4062a5cebb Re-enable the stable rocky job
stable rocky is fixed and green now[1],
This commit re-enables those.

[1] https://review.opendev.org/#/q/topic:fix-stable-gate+(status:open+OR+status:merged)

Change-Id: Ia25c8022f6bf2a0015641ef097f09b29f34e6d16
2020-02-14 13:30:15 +00:00
Zuul
7f8527523e Merge "add unittest for agent operation interface in network part" 2020-02-14 07:19:05 +00:00
Ghanshyam Mann
551e8d7a59 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Tempest is ready with python 3 and ok to drop the
python 2.7 support. Last Tempest version officially supported
for py2.7 is 23.0.0.

Now onwards, Tempest will test all stable branch with py3 jobs.
tempest-full and other py2 version of jobs definition are kept
for stable branch gate.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I75868d5c9b6630fe78958ff89e58a0aced09a6b3
2020-02-12 00:11:31 +00:00
Zuul
fbde5a3948 Merge "waiters: Add wait_for_volume_attachment_remove" 2020-02-11 09:55:21 +00:00
Zuul
7eeecf7b3b Merge "Refactor methods to be used by other tests" 2020-02-10 13:00:33 +00:00
Lee Yarwood
4b95d4b14f compute: Add volume and placement microversion support to BaseV2ComputeTest
Allowing BaseV2ComputeTest based test classes to specify
volume|placement_min_microversion and volume|placement_max_microversion.

Change-Id: If69f0456dc40b923b550bc648caaf0cb1a16e086
2020-02-07 11:11:30 +00:00
Zuul
9ddda2bd01 Merge "Use stable constraint in run-tempest for stable branch testing" 2020-02-07 07:18:31 +00:00
Ghanshyam
535cfb05f9 Disable stable/rocky temporarily on Tempest master
Stable/rocky jobs are broken due to py2
drop by Tempest dependency.
- http://lists.openstack.org/pipermail/openstack-discuss/2020-February/012371.html

Fixes are on devstack stable/rocky and tempest side
- https://review.opendev.org/#/q/topic:fix-stable-gate+(status:open+OR+status:merged)

To get the Tempest fix and other patches merged
we need to disable the rocky jobs on master gate
temporary and bring them back once everything is fixed.

Tempest fix blocked due to stable/rocky jobs
-https://review.opendev.org/#/c/705870/

Change-Id: I2238387c42650aceb9bacf51a4116ce6887cc460
2020-02-06 15:41:50 -06:00
Ghanshyam
56149024a0 Use stable constraint in run-tempest for stable branch testing
Stable branches till stable/rocky is using python
version <py3.6. Tempest test those branch in venv
but Tempest tox use the master upper-constraint[1]
which block installation due to dependencies
require >=py3.6. For exmaple, oslo.concurrency 4.0.0
is not compatible for <py3.6.

As we pin Tempest for EM stable brach, we should be
able to use stable constraint for Tempest installation
as well as while running during run-tempest playbook.

tox.ini is hard coded to use master constraint[1] which force
run-tempest to recreate the tox env and use the master constraint.

Devstack can set stable u-c to use via env var but this is
not enough as Tempest role run-tempest recreate the tox
env with master u-c.
- https://review.opendev.org/#/c/705089/4/lib/tempest

Currently we are fixing run-tempest to use stable constraint
till stable/rocky which use distro having <py3.6.

Ideally, we can change compatible branch constraint in tox.ini
while doing release tag for Tempest. But that can be done
for future tags only.

[1] bc9fe8eca8/tox.ini (L14)

Change-Id: I4268049ff91e5527e4b95fd8a70fa53ba27d56ed
2020-02-06 13:12:07 +00:00
Lee Yarwood
bc9fe8eca8 tox: Use python3 within tempestenv
If3ff71dbe636ef98072b15f6599e6e641c222f30 had switched this to python3.6
but this breaks on distros where 3.6 is no longer provided by default,
such as Fedora.

Closes-Bug: #1861308
Change-Id: I0e0b9e88eea2499cb1b9727a7787c050c869c819
2020-02-04 20:07:02 +00:00
Ghanshyam
b0a8057fbb Drop python 3.5 support from Tempest
Tempest, its plugins and their dependencies in ussuri
cycle are python-requires>=py3.6 which makes distro not
having python 3.6 to do hack to install py3.6 etc.

We cannot do >py3.6 in basepython so one way is to drop the
py3.5 support and basepython to py3 so that it can choose
the available py version in env.

It time to drop the py3.5 from Tempest. Last supported version of
Tempest for py3.5 is 23.0.0.

oslo drop py2 so we need to remove the py2 unit test job which
is failing and blocking gate.

There is seoarate work to drop the py2 things from Tempest in
compplete set.

Change-Id: I872dbb57df46d1193c0d409bb00d56f372d295fe
Related-Bug: 1861308
2020-02-04 19:23:01 +00:00
Swapnil Chhanikar
a89eea8559 Change default region for placement to empty string
As per tempest design, if tempest conf is not having any region for
a service then identity region should be used. In case of placement
the default value is "RegionOne" which is considered as placement
region if region missing in tempest conf. In order to have identity
region to be used as default we need to change to empty string for
placement service. Empty string can be seen being used in other
services like volume, image etc.

Please check the below link for the logic of default region
https://github.com/openstack/tempest/blob/master/tempest/config.py#L1435

Change-Id: I2a1045cd0f9eb830493b2b4287ccee46223f3c59
2020-02-03 09:12:35 +00:00
Lee Yarwood
c1b2a4a71b waiters: Add wait_for_volume_attachment_remove
This change adds a specific waiter for tracking the removal of
attachments from a volume. This should allow callers to track the
detaching of multiattached volumes from instances while the volume
remains in an `in-use` state.

Related-bug: #1858841
Change-Id: I85917f683d2bc81fdf3f6d3351bf56fdb649740e
2020-01-28 20:37:10 +00:00
Zuul
acfb494c85 Merge "Create default network for more compute tests" 2020-01-28 17:57:41 +00:00
Zuul
3b9b8ece39 Merge "Add ConsistencyGroup Exceptions in tempest" 2020-01-28 17:43:41 +00:00
Zuul
2303495db5 Merge "Fix test_stamp_pattern to remove dependency of user supplied volume name" 2020-01-28 17:39:14 +00:00
Zuul
802ff0e1c4 Merge "Accept custom registered endpoints" 2020-01-28 17:29:23 +00:00
Soniya Vyas
195767a062 Removal of deprecated argument[os-tenant-name]
Use of os-tenant-name or OS_TENANT_NAME is deprecated.
Instead of it, os-project-name is expected to be used.

This patch depends on below mentioned patch, since
devstack still uses the deprecated argument.

Depends-on: I624e1dc57a3d3533322fb298c01f70241d0400ed
Signed-off by: Soniya Vyas<svyas@redhat.com>
Change-Id: I3b926f8abb6fce3d2eab93310ce3959c68aa9a6d
2020-01-28 17:47:06 +05:30
Martin Kopec
1d500e7915 Accept custom registered endpoints
The review drops usage of skip_path() filter in the related tests
and uses raw_request() instead.

Normally a swift url is organised as host:port/info and
host:port/v1/AUTH_<tenant-id>, see
https://docs.openstack.org/api-ref/object-store/
But RadosGW API is organised as host:port/swift/info and
host:port/swift/v1/AUTH_<tenant-id>, see
https://docs.ceph.com/docs/master/radosgw/config-ref/#swift-settings

Close-bug: 1799981
Change-Id: I6a932639a05defe0f04c600afcc35a19662937af
2020-01-28 07:18:59 +00:00
Zuul
27e3154390 Merge "Define python3 as basepython for Tempest tox env" 2020-01-28 05:09:13 +00:00
Zuul
3a15125005 Merge "Remove the Queens stable branch jobs from master gate" 2020-01-27 23:21:45 +00:00
Zuul
01b779e784 Merge "Add doc for supported OpenStack release & py version" 2020-01-26 00:26:50 +00:00
Paras Babbar
4b45f9e54c Fix test_stamp_pattern to remove dependency of user supplied volume name
This patch removes CONF.compute.volume_device_name dependency and
use modified list_disks method to get the newly attached
device name and use that for mkfs rather than the user supplied
device name which is based on assumtion.

Also modfied test_attach_detach testcase and unit test
for remote_client accordingly.

Change-Id: I862d1ba55f45b09385057a51b0b52a851c19287e
Closes-Bug: #1852807
2020-01-24 19:19:45 -05:00
Ghanshyam
1c680fdb72 Define python3 as basepython for Tempest tox env
While OpenStack is in transition to drop py2, many
lib or dependency of Tempest or its plugins cannot
be installed on python 2.7.

To install Tempest on py3 evnv, let's change the basepython
as python 3 for tox env.

Defining basepython as python3.6 for all venv using
.tox/tempest.

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

Closes-Bug: 1860033
Change-Id: If3ff71dbe636ef98072b15f6599e6e641c222f30
2020-01-24 08:33:52 -06:00
Zuul
5785a7d180 Merge "Remove the security_group_default_rules tests" 2020-01-24 08:05:46 +00:00
Rajat Dhasmana
fbea823a34 Add ConsistencyGroup Exceptions in tempest
The exceptions ConsistencyGroupException and
ConsistencyGroupSnapshotException are required by
cinder-tempest-plugin[1][2] when the
CG or CG Snapshot fails to create and is in error state.
These exceptions never existed as part of the original topic[3]
but failures are seen while running tests as reported in the bug.

[1] https://github.com/openstack/cinder-tempest-plugin/blob/master/cinder_tempest_plugin/services/consistencygroups_client.py#L140
[2] https://github.com/openstack/cinder-tempest-plugin/blob/master/cinder_tempest_plugin/services/consistencygroups_client.py#L172
[3] https://review.opendev.org/#/q/topic:cg-tests+(status:open+OR+status:merged)

Change-Id: I62e0ba556b884c94f6e8796a2e6f6d8083277fa4
Closes-Bug: #1858417
2020-01-24 07:00:16 +00:00
Eric Fried
e85f029abf Create default network for more compute tests
Chipping away at the referenced bug, this commit uses the
create_default_network class-level variable introduced via [1] to
trigger setup_credentials to create a default network for another test
case in which the problem was observed.

[1] Ia34fe3b41261de02918713c2a948e6c56554bf6f
Partial-Bug: #1844568

Change-Id: Ic500aff5adda66328c292c936eaa097253360ea4
2020-01-23 10:42:27 -06:00
Ghanshyam Mann
68600b18fa Add doc for supported OpenStack release & py version
Tempest is branchless and support many OpenStack stable branches
and python versions. Users of Tempest should have a clear doc about
what all openstack releases and python versions are supported.

Change-Id: Idc76e07efdd3710a59c773c564ca532419989ed5
2020-01-23 14:39:36 +00:00
Ghanshyam
f961463113 Add release notes page for version 23.0.0
Tempest 23.0.0 has been released [1].
This commit adds a new page for 23.0.0 release notes.

[1] https://review.opendev.org/#/c/703521/

Change-Id: If9ffb5c90c427ed3e31e9b6bcb5f6aeca483d110
2020-01-22 14:51:42 -06:00
Ghanshyam
64da1a1403 Remove the Queens stable branch jobs from master gate
Tempest 23.0.0 is released now, which marks the end of support
for Queens release - https://review.opendev.org/#/c/703521/

We do not need to run the Queens stable jobs on master gate now.

Depends-On: https://review.opendev.org/#/c/703521/
Change-Id: I2ae25eb7aa88258580a4163f617548df35e74bdb
2020-01-21 09:45:39 -06:00
Zuul
d43223773d Merge "Add releasenote to tag the end of support for Queens" 2020-01-20 23:19:55 +00:00
Zuul
7cb75cff38 Merge "Add release notes page for version 22.1.0" 2020-01-20 23:17:34 +00:00
Zuul
2b3885f585 Merge "Create default network for more compute tests" 2020-01-19 16:51:48 +00:00
Ghanshyam
3553026a8e Add release notes page for version 22.1.0
Tempest 22.1.0 has been released in Train but releasenote
page was not added for that.

Change-Id: I899d18ee33bd2b94d81f65b62a2b32f643a2d262
2020-01-18 15:29:27 -06:00
Ghanshyam
fd328a4f21 Add releasenote to tag the end of support for Queens
This relesenote also mark end of support for Queens release
in Tempest as Queens is in EM state[1].

[1] https://releases.openstack.org/

Change-Id: I64bd02b6ccef9e18d9b55f656fe3c224e1aba6d9
2020-01-18 15:12:08 -06:00
Rajat Dhasmana
a8bfa172c1 Refactor methods to be used by other tests
These methods are useful for a new snapshot test so moving them into
manager to be reused.

Change-Id: Ib5ebbc6d5538a6179eca27c203faee6805af0093
2020-01-17 16:49:50 +00:00
Eric Fried
1f546532c3 Create default network for more compute tests
Chipping away at the referenced bug, this commit uses the
create_default_network class-level variable introduced via [1] to
trigger setup_credentials to create a default network for
a handful more test cases in which the problem was observed.

[1] Ia34fe3b41261de02918713c2a948e6c56554bf6f
Partial-Bug: #1844568

Change-Id: Ic38c74c245fddf29826e6ca0cc469f919076355e
2020-01-16 14:10:43 +00:00
Zuul
277f4bfbc5 Merge "waiters: Rearrange image and volume waiter tests" 2020-01-15 01:00:39 +00:00
Zuul
f419f4d36f Merge "Create default network for several compute tests" 2020-01-14 11:29:29 +00:00
Zuul
088d4c033e Merge "compute: Fix a typo within the v2_71 servers response schema" 2020-01-14 01:50:33 +00:00
Eric Fried
bfaa50f18b Create default network for several compute tests
Chipping away at the referenced bug, this commit introduces a
class-level variable on BaseV2ComputeTest that triggers
setup_credentials to create a default network, and sets it for several
classes where the problem has been observed. The class variable is so we
can whack-a-mole with one line instead of four whenever this problem
pops up.

Change-Id: Ia34fe3b41261de02918713c2a948e6c56554bf6f
Partial-Bug: #1844568
2020-01-10 16:41:41 -06:00
Zuul
b637253014 Merge "Blacklist compute.volumes and compute.images API tests" 2020-01-10 03:42:08 +00:00
Slawek Kaplonski
3532444045 Blacklist compute.volumes and compute.images API tests
Those tests are related to Nova-Cinder and Nova-Glance interactions
and there is no need to run them on e.g. Neutron gate.
So this patch adds both groups of API tests to be blacklisted in
integrated networking template.

Change-Id: I500b4514f64c89e55d946b5958098511318ea358
2020-01-09 20:51:42 +00:00
Lee Yarwood
9e202d8fb8 waiters: Rearrange image and volume waiter tests
Change-Id: I479ada919ff132bd0c370c692b6b9886b3c6d981
2020-01-08 19:49:44 +00:00
Lee Yarwood
43e380c6c1 compute: Fix a typo within the v2_71 servers response schema
Change-Id: Id958bc8593e6c1b0010b303f04364fcfdbcb3d56
2020-01-08 11:26:57 +00:00
Zuul
97052fae12 Merge "Remove test_agent_management tests" 2020-01-07 20:01:55 +00:00
Zuul
4f8155cd59 Merge "Remove xvpvnc console type tests" 2020-01-06 02:31:08 +00:00
Zuul
be76e2970e Merge "add unittest for list namespaces interface" 2020-01-04 03:58:47 +00:00
Zuul
5e9a9edd20 Merge "Add a default network when creating a server" 2020-01-03 20:45:41 +00:00