swift command mis-reports download bandwidth

Bug #1197443 reported by Jola Mirecka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
Fix Released
Undecided
Jola Mirecka

Bug Description

We noticed a difference in download bandwidth while using authentication details and pre-auth information for download.

 - download using pre-auth details:

$ swift --os-auth-token 123456 --os-storage-url storage-url download swift-client-testing object
object [headers 0.020s, total 0.020s, 0.512s MB/s]

 - download using authentication details:

$ swift -A auth_url -U 123456:user -K **** download swift-client-testing object
object [headers 0.060s, total 0.060s, 0.171s MB/s]

Download using authentication details includes authentication time into the download bandwidth at each call of the function. This time should have been excluded from download bandwidth.

Changed in python-swiftclient:
assignee: nobody → Jola Mirecka (jola-mirecka)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-swiftclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/35503

Changed in python-swiftclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-swiftclient (master)

Reviewed: https://review.openstack.org/35503
Committed: http://github.com/openstack/python-swiftclient/commit/9b7e24c4499c248995d09ea99b46d1678f7a3afb
Submitter: Jenkins
Branch: master

commit 9b7e24c4499c248995d09ea99b46d1678f7a3afb
Author: jola-mirecka <email address hidden>
Date: Wed Sep 4 19:32:09 2013 +0100

    Fix download bandwidth for swift command.

    We noticed a difference in download bandwidth while using
    authentication details and pre-auth information for download.
    Download using authentication details included authentication
    time into the download bandwidth at each call of the function.
    This time should have been excluded from download bandwidth.

    This patch set is adding a timer variable to the client library.
    That allows to accurately measure and store the time of each action.
    Then while printing the download bandwith in the swift command
    authentication time is excluded from bandwidth.

    Change-Id: I63df9023e169f637f120ae9e25dac9c90a4e75a0
    Fixes: bug #1197443

Changed in python-swiftclient:
status: In Progress → Fix Committed
Changed in python-swiftclient:
status: Fix Committed → Fix Released
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.