Accessing Openstack using v3 API
Hi, I was trying to use the openstack environment using the v3 client API as mentioned in [2] documentation but ended up with an error as mentioned in [1]. I can access the same environment v3 API using curl. Am I missing something? [1] https://paste.opendev.org/show/810336/ [2] https://docs.openstack.org/python-keystoneclient/latest/using-api-v3.html Regards, Danishka
On 2021-11-02 19:13:37 +0530 (+0530), open infra wrote:
I was trying to use the openstack environment using the v3 client API as mentioned in [2] documentation but ended up with an error as mentioned in [1].
I can access the same environment v3 API using curl. Am I missing something? [...]
While I'm not sure what the cause of the HTTP Unauthorized exception might be (perhaps turning on debugging options might help narrow it down?), I suspect you may have an easier time developing against the unified OpenStackSDK rather than the individual per-service client libraries. For some simple examples of configuring and connecting, see the Getting Started chapter: https://docs.openstack.org/openstacksdk/xena/user/guides/intro.html Hope that helps! -- Jeremy Stanley
Thank you Jeremy! On Tue, Nov 2, 2021 at 7:42 PM Jeremy Stanley <fungi@yuggoth.org> wrote:
On 2021-11-02 19:13:37 +0530 (+0530), open infra wrote:
I was trying to use the openstack environment using the v3 client API as mentioned in [2] documentation but ended up with an error as mentioned in [1].
I can access the same environment v3 API using curl. Am I missing something? [...]
While I'm not sure what the cause of the HTTP Unauthorized exception might be (perhaps turning on debugging options might help narrow it down?), I suspect you may have an easier time developing against the unified OpenStackSDK rather than the individual per-service client libraries. For some simple examples of configuring and connecting, see the Getting Started chapter:
https://docs.openstack.org/openstacksdk/xena/user/guides/intro.html
Hope that helps! -- Jeremy Stanley
participants (2)
-
Jeremy Stanley
-
open infra