OpenStack: Reuse an existing OpenStack client, don't make an auth req in every mcm method call #28
Labels
area/quality
Output qualification (tests, checks, scans, automation in general, etc.) related
effort/2d
Effort for issue is around 2 days
kind/enhancement
Enhancement, improvement, extension
lifecycle/rotten
Nobody worked on this for 12 months (final aging stage)
priority/4
Priority (lower number equals higher priority)
What would you like to be added:
Currently an authed OpenStack client is created for each OpenStack API call, this is not efficient. You can create an authed OpenStack client at startup and reuse it. For example you can take a look on how it is done in k8s openstack controller: https://github.com/kubernetes/cloud-provider-openstack/blob/8afa0f628e15a3016b2add62d53f96d4921a6a0a/pkg/cloudprovider/providers/openstack/openstack.go#L488..L554
Why is this needed:
This will reduce a load on keystone API and significantly lower an amount of API calls.
/cc @hardikdr @rfranzke @vpnachev
The text was updated successfully, but these errors were encountered: