Skip to content

OpenStack: Reuse an existing OpenStack client, don't make an auth req in every mcm method call #28

@kayrus

Description

@kayrus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/qualityOutput qualification (tests, checks, scans, automation in general, etc.) relatedeffort/2dEffort for issue is around 2 dayskind/enhancementEnhancement, improvement, extensionpriority/4Priority (lower number equals higher priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions