]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
node-proxy: support more Location value formats 56252/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Fri, 15 Mar 2024 14:20:29 +0000 (14:20 +0000)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 18 Mar 2024 08:44:30 +0000 (08:44 +0000)
commitf48cb371fe8f59c474caf721252a6a20dffde33e
treec14fc2679532a4161e8e9f9ccc0f33ccceb0877f
parent495c62a92e17e9a73b9d3e9780dafa2f62cbc403
node-proxy: support more Location value formats

After some tests, it turns out that depending on the hardware,
the header 'Location' which is returned by the server after logged can be different.
I could notice the following:

either:

Location: scheme://address:port/redfish/v1/SessionService/Session

or

Location: /redfish/v1/SessionService/Session

a previous tracker [1] was opened because I thought only the first one existed, which is wrong.

Fixes: https://tracker.ceph.com/issues/64951
[1] https://tracker.ceph.com/issues/64894

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit d7ccf26983c41344a12f33b2a30fc79b65cc548f)
src/ceph-node-proxy/ceph_node_proxy/redfish_client.py