13257 Commits

Author SHA1 Message Date
Zuul
329247f3ec Merge "add unittest for create and list resource types association" 2020-04-09 11:40:14 +00:00
Zuul
d46b7f988e Merge "Fixed test related to tag-ext" 2020-04-09 11:40:12 +00:00
Zuul
9647e473b7 Merge "compute: Use valid extra specs to test 'os-extra_specs' API" 2020-04-08 21:15:42 +00:00
Zuul
08711d3daa Merge "compute: Add negative volume update multiattach test" 2020-04-08 19:50:11 +00:00
Zuul
baecb1e674 Merge "Modify the incorrect fake data" 2020-04-07 20:04:19 +00:00
Zuul
f1bc111116 Merge "Update hacking for Python3" 2020-04-07 10:27:47 +00:00
Lee Yarwood
4b1085233f compute: Add negative volume update multiattach test
The introduction of Icd7fcb87a09c35a13e4e14235feb30a289d22778 blocks
attempting to update or swap a volume that is currently attached to
multiple instances. This change adds a simple test to assert that a
BadRequest is raised when this is attempted directly against the compute
API.

Future work will also cover this failure when part of a wider volume
retype or migration flow.

Change-Id: I931a810901cf7847a8259e44a30b0150aad859f2
2020-04-07 09:49:06 +00:00
Andreas Jaeger
b8435b27ac Remove universal wheel building
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo

Change-Id: I95a717b873c8c21eeec4617b66c42cd6dbf226b2
2020-04-04 17:36:03 +02:00
Andreas Jaeger
f27a334e21 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8, remove vi check, it's now in
hacking as H106.

The tempest plugin is used on older branches as well.
We really only need hacking on this repo anyways,
where we no longer support python 2, so here we
make the requirement specific to python 3.

Change-Id: I3f4216f66606fbc450a46c93de306399b7f3cd65
2020-04-04 10:33:23 +02:00
Zuul
6e376b6eed Merge "Check no specific group present in group list" 2020-04-03 20:22:49 +00:00
Zuul
41f48727af Merge "Support force-deletion of servers." 2020-04-03 20:19:09 +00:00
Zuul
94e83edb27 Merge "Replace old requires-python with python-requires" 2020-04-02 02:44:16 +00:00
Andrey Volkov
8b29792f43 Check no specific group present in group list
Let's check no specific group present instead of list is empty
in test_group_snapshot_create_show_list_delete.
This maybe a reason of failed test due to some inconsistency.

Closes-Bug: #1869852
Change-Id: I41884567ae07b4d6a28667d2a3a792b63e1a6cfa
2020-03-31 11:27:02 +03:00
Martin Kopec
e743e5d394 Blacklist x/kingbird project from sanity-check
x/kingbird doens't seem to be compatible with tempest anymore
which is breaking our tempest-tox-plugin-sanity-check gate job.

Change-Id: Icdaff49bbc2ba0e59cd528d55cad6c35014b7ad0
2020-03-30 13:50:15 +00:00
Zuul
b47d1d2b8a Merge "Fixes race condition in test_add_remove_fixed_ip" 2020-03-27 22:19:38 +00:00
Ghanshyam Mann
7cd0186dbe Replace old requires-python with python-requires
requires-python is old value and does not work, python-requires
is right metadata.

'python-requires' is introduced from PEP440 and requires-python was old value
in PEP345.
- https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
- https://www.python.org/dev/peps/pep-0345/#requires-python

Change-Id: Id4a5197ec5dcaab419304e9244f4c6d319e8b5c6
2020-03-27 13:40:35 -05:00
David Sedlák
61a3c8efa4 Fixes race condition in test_add_remove_fixed_ip
Currently race condition can occure in
tempest.api.compute.servers.test_attach_interfaces.
AttachInterfacesUnderV243Test.test_add_remove_fixed_ip
when floating IP added during resource preparation doesn't appear in
the list of original IPs that is created at the beggining of the test,
which then confuses the test
and floating ip is later recognized as fixed IP added in the test.
more details including log:
https://bugzilla.redhat.com/show_bug.cgi?id=1752416

This change ensures possible floating IP added during server
creation is always present in the set of original IPs and also
during every comparasion of IPs.

Closes-Bug: #1866179

Change-Id: Ic3a3e0708714b6d6c9c226e641e1c520e5ebde9d
Signed-off-by: David Sedlák <dsedlak@redhat.com>
2020-03-27 02:42:37 +00:00
Zuul
348fa311fe Merge "Create default network for compute volume and negative metadata tests" 2020-03-25 23:18:45 +00:00
wangzhiguang
33e0e069fe add unittest for create and list resource types association
add unittest for create and list resource types association
interface of metadata in glance module

Change-Id: I3f7bff1fcad32450b71f4ddd16e579cd53961fe9
2020-03-25 17:26:19 +00:00
Zuul
e5a2ad484a Merge "Make tempest-multinode-full py2 job on py2" 2020-03-24 13:55:17 +00:00
Zuul
c8058d0c13 Merge "add unittest for delete resource types association" 2020-03-22 01:50:47 +00:00
Zuul
6e79824135 Merge "services: Introduce a cinder v3 attachments client" 2020-03-22 01:50:45 +00:00
Zuul
8ec57b51d5 Merge "Add subnet_id option" 2020-03-19 21:17:04 +00:00
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
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
Zuul
6efb97bc9d Merge "Deprecate spice_console and rdp_console config items" 2020-02-25 06:25:04 +00:00