Project

General

Profile

Actions

Feature #21301

closed

expose --sync-stats via admin api

Added by Nathan Johnson over 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Target version:
% Done:

0%

Source:
Tags:
Backport:
luminous jewel
Reviewed:
Affected Versions:
Pull request ID:

Description

It would be useful to allow passing a "sync" path parameter along with the "stats" flag to the user info admin api call, to simulate the radosgw-admin cli call:

radosgw-admin user stats --uid=<uid> --sync-stats


Related issues 2 (0 open2 closed)

Copied to rgw - Backport #21655: luminous: expose --sync-stats via admin apiResolvedAbhishek LekshmananActions
Copied to rgw - Backport #22830: jewel: expose --sync-stats via admin apiResolvedShinobu KinjoActions
Actions #1

Updated by Yatin Kumbhare over 6 years ago

/admin/user?format=json&<uid>=%s&stats=true #without --sync-stats

Which adds "stats":{"num_kb":X,"num_kb_rounded":X,"num_objects":X} to user info.

adding --sync behaviour would make that api blocking call, since it would get actual usage stats.

Actions #2

Updated by Nathan Johnson over 6 years ago

Yatin Kumbhare wrote:

/admin/user?format=json&<uid>=%s&stats=true #without --sync-stats

Which adds "stats":{"num_kb":X,"num_kb_rounded":X,"num_objects":X} to user info.

adding --sync behaviour would make that api blocking call, since it would get actual usage stats.

That is true, it would be a blocking call.

Actions #3

Updated by Jos Collin over 6 years ago

  • Assignee set to Nathan Johnson
Actions #4

Updated by Jos Collin over 6 years ago

  • Status changed from New to Fix Under Review
Actions #5

Updated by Orit Wasserman over 6 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to luminous
Actions #6

Updated by Nathan Cutler over 6 years ago

  • Copied to Backport #21655: luminous: expose --sync-stats via admin api added
Actions #7

Updated by Nathan Cutler about 6 years ago

  • Backport changed from luminous to luminous jewel
Actions #8

Updated by Nathan Cutler about 6 years ago

  • Copied to Backport #22830: jewel: expose --sync-stats via admin api added
Actions #9

Updated by Nathan Cutler about 6 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF