this fails when ironic API endpoint is not in the form
"host:port", but "host/vhost" instead
(as when ironic-api is deployed behind Apache),
since the 'vhost' gets swallowed by 'urljoin'.
This leads to a failure when using ironicclient with token and
endpoint passed in, otherwise a SessionClient is used that does
not have this problem.
Simply concat those url parts together (ensuring there is at least a
single '/' between them).
Reviewed: https:/ /review. openstack. org/509851 /git.openstack. org/cgit/ openstack/ python- ironicclient/ commit/ ?id=61c5eba5f2a 0e6fc642fee4735 1b92e17e03cbd6
Committed: https:/
Submitter: Jenkins
Branch: master
commit 61c5eba5f2a0e6f c642fee47351b92 e17e03cbd6
Author: Pavlo Shchelokovskyy <email address hidden>
Date: Thu Oct 5 16:48:45 2017 +0000
Do not use urljoin in base http client
this fails when ironic API endpoint is not in the form
"host:port", but "host/vhost" instead
(as when ironic-api is deployed behind Apache),
since the 'vhost' gets swallowed by 'urljoin'.
This leads to a failure when using ironicclient with token and
endpoint passed in, otherwise a SessionClient is used that does
not have this problem.
Simply concat those url parts together (ensuring there is at least a
single '/' between them).
Change-Id: I583e0f9bdc81a6 55861c6ff508782 173021428f0
Closes-Bug: #1721599