Tempest errors when run without specifying a microversion
Environment
- Red Hat OpenStack Platform 17.1
Issue
- Tempest errors when run without specifying a microversion
- Multiple endpoints return Error 406
- Unable to use microversion below 2.1 or higher than 2.88
Resolution
Configure options in the tempest.conf configuration file to specify the target microversions.
$ cat /etc/tempest.con
[compute]
min_compute_nodes = 2
min_microversion = 2.1
max_microversion = 2.88 # Confirm this version is more than 2.1 less 2.88
Reference: Validating your cloud with the Red Hat OpenStack Platform Integration Test Suite
Root Cause
The version specification 'latest' for Tempest is not supported.
OpenStack 17.1 will result in an error for versions below 2.1 and above 2.88.
Diagnostic Steps
undercloud node: when executing tempest run
test scenario, the following log is emitted
2023-09-08 13:06:03,978 722996 INFO [tempest.lib.common.rest_client] Request (UnshelveToHostMultiNodesTest:test_unshelve_to_specific_host): 406 POST https://rhosp.example.com:13774/v2.1/servers 0.350s
2023-09-08 13:06:03,978 722996 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-OpenStack-Nova-API-Version': '2.91', 'X-Auth-Token': '<omitted>'}
Body: {"server": {"name": "tempest-UnshelveToHostMultiNodesTest-server-726683352", "imageRef": "ba4cf50f-f958-46d9-8b08-bb364f2b506b", "flavorRef": "3ee6f44e-972e-4ee2-89f4-5da42640be24", "networks": [{"uuid": "13311a47-555e-4006-8454-565c61396025"}]}}
Response - Headers: {'date': 'Fri, 08 Sep 2023 04:06:03 GMT', 'server': 'Apache', 'content-length': '123', 'openstack-api-version': 'compute 2.91', 'x-openstack-nova-api-version': '2.91', 'vary': 'OpenStack-API-Version,X-OpenStack-Nova-API-Version', 'x-openstack-request-id': 'req-662ab95e-e753-4ce7-b8e8-3efce6b25937', 'x-compute-request-id': 'req-662ab95e-e753-4ce7-b8e8-3efce6b25937', 'content-type': 'application/json; charset=UTF-8', 'connection': 'close', 'status': '406', 'content-location': 'https://rhosp.example.com:13774/v2.1/servers'}
Body: b'{"computeFault": {"code": 406, "message": "Version 2.91 is not supported by the API. Minimum is 2.1 and maximum is 2.88."}}'
NOTE: "DEBUG" portion is
controller node: /var/log/containers/nova/nova-api.log
output. Please refer to the following to enable debug logging.
Reference: Enable debugging of OpenStack services
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments