swift-cli : a filter option(region_name) not working as expected

Bug #1957933 reported by Youngsol Koh
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
In Progress
Undecided
Youngsol Koh
python-swiftclient
Fix Committed
Undecided
Youngsol Koh

Bug Description

swift --os-auth-url ${AUTH_URL}
      --auth-version 3
      --os-application-credential-id ${CLIENT_ID}
      --os-application-credential-secret ${CLIENT_SECRET}
      --os-region-name ${REGION}
      --os-auth-type v3applicationcredential auth

If you have multiple regions, the result of the cli is always pointing to last element in end-point list, regardless of the specified region(${REGION}). Thus, It will affect "download" command

swift version: python-swiftclient 3.13.0

Youngsol Koh (youngsol)
Changed in swift:
assignee: nobody → Youngsol Koh (youngsol)
description: updated
Revision history for this message
Youngsol Koh (youngsol) wrote :
Youngsol Koh (youngsol)
affects: swift → python-swiftclient
Youngsol Koh (youngsol)
Changed in python-swiftclient:
status: New → In Progress
Youngsol Koh (youngsol)
summary: - a filter option(region_name) in swift cli not working as expected
+ swift-cli : a filter option(region_name) not working as expected
Changed in swift:
assignee: nobody → Youngsol Koh (youngsol)
Youngsol Koh (youngsol)
description: updated
Revision history for this message
Youngsol Koh (youngsol) wrote :

Originated from this issue below.
https://bugs.launchpad.net/python-swiftclient/+bug/1506383

This problem is marked as commited but it is not working properly.

warnings.warn(
                'Providing attr without filter_value to get_urls() is '
                'deprecated as of the 1.7.0 release and may be removed in the '
                '2.0.0 release. Either both should be provided or neither '
                'should be provided.')

The commit forces put literal 'attr' to filter_kwarg though I think attr is attribute to filter.
Thus, literal 'attr' should be 'region_name' and corresponding filter value should be provided in the kwarg dict.

Youngsol Koh (youngsol)
Changed in swift:
status: New → In Progress
Revision history for this message
Youngsol Koh (youngsol) wrote :
Changed in python-swiftclient:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.