Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1235845 - rgw: usage reporting with civetweb doesn't reflect partial download
rgw: usage reporting with civetweb doesn't reflect partial download
Status: CLOSED ERRATA
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: RGW (Show other bugs)
1.3.0
Unspecified Unspecified
unspecified Severity unspecified
: rc
: 1.3.1
Assigned To: Yehuda Sadeh
ceph-qe-bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-06-25 17:41 EDT by Yehuda Sadeh
Modified: 2017-07-30 11:45 EDT (History)
11 users (show)

See Also:
Fixed In Version: ceph-0.94.2-3.el7cp
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-23 15:21:39 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Ceph Project Bug Tracker 11851 None None None Never
Red Hat Product Errata RHSA-2015:2066 normal SHIPPED_LIVE Moderate: Red Hat Ceph Storage 1.3.1 security, bug fix, and enhancement update 2015-11-23 21:34:55 EST
Red Hat Product Errata RHSA-2015:2512 normal SHIPPED_LIVE Moderate: Red Hat Ceph Storage 1.3.1 security, bug fix, and enhancement update 2016-02-02 22:15:52 EST

  None (edit)
Description Yehuda Sadeh 2015-06-25 17:41:22 EDT
Description of problem:

When using civetweb, the usage logging is always reporting the full object size downloaded, even though the download was aborted in the middle.


Version-Release number of selected component (if applicable):


How reproducible:
always


Steps to Reproduce:
1. Configure rgw with civetweb
2. Turn on usage logging
3. Upload large object
4. Trim usage log
5. Start downloading object, abort after start
6. Wait for usage info to be flushed (30 seconds by default)
7. Inspect usage

Actual results:
Usage will show complete object size

Expected results:
Usage should only show partial object size


Additional info:
Comment 2 Yehuda Sadeh 2015-06-30 13:50:56 EDT
need qa_ack
Comment 3 Ken Dreyer (Red Hat) 2015-07-14 21:36:18 EDT
merged to master upstream, not yet backported to hammer (should be in v0.94.3 or v0.94.4)
Comment 6 shilpa 2015-10-22 08:33:02 EDT
Verified in ceph-0.94.3-1.el7cp.x86_64

Enabled usage log. Uploaded an object of ~147M. Trimmed the log and started the download. Aborted the download before it finished to get a partial object. 

Usage when object is uploaded:

 "total": {
                "bytes_sent": 153464191,
                "bytes_received": 0,
                "ops": 3,
                "successful_ops": 3
            }


After partial download:

 "total": {
                "bytes_sent": 95746687,
                "bytes_received": 0,
                "ops": 3,
                "successful_ops": 2
            }

Shows partial object size.
Comment 8 errata-xmlrpc 2015-11-23 15:21:39 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:2512
Comment 9 Siddharth Sharma 2015-11-23 16:53:26 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:2066

Note You need to log in before you can comment on or make changes to this bug.