There is no obvious way to use SwiftService with pre-authed token

Bug #1461194 reported by Clint Byrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
New
Undecided
Unassigned

Bug Description

In shade, we authenticate once, and then use the same token for multiple services. This is quite useful for something like the rackspace-style image upload, where we need to talk to glance and swift in rapid succession.

But since we need to do segmented uploads for larger images, we need SwiftService. However, it only allows passing in a rigid set of arguments for client.Connection, which dont' include preauthurl and preauthtoken.

Revision history for this message
Alistair Coles (alistair-coles) wrote :

IIRC Connection will respect a token passed via the auth_token key in os_options if preauthtoken is not set. Similarly for os_options['object_storage_url'].

Changed in python-swiftclient:
assignee: nobody → Clint Byrum (clint-fewbar)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-swiftclient (master)

Change abandoned by Clint 'SpamapS' Byrum (<email address hidden>) on branch: master
Review: https://review.openstack.org/187714
Reason: Seems one can get the connection in a less invasive way with os_options.

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Ok, lets call this a documentation bug. It would be better if os_options was a bit better documented. These are in fact mentioned, but very easy to miss unless you know they're there.

Changed in python-swiftclient:
status: In Progress → New
assignee: Clint Byrum (clint-fewbar) → nobody
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.