Comment 2 for bug 1820616

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ospurge (master)

Reviewed: https://review.opendev.org/644165
Committed: https://git.openstack.org/cgit/x/ospurge/commit/?id=79ecb6f53c157b651d13cd97d5dfdb7b8437042b
Submitter: Zuul
Branch: master

commit 79ecb6f53c157b651d13cd97d5dfdb7b8437042b
Author: Yves-Gwenael Bourhis <email address hidden>
Date: Fri Mar 15 18:53:08 2019 +0100

    To get tenant, use openstacksdk instead of shade.

    Shade retrieves the list of all tenants and filters the result.
    This can be a huge issue on platforms with tons of tenants.

    OpenstackSDK's get_project method acts also like shade's get_project method,
    but OpenstackSDK's identity manager just recovers the desired tenant, so we
    use this.

    Also we pass the OpenStackConfig instance to shade or openstacksdk
    because if we don't, they re-instantiate one uselessly.

    Closes-Bug: #1820616

    Change-Id: I737b031fa9f2e4394d58ac204bf28b422cec1c28