If "verify" parameter doesn't point to an existing file (certificate) then std.http action fails with this failure:
2017-09-12 02:40:58.713 18428 ERROR mistral.executors.default_executor File "/usr/lib/python2.7/site-packages/mistral/actions/std_actions.py", line 194, in run
2017-09-12 02:40:58.713 18428 ERROR mistral.executors.default_executor raise exc.ActionException("Failed to send HTTP request: %s" % e)
2017-09-12 02:40:58.713 18428 ERROR mistral.executors.default_executor ActionException: Failed to send HTTP request: __str__ returned non-string (type Error)
2017-09-12 02:40:58.713 18428 ERROR mistral.executors.default_executor
The error message is confusing.
We can check if the url parameter has https protocol then we could validate "verify" parameter value to prevent that (we also need to keep in mind that it can be just True/False). In case of regular http then we should skip validation.
Reviewed: https:/ /review. openstack. org/579777 /git.openstack. org/cgit/ openstack/ mistral/ commit/ ?id=5cfaa9ca067 79021b3d4ee6c94 358c1d1e3a9a08
Committed: https:/
Submitter: Zuul
Branch: master
commit 5cfaa9ca0677902 1b3d4ee6c94358c 1d1e3a9a08
Author: Yuval Adar <email address hidden>
Date: Tue Jul 3 09:38:30 2018 +0300
detect https and act accordingly
Use six for url parsing
Closes-Bug: 1717354 341e1488bebbdc1 75d86c27d54
Change-Id: Id6a08cf01f4bbc