Project

General

Profile

Bug #16355

radosgw-admin command, adding the tenants can not view the user usage

Added by Jiang Yu about 1 year ago. Updated 3 days ago.

Status:
In Progress
Priority:
High
Target version:
-
Start date:
06/17/2016
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rgw
Release:
jewel
Needs Doc:
No

Description

root@B-80-11:~# radosgw-admin user stats --uid=yujiang --sync-stats
2016-06-17 09:31:59.434699 7f1f4d814900 0 RGWZoneParams::create(): error creating default zone params: (17) File exists {
"stats": {
"total_entries": 405,
"total_bytes": 953649650,
"total_bytes_rounded": 954064896
},
"last_stats_sync": "2016-06-17 01:31:59.466783Z",
"last_stats_update": "2016-06-17 01:31:59.465672Z"
}
root@B-80-11:~# radosgw-admin user stats --uid=yujiang7 --tenant=yujiang7 --sync-stats
2016-06-17 09:32:10.479446 7f4508a91900 0 RGWZoneParams::create(): error creating default zone params: (17) File exists
ERROR: failed to sync user stats: (2) No such file or directory
2016-06-17 09:32:10.497489 7f4508a91900 0 ERROR: could not sync bucket stats: ret=-2
root@B-80-11:~# radosgw-admin user stats --uid=yujiang7 --sync-stats
2016-06-17 09:33:50.278366 7f3880fd9900 0 RGWZoneParams::create(): error creating default zone params: (17) File exists {
"stats": {
"total_entries": 0,
"total_bytes": 0,
"total_bytes_rounded": 0
},
"last_stats_sync": "2016-06-17 01:33:50.297363Z",
"last_stats_update": "0.000000"
}

History

#1 Updated by Gaudenz Steinlin 7 months ago

I have the same error when trying to see user stats for a user which is not in the default tenant. Syncing stats throws an error. If the user is in the default empty tenant it works as it should.

The background stats upgrade seems to work. Eventually the stats for the user in the tenant are correct, but it's not possible to sync the stats for the user stats command.

This is on jewel version 10.2.3.

#3 Updated by Yehuda Sadeh 3 months ago

  • Priority changed from Normal to High

#4 Updated by Yehuda Sadeh 19 days ago

  • Status changed from New to In Progress
  • Assignee set to Radoslaw Zarzynski

#5 Updated by Orit Wasserman 3 days ago

The proposed pr breaks backward compatibility, no other solution at the moment

Also available in: Atom PDF