Ask Your Question
0

How to enable swift bulk operation?I

asked 2015-01-13 00:02:59 -0500

xuanzai_21cn gravatar image

updated 2015-01-13 15:22:21 -0500

rbowen gravatar image

I installed the openstack keystone and swift with OpenStack Juno Installation Guide. But unfortunately, the bulk operation can't work. The request always return 403.

root@controller:~# curl -i -X DELETE  -H "X-Auth-Token: c59c078f66ba4202b9b6ab69b51090d5" http://controller:8080/v1/AUTH_4a3032d57c3c4e26aed38f060403ff39/?bulk-delete -H "Content-Type: text/plain"  -T to_delete
HTTP/1.1 403 Forbidden
Content-Length: 73
Content-Type: text/html; charset=UTF-8
X-Trans-Id: txbfda56fbdaad4348b58dd-0054b4a958
Date: Tue, 13 Jan 2015 05:12:56 GMT

I have configured proxy-server.conf like below , but still can't enable bulk operation feature.

[filter:bulk]
use = egg:swift#bulk
max_containers_per_extraction = 10000
max_failed_extractions = 1000
max_deletes_per_request = 10000
max_failed_deletes = 1000
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-13 23:00:50 -0500

zaitcev gravatar image

Use -X POST, not DELETE.

edit flag offensive delete link more

Comments

Don't work. Use POST, the objects will not be deleted~

xuanzai_21cn gravatar imagexuanzai_21cn ( 2015-01-14 00:32:48 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-01-12 23:59:56 -0500

Seen: 166 times

Last updated: Jan 13 '15