Bug #16355
closedradosgw-admin command, adding the tenants can not view the user usage
0%
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"
}
Updated by Gaudenz Steinlin over 7 years 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.
Updated by Orit Wasserman about 7 years ago
Updated by Yehuda Sadeh almost 7 years ago
- Status changed from New to In Progress
- Assignee set to Radoslaw Zarzynski
Updated by Orit Wasserman almost 7 years ago
The proposed pr breaks backward compatibility, no other solution at the moment
Updated by Radoslaw Zarzynski almost 7 years ago
- Related to Bug #17215: Unable to suspend a user that is part of a tenant added
Updated by Radoslaw Zarzynski almost 7 years ago
- Status changed from In Progress to Resolved
Resolved in https://github.com/ceph/ceph/pull/13220 (already merged).