Extra GET call while executing Swift List to obtain list of containers

Bug #1693738 reported by Prerna Dembla
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
New
Undecided
Unassigned

Bug Description

While executing "swift list" command to obtain list of containers, there are 2 GET calls from swift-proxy-server to swift-account server(can be seen in "var/log/swift/swift.log" file),

1)GET /v1/AUTH_<tenant_id>?format=json HTTP/1.1" 200 188

RESP BODY: [{"count": 1, "last_modified": "2017-03-28T05:39:08.876570", "bytes": 71220, "name": "container1"}, {"count": 1, "last_modified": "2017-03-28T06:10:53.634710", "bytes": 331, "name": "container2"}]

First call returns the list of containers from account server.

2)GET /v1/AUTH_<tenant_id>?format=json&marker=container HTTP/1.1" 200 2

RESP BODY: []

It seems second GET call is unnecessary as response body of second GET call is empty. Second GET call should be removed as list of container is already obtained by first GET call.

While, when "openstack container list" command is executed, then there is no such duplicate call.

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

This is a consequence of ensuring we have a full listing, even if the cluster has been configured with a very small container_listing_limit. While two results seems fairly likely to be *all* of the results, the only way to be sure is to issue another listing starting from the end of the last one.

affects: swift → python-swiftclient
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.