Service catalog randomly returned endpoint if there were multiple choice.

Bug #1771240 reported by Yang Youseok
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
keystoneauth
Triaged
Low
Unassigned

Bug Description

in keystoneauth1/access/service_catalog.py

endpoint_data_for() function just returned first candidate of entry points by endpoint_data_list[0] when there were multiple choice for endpoints.

Since there is no guarantee for endpoint order, I found that if client API did not specify any scope like region, an endpoint returned is changed randomly.

imho, library code should provide precisely defined behavior, so that client can expect and maybe this case could raise mulitiple choice exception.

Thanks.

Yang Youseok (ileixe)
summary: - Service catalog randomly returned endpoints if there were multiple
+ Service catalog randomly returned endpoint if there were multiple
choice.
description: updated
Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

This is reasonable, but will likely need to be opt-in to conform to the keystoneauth strict contract for behavior.

Changed in keystoneauth:
status: New → Triaged
importance: Undecided → Low
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.