Description of problem: Walmart has requested the ability to view whats inside rgw cache and used cache by utilizing the radosgw-admin tool. Version-Release number of selected component (if applicable): RHCS 2.4
I think this would be a much more natural fit for something like the admin-socket than for radosgw-admin, since we're poking at, introspecting, and flushing an individual process.
Do they have specifics about what they want to see exactly? I can quite easily come up with a way to just walk the cache and print the objects in it and any data chained to them. It'd probably be large. (Also radosgw-admin isn't a good choice, since cache is per-RGW server. The most obvious and Ceph Idiomatic way to do this is the admin hook.)
@vidushi There is no reproducer, it's a feature request. You could test it by making a request and then inspecting the objects in cache to make sure they are what they should be.
No. radosgw-admin manipulates RGW data and metadata in RADOS. Since the cache exists per-process, these commands are on the admin socket accessible with the ceph daemon command. e.g. ./bin/ceph --admin-daemon=/path/to/socket.asok cache list
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:2819