Backport #18833
Updated by Nathan Cutler about 7 years ago
https://github.com/ceph/ceph/pull/13276 <pre> $ bin/radosgw-admin user stats --uid 2987047fc47840058e89e6182e0d96c3\$2987047fc47840058e89e6182e0d96c3 --sync-stats --debug_rgw=20 ... 2016-12-29 12:59:39.151531 7f0ddb211880 20 reading from default.rgw.data.root:.bucket.meta.cont:67f817f4-9e09-4a2c-9caf-2fdc0eaccbd1.4109.1 2016-12-29 12:59:39.151572 7f0ddb211880 20 get_system_obj_state: rctx=0x7ffdee5d91e0 obj=default.rgw.data.root:.bucket.meta.cont:67f817f4-9e09-4a2c-9caf-2fdc0eaccbd1.4109.1 state=0x7f0de439b0f8 s->prefetch_data=0 2016-12-29 12:59:39.151593 7f0ddb211880 10 cache get: name=default.rgw.data.root+.bucket.meta.cont:67f817f4-9e09-4a2c-9caf-2fdc0eaccbd1.4109.1 : miss 2016-12-29 12:59:39.152968 7f0ddb211880 10 cache put: name=default.rgw.data.root+.bucket.meta.cont:67f817f4-9e09-4a2c-9caf-2fdc0eaccbd1.4109.1 info.flags=0x0 2016-12-29 12:59:39.153054 7f0ddb211880 10 adding default.rgw.data.root+.bucket.meta.cont:67f817f4-9e09-4a2c-9caf-2fdc0eaccbd1.4109.1 to cache LRU end 2016-12-29 12:59:39.153074 7f0ddb211880 20 rgw_get_system_obj() returned =-2 2016-12-29 12:59:39.153089 7f0ddb211880 20 get_bucket_instance_info() returned -2 2016-12-29 12:59:39.153111 7f0ddb211880 20 open_bucket_index() returned -2 2016-12-29 12:59:39.153133 7f0ddb211880 20 cls_bucket_header() returned -2 2016-12-29 12:59:39.153146 7f0ddb211880 0 ERROR: could not sync bucket stats: ret=-2 ERROR: failed to sync user stats: (2) No such file or directory </pre> This is because the name of the RADOS object containing requested bucket instance hasn't been prefixed with the tenant name. <pre> $ bin/rados ls -p default.rgw.data.root 2987047fc47840058e89e6182e0d96c3/cont .bucket.meta.2987047fc47840058e89e6182e0d96c3:cont:67f817f4-9e09-4a2c-9caf-2fdc0eaccbd1.4109.1 </pre> Other subsystems might be affected as well.