68 Commits

Author SHA1 Message Date
melanie witt
d8e4894956 Add compute response schema for microversion 2.96
Compute microversion 2.96 added the pinned_availability_zone field to
the GET /servers/detail and GET /servers/{server_id} responses.

https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#maximum-in-2024-1-caracal-and-2024-2-dalmatian

Change-Id: I7b1e32b7ac3622029336f1919fb5cc2731050a2d
2024-10-03 23:38:57 +00:00
Zuul
fd708dc272 Merge "Add compute response schema for microversion 2.75" 2022-03-09 13:44:19 +00:00
Zuul
5a7cc775a3 Merge "Add schema for compute 2.45 microversion" 2022-03-09 06:23:32 +00:00
Ghanshyam Mann
1a65c4f0b1 Add compute response schema for microversion 2.75
Compute microversion 2.75 made the rebuild and update server
response same as get servers
- https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id68

Partially Implements: blueprint fix-microversion-gap

Change-Id: I1728e5de0e815def0fe31c242203bd9f36dc41f4
2022-03-05 10:28:21 -06:00
Zuul
5549fd2a04 Merge "Fix compute quota classes schema for v2.50 and v2.57" 2022-03-04 09:17:34 +00:00
Ghanshyam Mann
3ee9f2167d Add schema for compute 2.45 microversion
Compute microversion 2.45 changed the response
of create image and create backup APIs.

create image schema already covered
- fec2c93cdc/tempest/lib/api_schema/response/compute/v2_45/images.py

This patch adds the schema for create backup API.

Partially Implements: blueprint fix-microversion-gap

Change-Id: Icfeec8957c58472e7f176680d48745b5c5350b55
2022-03-03 21:53:05 -06:00
Zuul
b87a29b689 Merge "Fix server group schema for compute microversion 2.64" 2022-03-03 22:59:29 +00:00
Zuul
268606a720 Merge "Add fields in hypervisor schema for 2.33 and 2.53" 2022-01-17 02:53:57 +00:00
Ghanshyam Mann
dc517e0a1c Fix compute quota classes schema for v2.50 and v2.57
For Compute microversion 2.50:
1. fixed_ips, floating_ips, security_group_rules and security_groups
    are removed from:
      * GET /os-quota-class-sets/{id}
      * PUT /os-quota-class-sets/{id}
2. server_groups and server_group_members are added to:
      * GET /os-quota-class-sets/{id}
      * PUT /os-quota-class-sets/{id}

For Compute microversion 2.57:
1. injected_file_content_bytes, injected_file_path_bytes, injected_files
    are removed from:
      * GET /os-quota-class-sets/{id}
      * PUT /os-quota-class-sets/{id}

Partially Implements: blueprint fix-microversion-gap

Co-authored-by: Ghanshyam Mann <gmann@ghanshyammann.com>

Change-Id: I2a9dcb20251d9682fbcafd706ac60325a60e35ef
2021-12-17 00:45:43 +00:00
zhufl
ed6d10235c Fix server group schema for compute microversion 2.64
For Compute microversion 2.64:
1. change policies to policy in:
   * GET /os-server-groups
   * POST /os-server-groups
   * GET /os-server-groups/{server_group_id}
2. add rules in:
   * GET /os-server-groups
   * POST /os-server-groups
   * GET /os-server-groups/{server_group_id}
3. remove metadata from:
   * GET /os-server-groups
   * POST /os-server-groups
   * GET /os-server-groups/{server_group_id}

The testcases of create_server_group should also be modified.

Co-authored-by: Ghanshyam Mann <gmann@ghanshyammann.com>

Change-Id: I8fc37415c968eb64380b8bd66b713aa6b733578f
2021-12-17 00:45:11 +00:00
zhufl
6bc98ccfaa Add fields in hypervisor schema for 2.33 and 2.53
1. For microversion 2.33
   hypervisor_links is added to the response body for the following APIs:
     - GET /os-hypervisors
     - GET /os-hypervisors/detail

2. For microversion 2.53
   servers is added to the response body for the following APIs:
     - GET /os-hypervisor
     - GET /os-hypervisors
     - GET /os-hypervisors/detail

This is to fix the hypervisor schema for microversion 2.33 and 2.53.

Partially Implements: blueprint fix-microversion-gap

Co-authored-by: Ghanshyam Mann <gmann@ghanshyammann.com>

Change-Id: Ifeb26a50b604d257e9ab00cceed7cd2f34621419
2021-12-17 00:45:04 +00:00
James Parker
ef0da21010 Add flavor extra spec validation tests
Tests cover the addition of flavor extra spec validation [1,2]. Test
validates the ability to create a flavor with extra specs using a custom
namespace. This change was introduced in 2.86 [3].

[1] https://blueprints.launchpad.net/nova/+spec/flavor-extra-spec-image-property-validation-extended
[2] https://review.opendev.org/c/openstack/nova-specs/+/682655/
[3] https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id79

Change-Id: I20267054af04da3753795f7008abcf1118a31bdd
2021-12-16 11:22:24 -05:00
Brian Rosmaita
cafd2d1656 Add tests for "new" Transfers API (mv 3.55)
Add a client and test class for Block Storage API v3.55

Change-Id: I4179799bc40a50bdbeecaee461d32e827269cc1f
2021-05-20 22:28:26 -04:00
zhufl
e9ed6092ec Add delete_on_termination for compute API v2.79 - os-volume_attachments
This adds delete_on_termination field for the compute API response schema
for the 2.79 microversion in the following APIs:

  - GET /servers/{server_id}/os-volume_attachments (list)
  - GET /servers/{server_id}/os-volume_attachments/{volume_id} (show)
  - POST /servers/{server_id}/os-volume_attachments (attach)

Change-Id: I7a9b22477b800c6d60acb67c27aff5dcb61d7875
2021-03-25 13:28:24 -05:00
Ghanshyam Mann
983e1ceb44 Update microversion doc for compute microversion 2.3
compute microversion 2.3 schema is already covered in
I2f36a51fa47b28df1afada5396dec3ce7dc43d78

This commit update the doc for the same.

Change-Id: I58160cc2bd42cabce1abc482dd769e2323c90026
2020-12-29 14:36:10 -06:00
Roman Dobosz
edda62ab35 Fix indentation for the example code in documentation.
Change-Id: I454c22aaf1ffa56c37c0105ab76aa70d28983f43
2020-12-07 10:18:42 +01:00
zhufl
fb1e4db2bf Fix incorrect compute api microversion history links
Some compute api microversion history links are incorrect, this
is to fix them.

Change-Id: Ied16a88afa2799d6b5b5cb858851ead44ce2e081
2020-10-29 14:34:13 +08:00
James Parker
4bbe5b58ec Add migration uuid API schema validation for 2.59
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
2020-05-14 10:21:26 -04:00
Lee Yarwood
803b4a7e83 compute: Add missing 2.73 response schema validation
Microversion v2.73 was introduced in Nova by I46edd595e7417c58410648
changing the request responses of ``GET servers/{server_id}``, ``GET
/servers/detail``, ``POST /servers/{server_id}/action``  where the
action is rebuild and ``PUT servers/{server_id}``.

Change-Id: I8c800f6e280ec6fdf204d344124d994a25d0af19
2020-04-12 11:15:09 +01:00
Matt Riedemann
0b14b1e0ff Add compute API response schema validation for 2.71
The 2.71 compute API includes the "server_groups" parameter
in the response to the following APIs:

- GET /servers/{server_id} (show)
- PUT /servers/{server_id} (update)
- POST /servers/{server_id}/action (rebuild)

This will be used in an upcoming change to test attaching
and detaching the root volume of a shelved offloaded instance.

Change-Id: I612a15c475404ded0af15b6241b9ac8ec9fb8e26
2019-05-21 12:34:51 +02:00
Matt Riedemann
b9b6e37a75 Add support for compute API v2.70 - os-volume_attachments
This adds the compute API response schema validation for the
2.70 microversion and the following APIs:

- GET /servers/{server_id}/os-volume_attachments (list)
- GET /servers/{server_id}/os-volume_attachments/{volume_id} (show)
- POST /servers/{server_id}/os-volume_attachments (attach)

This will be used in an upcoming change for testing root volume
attach/detach of a shelved offloaded server.

Since the response schema for these have not changed since 2.1 we
have to backfill all of the other servers API response schema
files going back to 2.1.

Change-Id: I2f36a51fa47b28df1afada5396dec3ce7dc43d78
2019-04-26 10:20:00 +02:00
Matt Riedemann
f786405da0 doc: fix compute API microversion list format
Change-Id: I5737b2c906b9e85e7cac3a3abd0746db608bc79d
2019-03-02 12:50:52 -05:00
Zuul
f7fe7ff723 Merge "Add server schema for microversion 2.8" 2018-08-22 05:46:49 +00:00
Zuul
114214cab6 Merge "Change schema hypervisor.cpu_info from string to object in 2.28" 2018-08-20 15:19:27 +00:00
Felipe Monteiro
00b3bd55d9 Add server schema for microversion 2.8
This commit adds servers schema for microversion 2.8 [0]:

Add ‘mks’ protocol and ‘webmks’ type for remote consoles.

The appropriate api_schema files are updated with the
2.8 microversion changes.

Note that no test is added to cover this new microversion
since it isn't possible to test mks protocol in Tempest
gates so as per REVIEWING documentation [1] we shouldn't
add such a test. So, we could only cover the vnc protocol
for 2.8 but this would also not be of much value since
the vnc value (instead of mks) would be returned by the
server.

[0] https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id7
[1] https://docs.openstack.org/tempest/latest/REVIEWING.html#ensuring-code-is-executed

partially-implements: blueprint full-schema-for-all-microversions
Change-Id: I5a6d2852db8e2a67013eee71a094e9b521a92524
2018-08-20 14:06:26 +00:00
zhufl
e142f54605 Change schema hypervisor.cpu_info from string to object in 2.28
This is to change schema hypervisor.cpu_info from string to object
in microversion 2.28.
https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id25

Change-Id: I36715c6b1751ceee304d18114b4473d60758a7ff
2018-08-17 10:44:53 +08:00
zhufl
4af2c82068 Fill aggregate schema for microversion 2.41
The ‘uuid’ attribute of an aggregate is returned from calls
to the /os-aggregates endpoint from microversion 2.41, so
this is to add 'uuid' in schema of aggregate.

https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id37

Change-Id: I90e53056ceae5ad6b6ea2995f3f8c6eceea4739a
partially-implements: blueprint full-schema-for-all-microversions
2018-08-09 13:57:42 +00:00
Zuul
365f701964 Merge "Modify limits fields according to microversion" 2018-07-30 16:44:02 +00:00
zhufl
8013413d8c Modify limits fields according to microversion
1. Some limits fields are removed from Microversion 2.35/2.38/2.56,
   so we should check limits fields according to microversion.
2. In test_max_metadata_exceed_limit, maxImageMeta is deprecated from
   Microversion 2.38, so maxServerMeta is used instead, btw, maxServerMeta
   seems to be more suitable for this testcase.
   Besides, test_max_metadata_exceed_limit is not used in interop, so we
   can safely change its name.

ref: https://developer.openstack.org/api-ref/compute/#show-rate-and-absolute-limits

Implements blueprint: clear-deprecated-api

Change-Id: I53e2ee82c9c52afb0a56526c655eb9b3b6b8f483
2018-07-30 11:01:26 +08:00
Felipe Monteiro
c0348ee84e Add update_service to compute services_client library
This patchset adds update_service to compute module's services_client
library. This API is introduced in microversion 2.53 and supersedes
the following APIs:

    * ``PUT /os-services/disable`` (``disable_service``)
    * ``PUT /os-services/disable-log-reason`` (``disable_log_reason``)
    * ``PUT /os-services/enable`` (``enable_service``)
    * ``PUT /os-services/force-down`` (``update_forced_down``)

Negative tests were added for all the APIs above. The negative
tests only test the microversion >= 2.53 case: the new
udpate_service API is called (also with bad parameters).

The v2_11 schema was updated to reference all the unchanged
APIs from v2_1 for the compute services api_schema. Also,
the v2_53 schema was introduced for the new update_service
API and it also references all the unchanged APIs from v2_1.

Finally, unit tests and releasenotes are included.

Change-Id: I5e7b81496cbb87cda81413124b5f82bd5356e666
2018-07-10 18:56:24 +01:00
Zuul
1718a0393f Merge "trivial: fix some incorrect compute microversion references" 2018-07-09 19:51:51 +00:00
ghanshyam
d201cd3977 Add compute microversion 2.61 schema in flavors_client
Compute microversion 2.61 adds 'extra_specs' in flavor APIs response
This commit fill the schema gap for that.

Change-Id: Id1f1e51fbae1cc3d0c9efdcd9009f384745915d6
2018-07-09 08:55:10 +00:00
Felipe Monteiro
dd09bd9590 trivial: fix some incorrect compute microversion references
This patchset fixes some incorrect compute microversion references.

2.54: should have id 49 (was 4)
2.55: should have id 50 (was 49)
2.57: should have id 52 (was 51)

Change-Id: I81d90637fe16e1d5de1e26f50a86f9ff83d355ca
2018-07-07 16:26:29 -04:00
Zuul
d09caf65b8 Merge "Add new schema for Nova microversion 2.63" 2018-06-18 08:05:30 +00:00
Jackie Truong
1fa4464404 Add new schema for Nova microversion 2.63
This microversion adds the trusted_image_certificates parameter to the
server rebuild, server create, server update, and servers details
responses.

Change-Id: I48f62d36a871a95601ebf277a2f39a41a873daa8
Implements blueprint: nova-validate-certificates
2018-06-14 16:23:23 -04:00
Zuul
575dc80cd9 Merge "Add compute microversion 2.57 schema in servers_client" 2018-06-05 02:07:15 +00:00
Ghanshyam
d539465e1d Add compute microversion 2.57 schema in servers_client
Compute microversion 2.57 adds 'user_data' in rebuild servers
APIs response.

This commit fill the schema gap for that.
Change-Id: I3472ea78f08b48a8c1bda23147275198a7cd3b0f
2018-05-22 14:55:15 +00:00
Artom Lifshitz
b6b2bba8ce Integration tests for tagged attach
This tests nova microversion 2.49, tagged attach of network interfaces
and block devices.

Change-Id: I50b9aa168629457ce8270e456161727bd7b91a86
Implements: blueprint virt-device-tagged-attach-detach
2018-05-20 18:56:55 +00:00
ghanshyam
85a4b0a314 Add compute microversion 2.54 schema in servers_client
Compute microversion 2.54 adds 'key_name' in rebuild servers
APIs response.
This commit fill the schema gap for that.

Change-Id: I6c46319a873a34d74e8ed1a32ffc0b32c4d04ab2
2018-05-17 17:04:13 +00:00
Zuul
e4f4d8bee1 Merge "Add 2.55 schema & update flavor API in flavors_client" 2018-05-16 05:35:28 +00:00
ghanshyam
a8ace72287 Fill update, rebuild, list API response schema for 2.47
Microversion 2.47 has changed the response of update
list, and rebuild API also but we did not updated corresponding
response schema.

Also this commits add single test which covers the schema change
of microversions 2.9, 2.19, 2.26 and 2.47.

-https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id42

Change-Id: I64cc37c78bcded9d4dd85b7003319a17f3ac2137
2018-05-01 11:34:13 -04:00
ghanshyam
52c5d28190 Add 2.55 schema & update flavor API in flavors_client
Compute microversion 2.55 adds 'description' in
flavor APIs response and new API to update the same.

This commit fill the schema gap for that and also
add new updte flavor API in flavors_client lib.

Change-Id: I91c049c3aa9dab5a272369edd18f2c5890d1e5b0
2018-04-24 06:53:10 +00:00
Matt Riedemann
81fa9b6aaa Add a few tests for cinder multiattach
This adds basic compute API tests for testing a multiattach volume in
Cinder being attached to multiple instances in Nova and then
detaching them.

This change depends on the nova series that adds the support to nova's
libvirt driver.

Devstack change I46b7eabf6a28f230666f6933a087f73cb4408348 is used to
enable this test when using the libvirt driver.

Depends-On: I02120ef8767c3f9c9497bff67101e57e204ed6f4
Depends-On: Iac67f112b0dc9353c6a66e6fbc81cc8324a2b37c

Part of nova blueprint multi-attach-volume

Change-Id: I80c20914c03d7371e798ca3567c37307a0d54aaa
2018-01-25 21:37:49 -05:00
zhufl
e72760fe3b Add some missing implemented microversion in doc
InstanceActionsV221TestJSON tests v2.21 and
LiveMigrationRemoteConsolesV26Test tests v2.6, so
this is to add v2.21 and v2.6 in microversion_testing doc.

Change-Id: I3a8d76e484e10a10a2a53f5a9b084123eeb7b0d3
2018-01-03 15:17:25 +08:00
jeremy.zhang
2abe00a486 Refactor volume groups and group snapshots tests
According to api microversion history of Cinder[1], min microversion for
volume groups (create/delete/update/list/show) is 3.13, min microversion
for group snapshots(create/delete/list/show) and create group from group
or group snapshot is 3.14.

While in GroupsTest in Tempest, the min microversion for volume groups is
set to 3.14. This patch aims to refactor the original GroupsTest to correct
the min microversion for volume groups, and also spilt it into two parts,
one for groups tests and the other for group snapshot tests, which will make
the code more clear and readable.

[1] https://docs.openstack.org/cinder/latest/contributor/api_microversion_history.html

Change-Id: Ic98e8892c4a44850d7a7afac9be1aa59ab38bb8c
2017-11-29 14:37:29 +00:00
Masayuki Igawa
b78b923e5a Fix indentation in docs
This commit fixes indentation in tempest docs. These indentations are
not necessary and it causes a weird html outputs.

Change-Id: I9c8714558a3327b7ad0b0ab0d3fdc7e770c3c75b
2017-11-20 07:39:09 +00:00
ghanshyam
dc6e2a889e Fill microversion doc for implemented volume tests
We have lot of volume microversion tests implemented
but microversion doc is out of date ti list all.

Adding below microversion in doc:
- 3.9 - I41d0c3f459c139a0e5e415c030cddbb1fe8beb46
- 3.11 - Ic409db6f1258befc6f1772ea19e7e634170269f8
- 3.12 - I9904bc53896e7d58a22aef11f6a3128147c0a373
- 3.14 - Id1779fe5dce50b062ca0ff841a7ede72cac9dd73
- 3.19 - I14f5b8fd0f386ea5f84cc3a2decede430a7e7893
- 3.20 - I41d0c3f459c139a0e5e415c030cddbb1fe8beb46

Change-Id: Ifbd4d00e5b75a0c099cac1d1f393490ee326a17f
2017-09-28 07:29:33 +00:00
ghanshyam
c9f271d5c0 Fix volume microversion link in doc
Current link is of ocata, we should have latest doc
link for better maintenance.

Change-Id: Ic8194bb1e4263324267852fccd4f9f9a029ce86a
2017-08-30 10:14:23 +03:00
shangxiaobj
20e512b553 Update and replace http with https for doc links in tempest
1) Update doc links according to OpenStack document migration
2) Use https instead of http for docs links

Change-Id: I56ee6a1aa8fd63c336849affb8d6aff5c9e66e9e
2017-08-14 00:12:40 -07:00
ghanshyam
850f14dbf9 Fix microversion doc for implemented microversion tests
compute microversion 2.52, and 2.53 are not implemented
in Tempest and should not be added in doc also.

Those were added in Icc43342e4b64f415593700cb5ab19156a5d2bc19

Change-Id: I8bdd32adcb2bb775099db3a8b8af3832a4025d96
2017-08-07 18:45:17 +00:00