ceilometermiddleware meters client HEAD requests that are made as part of swift upload but fails to meter HEAD/GET as part of swift stat or swift list

Bug #1488682 reported by Rohit Jaiswal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ceilometermiddleware
Fix Released
Undecided
Rohit Jaiswal

Bug Description

When using swiftclient to upload an object to container - swift upload command, the swiftclient makes multiple requests to the swift proxy server. It issues a PUT, HEAD and POST. The HEAD is to check whether the object being uploaded already exists in the container or not. This HEAD is being metered.

When using a command like swift stat or swift list, the swiftclient issues HEAD/GET commands at an account level, but those are not being metered.

Changed in ceilometermiddleware:
assignee: nobody → Rohit Jaiswal (rohit-jaiswal-3)
summary: ceilometermiddleware meters client HEAD requests that are made as part
- of swift upload but fails to meter HEAD as part of swift stat or swift
- list
+ of swift upload but fails to meter HEAD/GET as part of swift stat or
+ swift list
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometermiddleware (master)

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

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

Reviewed: https://review.openstack.org/217309
Committed: https://git.openstack.org/cgit/openstack/ceilometermiddleware/commit/?id=41e869a311e39f25044f4200c15501c17fe4a05e
Submitter: Jenkins
Branch: master

commit 41e869a311e39f25044f4200c15501c17fe4a05e
Author: Rohit Jaiswal <email address hidden>
Date: Wed Aug 26 17:06:12 2015 +0000

    Fixes parsing req path for account HEAD/GET

    When path is of the form /v1/AUTH_xyz, the
    path parsing expects 3 tokens, this fix retries
    parsing to expect 2 tokens, so that operations at
    an account level can be metered.

    Change-Id: I5eb83e39e7902b9410487c98295f12640aeef140
    Closes-Bug: 1488682

Changed in ceilometermiddleware:
status: In Progress → Fix Committed
Changed in ceilometermiddleware:
milestone: none → 0.3.0
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/ceilometermiddleware 0.3.0

This issue was fixed in the openstack/ceilometermiddleware 0.3.0 release.

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.