swift_store_endpoint doesn't override keystone catalog

Bug #1885651 reported by Chris Stone
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
glance_store
Fix Released
Undecided
Alexandre arents
Victoria
Fix Released
Undecided
Alexandre arents
Wallaby
New
Undecided
Unassigned

Bug Description

Setting swift_store_endpoint in [glance_store] does not have the expected results of overriding the storage URL returned by the keystone catalog (at least not in single tenant config.) Regardless of whether this value is set, it looks like the storage URL is actually being retrieved in https://github.com/openstack/glance_store/blob/master/glance_store/_drivers/swift/connection_manager.py#L142 where it doesn't consider swift_store_endpoint. It seems like there should be a check here for self.store.conf_endpoint and if that's set, return that instead.

This was tested on Rocky but looks like it would still be an issue on master.

Revision history for this message
Chris Stone (cstone-0) wrote :

It looks like this is limited to Keystone v3.

Changed in glance-store:
assignee: nobody → Alexandre arents (aarents)
Revision history for this message
Alexandre arents (aarents) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance_store (master)

Reviewed: https://review.opendev.org/c/openstack/glance_store/+/776611
Committed: https://opendev.org/openstack/glance_store/commit/16924dbe51c8e3d26c9dda49d6007b73a9869337
Submitter: "Zuul (22348)"
Branch: master

commit 16924dbe51c8e3d26c9dda49d6007b73a9869337
Author: Alexandre Arents <email address hidden>
Date: Fri Feb 19 09:52:00 2021 +0000

    swift: Take into account swift_store_endpoint

    In SingleTenant authv3 context, connection manager does not evaluate
    swift_store_endpoint and always takes endpoint from catalog.

    The change ensures CONF.glance_store.swift_store_endpoint
    will take over catalog value also in that case.

    Closes-Bug: #1885651
    Change-Id: Ib18ff19cd539e0117909f849672036b8c9e5f049

Changed in glance-store:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/glance_store 2.7.0

This issue was fixed in the openstack/glance_store 2.7.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on glance_store (master)

Change abandoned by "Cyril Roelandt <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/glance_store/+/738704
Reason: Already fixed with https://review.opendev.org/c/openstack/glance_store/+/776611

Revision history for this message
Diane Chase (dianechase) wrote :

Please see my client's website, where I am also experiencing the same type of problem: https://www.apkgenre.com/ace-fishing-mod-apk/

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.