This is to add response schema validation for volumes.
NOTE: upload_volume schema is under discussion, so will be merged
in a seperate patch.
https://bugs.launchpad.net/cinder/+bug/1880566
Change-Id: I0613c36e9cc512a1aba1f7952ffbc7447b05198b
partially-implements: blueprint volume-response-schema-validation
Description field is added to the response of list_flavors in
compute microversion 2.55, so we should add description to flavor_min_detail
when microversion is greater than 2.54.
Change-Id: I0f18994344f6a16f7e0942928093beda31dc9e0a
The test_create_second_image_when_first_image_is_being_saved
introduces race and might if the first image was created quickly.
Blacklisting this for now untli we decide what to do with this next.
Change-Id: I15df606fd163c75bf265d406771e4e946a1d38b9
Closes-Bug: #1881592
When Tempest is used in customer site, often we are required to
provide a testcase list including testcase names and descriptions.
Now no this kind of doc is available, so we can add descriptions
with the format of doc string for every testcase, so later we
can generata such a testcase description list.
There are hundreds of testcases missing descriptions, so we can
add them gradually, and limit the modified files in one patch
for the convenience of reviewing.
Change-Id: I3726f5df4afd23366a5a34de9c9da8b69287d30e
partially-implements: blueprint testcase-description
This is to add response schema validation for show_default_group_type.
Change-Id: Iaed564689588b1a4fe0a9118e9de330ec0a63e61
partially-implements: blueprint volume-response-schema-validation
This is to add response schema validation for volume groups.
Change-Id: Ibc4c59f63e56ec6ea6f9a850d2340d8c91775532
partially-implements: blueprint volume-response-schema-validation
This is to add response schema validation for volume group snapshots
Change-Id: I5708d4c41bc948178d4bfdc147216656875bbe15
partially-implements: blueprint volume-response-schema-validation
Closes-bug: 1879359
https://bugs.launchpad.net/tempest/+bug/1879359
Sorts the roles in the scoped tokens so that the
test case does not fail
Change-Id: Iac94eab78035a9b0f3926bd7da237ae4f5fb68d8
Add image "version" metadata to the snapshot image in
test_snapshot_pattern as shown in the related bug. Creating
another test just to update the metadata is not worth it.
Change-Id: I2f1093616dc7c4268a0bda5a4854da23423f4cab
Related-Bug: #1717547
When Tempest is used in customer site, often we are required to
provide a testcase list including testcase names and descriptions.
Now no this kind of doc is available, so we can add descriptions
with the format of doc string for every testcase, so later we
can generata such a testcase description list.
There are hundreds of testcases missing descriptions, so we can
add them gradually, and limit the modified files in one patch
for the convenience of reviewing.
Change-Id: I38e445ae3a2b4b3c1bd909becf17504b42636c82
partially-implements: blueprint testcase-description
This is to add response schema validation for volume snapshots.
Change-Id: I7de5569ed58fb6a3bf8115f89163cd951c19d951
partially-implements: blueprint volume-response-schema-validation
This is to add response schema validation for volume pools.
Besides, free_capacity and total_capacity in "List all back-end
storage pools" should be free_capacity_gb and total_capacity_gb,
Ic0690d12147fa63b903f3442eccde88c1d501711 will fix them.
Change-Id: I8ae2cd178b91756bb488c02a1a2fcdf64f572155
partially-implements: blueprint volume-response-schema-validation
This is to add response schema validation for volume group
types.
Change-Id: I81c6cfd854507cdd295c1356370d73c1a4f0712c
partially-implements: blueprint volume-response-schema-validation
This is to add response schema validation for encryption types.
Change-Id: Ic8e1dddd4a7e7bc57cc2959f1a7991dd4be22194
partially-implements: blueprint volume-response-schema-validation
Switch to openstackdocstheme 2.2.0 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* parallelizing building of documents
Update Sphinx version as well.
openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.
Set openstackdocs_pdf_link to link to PDF file.
Depends-On: https://review.opendev.org/728938
Change-Id: Ia31f69f00eb24771bf700b4e25ae73a09c1c8aed
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: If1de2f48da1fd6ed3f96c98b8dce9eace4f8095d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
The initial set of tests would incorrectly attempt to use a volume based
snapshot image as the rescue image. Such images contain no actual image
data and are just used to store metadata such as the
block_device_mapping that is in turn used when creating new instances
from the backing volume snapshots.
This wasn't initially noticed as the tests pass on the default file
based imagebackend in Nova that allows zero length sparse files to be
created. This failed however when the rbd imagebackend was used as the
import process into rbd does not accept zero sized files to be used.
To correct this an image based instance is now always created and used
to generate a suitable rescue image with each test. An additional
instance is then also created for the boot from volume based tests to
ensure the correct mapping is used.
The boot from volume snapshot test is also removed and the remaining
boot from volume tests are marked as slow given the additional overhead
of creating a second instance using these tests.
Change-Id: I7356b54bef0c614d9bfd1ed0d7b42574b58966f9
Closes-Bug: #1876330
This avoid neutron error that IP address x.x.x.x already
allocated in subnet as the public network from tempest.conf
is shared amongs multiple test cases which may ask for ip
address in parallel to this test case execution and might end
up in race condition.
Note:Interop/Any other user doesn't use this test location
so we should be good to move the location
Change-Id: Ibf5ad52062b3719899a123a799f5f4f8e961f609
Closes-bug: #1676207
Logs: https://bugs.launchpad.net/tempest/+bug/1676207/comments/13
Microversion 2.59 [1] compute API added a "uuid" parameter to the body of
the following migration responses:
- GET /os-migrations
- GET /servers/{server_id}/migrations/{migration_id}
- GET /servers/{server_id}/migrations
This commit adds the uuid to the response validation schema for
list_migrations.
[1] https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id55
Change-Id: Ic748f70d90446c79324df30147e4a270b72d710e
floating_ip variable contains an old state of the floating ip - the state
which was correct before calling refresh method. In order to have the
latest floating ip data after calling refresh, the patch creates a class
as a wrapper around the refreshing ip's state and logging it.
Closes-Bug: 1788416
Change-Id: I83ca08ef77c243762210837bad800ce0c4d09fb5
In "_hotplug_server", when the new interfaces is added to the server,
the function tries to configure the Neutron assigned IP address in
this new interface. Although the IP addresses are listed before to
check that the new port IP is not present, as reported in the bug,
sometimes the address is already set when the "ip a add" command is
executed.
Change-Id: I9594482735b482eb477f342dfd9f265a41eb002d
Closes-Bug: #1869899
hacking 3.0.1 fix the pinning of flake8 to avoid bringing in a new
version with new checks.
bumping the min version for hacking so that any older hacking versions
which auto adopt the new checks are not used.
The 2.6.0 version introduces some checks that cause failures
with the current code. hacking and flake8 cap could have solve
the pycodestyle compatible version but flake8-import-order which
does not cap the pycodestyle pulled its latest version and break
things.
Change-Id: I8996fec39e9b7c411b2708eb8baeb50aa2c28d42
test_server_rescue.py contains hard-coded volume_size value without
any option to override it. The tests should use CONF.volume.volume_size.
Closes-Bug: 1877259
Change-Id: Id502dfa06547023229ae2e6f9426eeb99da7dd89
* add additional handler so that INFO messages are printed to stdout
besided tempest.log
* replace print commands by LOG.info calls
* when --debug argument used print DEBUG messages to stdout
* add additional debug messages to improve transparency of the cleanup
execution
* use --debug argument within tempest-cleanup ansible role to see more
details directly in the output
Change-Id: Iee72dc411fdf5cda8a8eed8dd7f349e0866648ab