Flaky tempest test: mistral_tempest_tests.tests.api.v2.test_action_executions.ActionExecutionTestsV2

Bug #1812171 reported by Andras Kovi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Triaged
Medium
Unassigned

Bug Description

Test case: test_run_action_std_http_error

Log:

ft1.9: mistral_tempest_tests.tests.api.v2.test_action_executions.ActionExecutionTestsV2.test_run_action_std_http_error[id-befa9b1c-01a4-41bc-b060-88cb1b147dfb,sanity]_StringException: pythonlogging:'': {{{
2019-01-16 09:21:18,076 16413 INFO [tempest.lib.common.rest_client] Request (ActionExecutionTestsV2:setUp): 201 POST http://198.72.124.234:8989/v2/action_executions 0.030s
2019-01-16 09:21:18,076 16413 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'X-Auth-Token': '<omitted>', 'Content-Type': 'application/json'}
        Body: {"input": "{\"output\": \"Hello, Mistral!\"}", "name": "std.echo"}
    Response - Headers: {u'date': 'Wed, 16 Jan 2019 09:21:18 GMT', u'content-length': '356', u'content-type': 'application/json', 'content-location': 'http://198.72.124.234:8989/v2/action_executions', u'connection': 'close', u'server': 'Apache/2.4.29 (Ubuntu)', 'status': '201'}
        Body: {"state_info": null, "created_at": null, "accepted": null, "name": "std.echo", "tags": null, "workflow_name": null, "task_execution_id": null, "updated_at": null, "state": "SUCCESS", "workflow_namespace": null, "output": "{\"result\": \"Hello, Mistral!\"}", "input": "{\"output\": \"Hello, Mistral!\"}", "project_id": null, "id": null, "description": null}
2019-01-16 09:21:19,321 16413 INFO [tempest.lib.common.rest_client] Request (ActionExecutionTestsV2:test_run_action_std_http_error): 201 POST http://198.72.124.234:8989/v2/action_executions 1.245s
2019-01-16 09:21:19,322 16413 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'X-Auth-Token': '<omitted>', 'Content-Type': 'application/json'}
        Body: {"input": "{\"url\": \"http://www.google.ru/not-found-test\"}", "name": "std.http"}
    Response - Headers: {u'date': 'Wed, 16 Jan 2019 09:21:18 GMT', u'content-length': '850', u'content-type': 'application/json', 'content-location': 'http://198.72.124.234:8989/v2/action_executions', u'connection': 'close', u'server': 'Apache/2.4.29 (Ubuntu)', 'status': '201'}
        Body: {"state_info": null, "created_at": null, "accepted": null, "name": "std.http", "tags": null, "workflow_name": null, "task_execution_id": null, "updated_at": null, "state": "ERROR", "workflow_namespace": null, "output": "{\"result\": \"The action raised an exception [action_ex_id=None, action_cls='<class 'mistral.actions.action_factory.HTTPAction'>', attributes='{}', params='{u'url': u'http://www.google.ru/not-found-test'}']\\n Failed to send HTTP request: HTTPConnectionPool(host='www.google.ru', port=80): Max retries exceeded with url: /not-found-test (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbc7164ac10>: Failed to establish a new connection: [Errno -2] Name or service not known',))\"}", "input": "{\"url\": \"http://www.google.ru/not-found-test\"}", "project_id": null, "id": null, "description": null}
}}}

Traceback (most recent call last):
  File "/opt/stack/tempest/.tox/tempest/local/lib/python2.7/site-packages/mistral_tempest_tests/tests/api/v2/test_action_executions.py", line 155, in test_run_action_std_http_error
    self.assertEqual(404, output['result']['status'])
TypeError: string indices must be integers

Changed in mistral:
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.