Add support for dynamic large objects in the python APIs

Bug #1479284 reported by Vincenzo Pii
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
python-swiftclient
New
Undecided
Unassigned

Bug Description

Dynamic Large Objects can be uploaded with the swift CLI, but there is no obvious python API exposed for this in the client module.

I would have expected to find a parameter to specify the segment size in the put_object method.

Some discussion happened on the OS mailing list: http://comments.gmane.org/gmane.comp.cloud.openstack.general/10924

Tags: dlo
Revision history for this message
xgiovio (xgiovio) wrote :

yes. same problem on my side

Revision history for this message
Tim Burke (1-tim-z) wrote :

The client module is designed as a low-level API; in particular, put_object is only designed to PUT a single object, while DLOs necessarily involve several objects. To create a DLO with the client module, you'll need to upload the segments individually, then upload a manifest (which is just a zero-byte object with a X-Object-Manifest header).

Of course, that's a tedious process. You can also use the SwiftService object in the service module, which provides a higher-level API and takes the expected segment_size option in its upload method.

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.