endpoint_url is missing as optional parameter in the rest client __init__

Bug #1224023 reported by Andrea Frittoli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Wishlist
Andrea Frittoli

Bug Description

Rest client and all tempest client classes inheriting from it define an endpoint_url variable which is specific to the client type.

There is an assumption behind this that a certain API shall always be accessed from that specific endpoint, or else that all extensions are available at all endpoints. Both assumptions are not correct.

Which endpoint to be used instead may depend on the kind of user being used by the test (e.g. regular, compute admin or admin), therefore Manager classes should be able to control which endpoint type to use.

This can be achieved by setting the endpoint_url as optional parameter in the rest_client and inheriting classes.

A practical example:
- show server with plain credential will use the public endpoint, and only present basic fields
- show server with admin credentials may use the admin endpoint, and take advantage of admin only extensions available on the admin endpoint to see the compute node on which the VM is hosted

Revision history for this message
Attila Fazekas (afazekas) wrote :

I even wouldn't mind if the rest_clients just got endpoint_url and token in the future.

Changed in tempest:
status: New → Confirmed
Changed in tempest:
importance: Undecided → Medium
Sean Dague (sdague)
Changed in tempest:
importance: Medium → Wishlist
Revision history for this message
Andrea Frittoli (andrea-frittoli) wrote :

The endpoint URL can be overwritten now in the clients when requesting a client from a ServiceClient instance, so this in a way is fixed.

Changed in tempest:
status: Confirmed → Fix Released
assignee: nobody → Andrea Frittoli (andrea-frittoli)
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.