list endpoints should return storage policy index

Bug #1331899 reported by clayg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Undecided
Unassigned

Bug Description

With storage policies in place object servers require the X-Backend-Storage-Policy-Index header to correctly operate on non-zero storage policy objects. The list endpoints middleware which exposes direct backend urls needs to be updated to include the storage policy index when returning the list of nodes.

I'm imaging a new endpoints v2 response that looks like:

    {
        "endpoints": [
            "http://127.0.0.1:6040/sdb4/645/AUTH_test/test/test",
            "http://127.0.0.1:6010/sdb1/645/AUTH_test/test/test",
            "http://127.0.0.1:6030/sdb3/645/AUTH_test/test/test"
        ],
        "storage_policy_index": "1"
    }

the trick is managing calls to /endpoints/ and directing them to /endpoints/v1 and /endpoints/v2

Revision history for this message
clayg (clay-gerrard) wrote :
Revision history for this message
clayg (clay-gerrard) wrote :
Revision history for this message
Bill Huber (wbhuber) wrote :

The fix is released in commit 216aaab6387cd4db63aeb51520e8c1b9c70e31a5

Changed in swift:
status: New → Fix Released
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.