Bug 1235845 - rgw: usage reporting with civetweb doesn't reflect partial download
Summary: rgw: usage reporting with civetweb doesn't reflect partial download
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 1.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 1.3.1
Assignee: Yehuda Sadeh
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-25 21:41 UTC by Yehuda Sadeh
Modified: 2022-07-09 07:35 UTC (History)
11 users (show)

Fixed In Version: ceph-0.94.2-3.el7cp
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-23 20:21:39 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 11851 0 None None None Never
Red Hat Issue Tracker RHCEPH-3491 0 None None None 2022-02-21 18:36:30 UTC
Red Hat Product Errata RHSA-2015:2066 0 normal SHIPPED_LIVE Moderate: Red Hat Ceph Storage 1.3.1 security, bug fix, and enhancement update 2015-11-24 02:34:55 UTC
Red Hat Product Errata RHSA-2015:2512 0 normal SHIPPED_LIVE Moderate: Red Hat Ceph Storage 1.3.1 security, bug fix, and enhancement update 2016-02-03 03:15:52 UTC

Description Yehuda Sadeh 2015-06-25 21:41:22 UTC
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 17:50:56 UTC
need qa_ack

Comment 3 Ken Dreyer (Red Hat) 2015-07-15 01:36:18 UTC
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 12:33:02 UTC
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 20:21:39 UTC
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 21:53:26 UTC
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.