13388 Commits

Author SHA1 Message Date
Ghanshyam Mann
7d91b69081 Create default network for compute volume and negative metadata tests
server metadata and volume tests also create server without passing
the network to nova which further fail if more than one test network exists.

http://eavesdrop.openstack.org/irclogs/%23openstack-qa/%23openstack-qa.2020-03-03.log.html#t2020-03-03T15:57:34

Partial-Bug: #1844568
Change-Id: I9956946a4309b9a013fd53b0db06718372a9213c
2020-03-19 14:05:28 +00:00
Zuul
1eda90cf06 Merge "Modify the application credentials fake data" 2020-03-19 11:23:51 +00:00
Zuul
ccd16f7a49 Merge "Cleanup images properly" 2020-03-19 11:23:49 +00:00
AbhishekJ
61b9fd2310 Fixed test related to tag-ext
according to bug https://bugs.launchpad.net/neutron/+bug/1682775
tag-ext renamed to standard-attr-tag, after Stein release.
Related-Bug: #1682775

Change-Id: I6f16829a2430e428d80138d25137bd8263f9c15e
2020-03-19 09:19:15 +00:00
Zuul
a09c82023b Merge "Update README for run-tempest role" 2020-03-19 03:11:22 +00:00
Lukas Piwowarski
2385e0417b Add subnet_id option
When tested network contained more than one subnet then test failed
due to assert call.

Subnet_id option specifies which subnet should be used for testing
when more than one subnet in network is present. If subnet_id is
specified then each created VM is assigned a floating IP within
the range of the subnet.

Closes-Bug: 1856671
Change-Id: Ie4d44b16595055201e12f10982fc78683a12d41a
2020-03-18 10:15:55 +00:00
Zuul
4bc12aad2e Merge "modify status code according to the latest API documentation" 2020-03-17 13:13:24 +00:00
Zuul
51fe1ae61b Merge "Add response schema validation for volume quota classes" 2020-03-16 02:21:32 +00:00
Zuul
3a326062e8 Merge "Add response schema validation for volume types" 2020-03-16 02:15:56 +00:00
Zuul
c34a0599fd Merge "Delete network quotas" 2020-03-16 02:15:54 +00:00
Ghanshyam Mann
0fb306f2e0 Make tempest-multinode-full py2 job on py2
tempest-multinode-full is python2 version
of mutlinode testing for stable branches and
supposed to run on python 2 but it was left during
- I75868d5c9b6630fe78958ff89e58a0aced09a6b3

Change-Id: Ibec72b578424cb278006ac810bdd0359ec23de3f
2020-03-15 14:43:44 -05:00
Zuul
714c607a36 Merge "Prevent SSH client proxy loops" 2020-03-13 16:13:32 +00:00
Lukas Piwowarski
2c83124392 Cleanup images properly
Images weren't deleted properly due to bad request sent to
glance API. Also ImageService ignored 'next' parameter returned from
glance API when listing images which is required when more images
are present.

The fix lists all images properly. If 'next' parameter is present
in the glance API response then the API is asked to send next part
of image list.

Closes-Bug: 1866988
Change-Id: I9ebeccb545576e43ef0fc96c29169ae16f261f34
2020-03-12 10:19:04 +00:00
wangzhiguang
65e37a2bf5 add unittest for delete resource types association
add unittest for delete resource types association interface
of metadata in glance module

Change-Id: I22e62f33b67002b8a0e1bd24f311df367500c32b
2020-03-07 12:23:54 +08: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
Lee Yarwood
ec3ae5ea0e services: Introduce a cinder v3 attachments client
This change adds a new attachment client to allow for CRUD operations
against volume attachments as now exposed by the Cinder v3 API.

Change-Id: I0171dc0a87800ad33c176c6b6540fbc3db025709
2020-03-02 09:02:50 +00:00
Soniya Vyas
ddcd4f44ac Remove the deprecated tempest-account-generator CLI
Tempest CLI tempest-account-generator was deprecated
4 years ago.
devstack still uses the deprecated CLI for which
patch has been proposed.

As deprecation is done long time back,
'tempest-account-generator' should be now used as
'tempest account-generator'

The following commit gives the idea of deprecation
message:-
68b8b9d26f

Depends-on: I624e1dc57a3d3533322fb298c01f70241d0400ed
Signed-off by: Soniya Vyas<svyas@redhat.com>
Change-Id: I7c18998dd877d7fd065e4d1d0950b6f6413587c3
2020-03-02 14:26:12 +05:30
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
wangzhiguang
7eb1d2dc99 modify status code according to the latest API documentation
modify delete all tag definitions interface status code according
to the latest API document

Change-Id: I4095cfeff213317bb20caec74c1887c968a52624
2020-02-27 06:28:32 +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
wanglbj
39f48588e8 Modify the fake data
According the api ref described, modify the incorrect fake data to right.

Change-Id: I9cb7a0b7139704ea93cad1959cd121468150f815
2020-02-26 03:12:12 +00:00
zhufl
be86aec05d Change bytes to str in servers_client for python3
In python3, the response body of clients will be of type bytes,
but jsonschema.validate expects parameter of type str, so we need
change bytes to str when needed, otherwise we will get errors like
"HTTP response body is invalid (b'' is not of type 'object', 'string'"

Change-Id: If4cad1b0f706aeb5f83931cb6928806a2c5cee8e
Closes-Bug: #1864625
2020-02-26 08:34:24 +08: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
9f5adf8053196ac103302d4d7ea3b1f927caff5d, this is to deprecate
them for removal.

Change-Id: I8a882878493e3fe39bbfe0628991ee551c15d1b0
2020-02-19 08:45:48 +08:00
Lukas Piwowarski
e530f24160 Delete network quotas
NetworkQuotaService class enables deletion of network quotas which
were neglected by tempest cleanup before.

Change-Id: I83ac30960c0be39fc5147d445cb39cb3ff4c56b2
2020-02-18 15:33:10 +00: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
Stephen Finucane
e30375e174 compute: Use valid extra specs to test 'os-extra_specs' API
In Ussuri, nova is hoping to implement support for extra spec
validation. If or when this is completed, only extra specs that are
recognised will be permitted by default. We're currently using a number
of arbitrary extra specs to validate the 'os-extra_specs' API meaning we
will fall afoul of this validation. Head the issue off now by using
recognized extra specs, namely 'hw:numa_nodes' and 'hw:cpu_policy',
instead.

Change-Id: I95a1050d6a5e2e40793ae7f18ff0d326455b4b36
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-02-12 10:00:43 +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