Project

General

Profile

Actions

Bug #48208

open

rgw:usage:when trim usage by user,it is possible to trim other users’ usage.

Added by chengwu liang over 3 years ago. Updated over 3 years ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
rgw;usage trim
Backport:
octopus, nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

when trim usage by user,it is possible to trim other users’ usage.
Steps:
1、set rgw enable usage log = true and rgw usage max shards = 1 in ceph.conf and restart rgw daemon
2、create two users named testuser and testuser_ by radosgw-admin
3、create two different buckets by testuser and testuser_ respectively through s3cmd
4、trim testusers’ usage by radosgw-admin:radosgw-admin usage trim --uid=testuser
5、both users’ usage were trimmed


Files

operation.txt (2.76 KB) operation.txt chengwu liang, 11/12/2020 02:07 AM
Actions #1

Updated by chengwu liang over 3 years ago

chengwu liang wrote:

when trim usage by specifying user,it is possible to trim other users’ usage.
Steps:
1、set rgw enable usage log = true and rgw usage max shards = 1 in ceph.conf and restart rgw daemon
2、create two users named testuser and testuser_ by radosgw-admin
3、create two different buckets by testuser and testuser_ respectively through s3cmd
4、trim testusers’ usage by radosgw-admin:radosgw-admin usage trim --uid=testuser
5、both users’ usage were trimmed

Actions #2

Updated by Casey Bodley over 3 years ago

  • Project changed from Ceph to rgw
  • Category deleted (OSD)
Actions #3

Updated by Kefu Chai over 3 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to chengwu liang
  • Pull request ID set to 38035
Actions #4

Updated by Casey Bodley over 3 years ago

  • Pull request ID changed from 38035 to 38123
Actions

Also available in: Atom PDF