This is a start to have tempest handle Cinder API versions
based on what is actually enabled. There are currently a
lot of places in the code the assume v1 and v2 are available,
but those versions may be disabled, especially as we try to
get everyone moved onto the latest (final?) v3 API version.
There are more areas that should be fixed up before we can
actually just work with v3 only, but this is a start to get
there.
Closes-bug: #1703044
Change-Id: Icc2e12f06c3b4899f934f000e191552f4a5cd2a9
_create_service in test_endpoint_groups.py is a class
method, so cls should be used instead of self.
Change-Id: I80e1c4ac1091d8ce98967e9e184ef63466b51990
It will help to catch tempest plugin config and dependency issues
with tempest.
sh ./tools/tools/tempest-plugin-sanity.sh or
tox -e plugin-sanity-check will invoke the same.
Change-Id: If42561bfc1d6dcffbb6537634d7769ef90fab21d
This patch adds 'params' argument to list_backups API in v2 BackupsClient,
to enable passing additional information in the query string of the HTTP
request.
Change-Id: I8e31a55741f9bebf7b3d70491e2353b466dce06e
This patch supplements unit tests for volume v2 transfers client,
and also makes some modifications to the original unit tests.
Change-Id: Ib60665c1819ed19fdd13454bec3642ec1451b3e9
Partially Implements: blueprint tempest-lib-missing-test-coverage
This patch:
- adds ``disable_log_reason`` and ``update_forced_down`` API
endpoints to the compute ``services_client``
- adds corresponding unit tests and schemas
(for 2.11 microversion)
- changes ``host_name`` parameter in the unit tests for
``services_client`` to ``host`` because ``host_name``
is wrong; see [0] for example
However, this patch does not add API tests for these endpoints
because they result in compute services being forced down
or disabled, which are dangerous to test in the gates.
Valid use cases for these APIs include:
- negative testing
- RBAC testing (forcing a BadRequest but ensuring policy enforcement
happens beforehand)
[0] https://developer.openstack.org/api-ref/compute/#update-forced-down
Change-Id: I641218e104bba55e3679a7111e7f3d042ad7665b
Change the default value for ip_version from '4' to the real ip version
of subnet_cidr.
Change-Id: Iaca1bb541a34af862b938e17e4a56d53de7a9cc6
Closes-Bug: 1702222
Update volume backup is a new api implemented in volume v3 (since 3.9).
This patch is to add test case for this new feature.
Including:
[1] Add v3 backups_client as a library
[2] Add update backup api to v3 backups_client
[3] Add unit tests for update backup api
[4] Add test case: test_update_backup
[5] Add release note
Change-Id: Id50fcdbc41e9e170f3d467789f80c28bac01d434
This patch adds test for the missing API (volume v2):
show specific metadata item for a snapshot.
Including:
[1] Add show snapshot metadata item API to v2 snapshots_client
[2] Add unit test for the API
[3] Modify test case: test_update_snapshot_metadata_item
[4] Add release note
According defcore(interop) patch is:
I672bbcb9983e7a3ace7769722d6ff97f7bc0ccc8
Change-Id: I3697406e5541bbdb191e4d6e63831be31b471e78
This commit fixes a doc typo of check_service_client_function to_utf
parameter in lib.tests.services.base.BaseServiceTest class. This
parameter is used for a response body not for a request body.
Change-Id: Ife265758916c4272558b9d7b6652111053bca9bb
This patch adds test for the missing API (volume v2):
show specific metadata item for a volume.
Including:
[1] Add show volume metadata item API to v2 volumes_client
[2] Add unit test for the API
[3] Modify test case: test_update_volume_metadata_item
[4] Add release note
According defcore(interop) patch is:
Ica8b57f5f5392e2bf47e368e9b10ef9fa5695c30
Change-Id: Idb9d198383ce93453707f1204806e4ae82c1e46a
Now exists multiple inheritance when adding new interfaces in
volume v3 clients, e.g., if we want to add show_volume_summary
in volume v3 VolumesClient, we have to make volume.v3.VolumesClient
inherit from both volume.v3.base_client.BaseClient and volume.v2.
volumes_client.VolumesClient, and this situation will repeat
everytime we add new interfaces in volume v3 clients based on v2
clients.
This is to move volume.v3.base_client to volume, and if we want to
add new interfaces based on a v2 client, we can make that v2 client
inherit from volume.base_client.BaseClient to get microversion support,
and then to make the new v3 client inherit from the v2 client, thus
to avoid the multiple inheritance.
Change-Id: I645ae35daebd924c4c4523163e5419cc050bb0ed
This patch adds support for booting a server from an
encrypted volume while using luks encryption method.
Note: manager.create_server method passes wait_until='ACTIVE',
so 'create_test_server' function in common/compute.py waits
until the server status is 'ACTIVE'.
Change-Id: Ibd05252976499daaaafc658e3f3a920398b53420
This commit fixes the import error "No module named six.moves" without
using the module for the plugin sanity job. Because the job call the
script directly.
Change-Id: Id0fa1b15fe443d65a1b6ca008e490d0fa54d6b32
The new Cinder attach API treats attaching to a shelved instance
differently than the old code. In the old case we fake things a
bit and mark the volume as attached, even though it's really not,
it's actually just reserved and there's no valid connector
or connection associated with it.
In the new (Cinder V3.27) Attach API's we instead give a more
accurate response, create an attachment record and mark the
volume as 'reserved' until the Instance is unhselved at which
time we complete the connection and move the volume to 'in-use'.
This patch modifes the volume_status waiter slightly so that it
can accept multiple statuses to consider "ok". We also modify the
test_attach_volume_shelved_or_offload_server and
test_detach_volume_shelved_or_offload_server tests to specify that
either 'in-use' or 'reserved' are acceptable responses. This way
we're still compatable with older combinatons of nova/cinder and
we also work with the new combination as well.
Change-Id: Ia84f4325ddb0080521241ace26f89d1161db9dca