CLI: Long list of containers is 1+N
Bug #1207125 reported by
justinsb
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Doing a long list of containers (swift list --long) produces slow output. It does a HEAD query per bucket.
It should instead just do a JSON list of buckets and output the results without a query-per-bucket.
To post a comment you must log in.
Seems like it :
(two cont called foo and bar on this testvm)
stack@devstack:~$ swift --debug list --long 2>&1 |grep curl|grep -v keystonecl nt:REQ: curl -i http:// 127.0.0. 1:8080/ v1/AUTH_ 5d5facee92fd4d7 ca28c20ce330efb 5f?format= json -X GET -H "X-Auth-Token: cf42a4190e02419 4b7dc7538749f55 x0" nt:REQ: curl -i http:// 127.0.0. 1:8080/ v1/AUTH_ 5d5facee92fd4d7 ca28c20ce330efb 5f/bar -I -H "X-Auth-Token: cf42a4190e02419 4b7dc7538749f55 x0" nt:REQ: curl -i http:// 127.0.0. 1:8080/ v1/AUTH_ 5d5facee92fd4d7 ca28c20ce330efb 5f/foo -I -H "X-Auth-Token: cf42a4190e02419 4b7dc7538749f55 x0" nt:REQ: curl -i http:// 127.0.0. 1:8080/ v1/AUTH_ 5d5facee92fd4d7 ca28c20ce330efb 5f?format= json&marker= foo -X GET -H "X-Auth-Token: cf42a4190e02419 4b7dc7538749f55 x0"
DEBUG:swiftclie
DEBUG:swiftclie
DEBUG:swiftclie
DEBUG:swiftclie