Commit Graph

13211 Commits

Author SHA1 Message Date
Zuul
714c607a36 Merge "Prevent SSH client proxy loops" 2020-03-13 16:13:32 +00:00
Giulio Fidente
0d2b331cc4 Ensure bootable volume is gone in scenario test before tearDown
In test_create_server_from_volume_snapshot tearDown would trigger
bootable volume and snapshot deletion in the correct order but not
wait for the bootable volume to be deleted, causing snapshot
deletion to fail.

This change makes the scenario test explicitly delete the bootable
volume to avoid the race condition in tearDown.

Change-Id: I3fe2ce349ce629bfc96f6ddfb45b22687a1be137
Co-Authored-By: Alan Bishop <abishop@redhat.com>
Closes-Bug: 1863750
2020-03-04 10:18:27 +01:00
Zuul
f61e18ff7b Merge "Remove devstack-plugin-ceph-tempest py2 job" 2020-03-04 04:04:41 +00:00
Zuul
d0ebd38ac5 Merge "Do not force live migration outside of Availability zone" 2020-03-03 19:52:37 +00:00
Zuul
8877c4e891 Merge "Set 3h timeout for tempest-ipv6-only job" 2020-03-02 05:09:30 +00:00
Ghanshyam Mann
d2bdd8c0b8 Remove devstack-plugin-ceph-tempest py2 job
devstack-plugin-ceph-tempest is py2 job and not
supposed to run on master gate. Moving
devstack-plugin-ceph-tempest-py3 from experimental pipeline
to check.

Change-Id: I8a15d919f9902315c4a8d27d73dabbcc5be8d8de
2020-03-02 01:40:41 +00:00
Zuul
7dae461504 Merge "Added fix to 'test_delete_saving_image' testcase" 2020-02-28 08:01:38 +00:00
Zuul
b8d383cf20 Merge "add unittest for delete tag definition interface" 2020-02-27 19:08:56 +00:00
Marian Krcmarik
6e3f99e9d4 Do not force live migration outside of Availability zone
If live migration tests are ran on environment with multiple AZ and
destination host for live migration is chosen from different AZ then
nova scheduler would stop such migration and live migration tests
would fail so in the case of CONF.compute.compute_volume_common_az
being set in config file, choose destination host from the same
availability zone (the same happens with cinder AZ).

Change-Id: I6bfad96ae3aa6cd8efd7ae2a0ce01c53140f617a
2020-02-26 23:35:26 +01:00
Zuul
0e52b485e9 Merge "add unit test for delete_group_user method" 2020-02-26 05:02:22 +00:00
Zuul
9945391fd5 Merge "Improve response data of test_routers_client" 2020-02-26 05:02:18 +00:00
Zuul
6efb97bc9d Merge "Deprecate spice_console and rdp_console config items" 2020-02-25 06:25:04 +00:00
Soniya Vyas
faa163442b Added fix to 'test_delete_saving_image' testcase
'test_delete_saving_image' fails because image
snapshot is produced quicker than tempest being able
to catch the 'SAVING' transition.

Hence, the testcase needs following refinement:-
1. testcase should catch the state of image in 'SAVING'
   state only and then delete the image.
   By this case, we can get the idea that image is
   deleted in 'SAVING' state only and the testcase will
   achieve its motto.
2. If the image trasits to a state other than
   'SAVING', testcase can just delete the image.

Related-Bug: #1713163
Signed-off by: Soniya Vyas<svyas@redhat.com>
Change-Id: I50606c67e9f626935878aaa61d0adbc236272054
2020-02-22 21:24:18 +05:30
wangzhiguang
2bdbc0a9ec add unit test for delete_group_user method
add unit test for delete_group_user method

Change-Id: I5566c6b5300ff47d37f3dbb224e5e7ba83a49c57
2020-02-20 11:44:47 +00:00
Zuul
2844774bb2 Merge "Remove indentation for bullet list" 2020-02-19 13:58:33 +00:00
Slawek Kaplonski
8cb1b47481 Set 3h timeout for tempest-ipv6-only job
I saw in Neutron queue that default 2h timeout for this job wasn't
enough sometimes. So it's better to keep this job running a bit longer
sometimes rather than recheck everything.

Change-Id: I7c256f1ca5790cd13411d3af78ec97efcfd28b0a
2020-02-19 13:12:54 +01:00
Zuul
dbe269acee Merge "Relax volume compare in test_minimum_basic_scenario" 2020-02-19 06:46:24 +00:00
Zuul
b4b071a7eb Merge "Modify the response in test_snapshots_client" 2020-02-19 05:19:38 +00:00
Zuul
df13f4dc40 Merge "compute: Deprecate [compute-feature-enabled]/block_migrate_cinder_iscsi" 2020-02-19 04:15:11 +00:00
Zuul
eabaa43f36 Merge "Add validation_resources in test_resize_volume_backed_server_confirm" 2020-02-19 04:15:09 +00:00
zhufl
d5bda71259 Deprecate spice_console and rdp_console config items
spice_console and rdp_console are no longer used after
9f5adf8053, this is to deprecate
them for removal.

Change-Id: I8a882878493e3fe39bbfe0628991ee551c15d1b0
2020-02-19 08:45:48 +08:00
Zuul
3d24a619d0 Merge "compute: Use wait_for_volume_attachment_remove when detaching multiattach volumes" 2020-02-17 16:55:36 +00:00
Zuul
c6747367f4 Merge "Remove the deprecated verify-tempest-config CLI" 2020-02-17 14:16:41 +00:00
Zuul
a72182a5f6 Merge "Add missing waiter to test_tagged_attachment" 2020-02-17 14:08:22 +00:00
Zuul
0970274c55 Merge "Removal of deprecated argument[os-tenant-name]" 2020-02-17 14:08:20 +00:00
Weronika Sikora
9e3cc27e8c Add validation_resources in test_resize_volume_backed_server_confirm
Create_test_server in test_resize_volume_backed_server_confirm didn't
use validation_resources nor validatable=True, which resulted in an
SSHTimeout error when using fixed IP for connect_method.

When using connect_method=floating, the validation check refers
to the server created in setUp instead of this one, which prevented
this bug from being caught.

Change-Id: I778236f456ef91e78a592f99e552cb3088b1e5db
Co-authored-by: zhufl <zhu.fanglei@zte.com.cn>
Closes-Bug: #1751418
2020-02-14 14:12:47 +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
Lee Yarwood
f644baa183 compute: Use wait_for_volume_attachment_remove when detaching multiattach volumes
This change replaces the attach_volume cleanup call to
wait_for_volume_resource_status with wait_for_volume_attachment_remove
for multiattach volumes. This newer waiter method being able to handle
cases where multiattached volumes remain attached and thus marked as
'in-use' after being detached from another instance.

Closes-Bug: #1858841
Change-Id: I4e9d253cad1b797940c2c1f922b66602ba592416
2020-02-13 15:32:49 +00:00
Rodolfo Alonso Hernandez
bcfa06d55c Prevent SSH client proxy loops
Avoid creating a SSH client with a proxy client having the same
connection parameters. This will prevent from creating a SSH tunnel
within the same client.

This patch also provides aditional information in the exception
message, in case of SSH connection error, about the proxy client
configured in the SSH client.

Change-Id: I4fcffb7e26b0adc0e39dc13085f93db6495c3bd6
Related-Bug: #1860586
2020-02-12 09:44: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
Weronika Sikora
03c428d5f6 Add missing waiter to test_tagged_attachment
test_tagged_attachment was failing when Tempest was set to connect
via fixed IP. The test was trying to attach an interface to an
instance that was still in the building state. Adding a 'wait_until'
to the method creating said instance fixes the issue.

Change-Id: Ia1252a22c54e3a84a8e5e779ed6ea5ee593760da
Closes-Bug: #1860680
2020-02-05 11:24:15 +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
Martin Kopec
d19d7f8dc4 Improve response data of test_routers_client
The response data of test_routers_client are edited in order to be
consistent with the Reference API document [1]

[1] https://docs.openstack.org/api-ref/network/v2/index.html

Closes-Bug: 1838005
Change-Id: I9f5e57a3114ac047f87762def08b165bf377b600
2020-01-31 07:55:36 +00:00
Lee Yarwood
48fe99faf2 compute: Deprecate [compute-feature-enabled]/block_migrate_cinder_iscsi
This option duplicates the more generic
[compute-feature-enabled]/block_migration_for_live_migration now that
MIN_LIBVIRT_VERSION is >= 1.2.17 on all branches from stable/rocky. We
can deprecate this now ahead of removal once stable/pike and
stable/queens are no longer supported.

Change-Id: I8d8ae5ebf8e1d383f184527815f0a0c0ba9a343d
2020-01-29 09:31:09 +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