test_get_service_by_service_and_host_name intermittently fails if it tries to use nova-conductor on a single node devstack
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
Medium
|
Matt Riedemann |
Bug Description
By default, devstack runs in superconductor mode, meaning there are 2 conductor services, one is in the cell0 database and one is in the cell1 database. These get reported with the same service binary "nova-conductor" and on the same host (since it's single node devstack). This can cause failures in this test:
http://
Which randomly picks a service from the list and then does a query by hostname and binary, and if it picks nova-conductor, it can fail because it's expecting one but there can be two conductors in this type of deployment.
This test probably shouldn't even exist in tempest since it can be tested in the nova tree (and probably already is) and it's not an interop guideline since it's an admin-only API by default.
Changed in tempest: | |
importance: | Undecided → Medium |
http:// logs.openstack. org/71/ 568271/ 2/check/ tempest- full-py3/ 7142c54/ testr_results. html.gz
ft1.2: tempest. api.compute. admin.test_ services. ServicesAdminTe stJSON. test_get_ service_ by_service_ and_host_ name[id- 39397f6f- 37b8-4234- 8671-281e44c740 25]testtools. testresult. real._StringExc eption: pythonlogging:'': {{{ lib.common. rest_client] Request (ServicesAdminT estJSON: test_get_ service_ by_service_ and_host_ name): 200 GET https:/ /10.208. 194.113/ compute/ v2.1/os- services 0.051s lib.common. rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'} location' : 'https:/ /10.208. 194.113/ compute/ v2.1/os- services', 'openstack- api-version' : 'compute 2.1', 'x-openstack- nova-api- version' : '2.1', 'vary': 'OpenStack- API-Version, X-OpenStack- Nova-API- Version' , 'connection': 'close', 'date': 'Thu, 17 May 2018 08:26:51 GMT', 'content-type': 'application/json', 'status': '200', 'x-openstack- request- id': 'req-328531e8- 4cee-4a2d- a8b0-5079f5337a 67', 'server': 'Apache/2.4.18 (Ubuntu)', 'content-length': '1050', 'x-compute- request- id': 'req-328531e8- 4cee-4a2d- a8b0-5079f5337a 67'} 17T08:26: 46.000000" , "binary": "nova-conductor", "zone": "internal", "state": "up", "id": 1, "status": "enabled", "disabled_reason": null, "host": "ubuntu- xenial- rax-iad- 0004065631" }, {"updated_at": "2018-05- 17T08:26: 51.000000" , "binary": "nova-compute", "zone": "nova", "state": "up", "id": 2, "status": "enabled", "disabled_reason": null, "host": "ubuntu- xenial- rax-iad- 0004065631" }, {"updated_at": "2018-05- 17T08:26: 51.000000" , "binary": "nova-scheduler", "zone": "internal", "state": "up", "id": 2, "status": "enabled", "disabled_reason": null, "host": "ubuntu- xenial- rax-iad- 0004065631" }, {"updated_at": "2018-05- 17T08:26: 42.000000" , "binary": "nova-consoleauth", "zone": "internal", "state": "up", "id": 5, "status": "enabled", "disabled_reason": null, "host": "ubuntu- xenial- rax-iad- 0004065631" }, {"updated_at": "2018-05- 17T08:26: 45.000000" , "binary": "nova-conductor", "zone": "internal", "state": "up", "id": 6, "status": "enabled", "disabled_reason": null, "host": "ubuntu- xenial- rax-iad- 0004065631" }]}' lib.common. rest_client] Request (ServicesAdminT estJSON: test_get_ service_ by_service_ and_host_ name): 200 GET https:/ /10.208. 194.113/ compute/ v2.1/os- services? binary= nova-conductor& host=ubuntu- xenial- rax-iad- 0004065631 0.088s lib.common. rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'} location' : 'https:/ /10.208. 194.113/ compute/ v2.1/os- services? binary= nova-conductor& host=ubuntu- xenial- rax-iad- 0004065631', 'openstack- api-version' : 'compute 2.1', 'x-openstack- nova-api- version' : '2.1', 'vary': 'OpenStack- API-Version, X-OpenStack- Nova-API- Version' , 'connection': 'close', 'date': 'Thu, 17 May 2018 08:26:51 GMT', 'content-type': ...
2018-05-17 08:26:51,821 28427 INFO [tempest.
2018-05-17 08:26:51,822 28427 DEBUG [tempest.
Body: None
Response - Headers: {'content-
Body: b'{"services": [{"updated_at": "2018-05-
2018-05-17 08:26:51,913 28427 INFO [tempest.
2018-05-17 08:26:51,913 28427 DEBUG [tempest.
Body: None
Response - Headers: {'content-