Back to bug 2178991

Who When What Removed Added
Red Hat One Jira (issues.redhat.com) 2023-03-16 11:56:57 UTC Link ID Red Hat Issue Tracker RHCEPH-6265
Vidushi Mishra 2023-03-16 12:12:39 UTC Comment 0 updated
Vidushi Mishra 2023-03-16 12:13:16 UTC Target Release 6.1z1 6.0
Vidushi Mishra 2023-03-16 12:14:39 UTC Comment 0 updated
Vidushi Mishra 2023-03-16 12:21:44 UTC Comment 0 updated
Vidushi Mishra 2023-03-16 12:22:00 UTC Comment 0 updated
Vidushi Mishra 2023-03-16 12:22:46 UTC Comment 0 updated
Vidushi Mishra 2023-03-16 12:23:12 UTC Comment 0 updated
Madhavi Kasturi 2023-03-16 13:00:03 UTC CC mkasturi
Doc Text Cause:

Consequence:

Fix:

Result:
Madhavi Kasturi 2023-03-16 13:00:54 UTC Blocks 2126050
Vidushi Mishra 2023-03-16 13:46:24 UTC Comment 0 updated
Vidushi Mishra 2023-03-16 14:17:34 UTC Version 5.3 6.0
Vidushi Mishra 2023-03-16 14:19:14 UTC Comment 0 updated
Akash Raj 2023-03-17 11:21:03 UTC CC akraj
Doc Text Cause:

Consequence:

Fix:

Result:
.Resharding a bucket removes the bucket's metadata

Resharding a bucket removes the bucket's metadata if the bucket was created with `bucket_index_max_shards` as `0`. You can recover the affected buckets by restoring the bucket index.

The recovery can be done in two ways:

By executing `radosgw-admin object reindex --bucket _BUCKET_NAME_ --object _OBJECT_NAME_` command.

By executing the script `rgw-restore-bucket-index [--proceed] _BUCKET_NAME_ [_DATA_POOL_NAME_]`. This script in turn invokes `radosgw-admin object reindex ...`.

Post performing the above steps, ensure to perform either a `radosgw-admin bucket list` or `radosgw-admin radoslist` command on the bucket for the bucket stats to correctly reflect the number of objects in the bucket.

[NOTE]
====
Prior to the execution of the script, perform 'microdnf install jq' inside the `cephadm` shell.

The tool does not work for versioned buckets.

----
[root@argo031 ~]# time rgw-restore-bucket-index --proceed serp-bu-ver-1 default.rgw.buckets.data


NOTICE: This tool is currently considered EXPERIMENTAL.
`marker` is e871fb65-b87f-4c16-a7c3-064b66feb1c4.25076.5.
`bucket_id` is e871fb65-b87f-4c16-a7c3-064b66feb1c4.25076.5.
Error: this bucket appears to be versioned, and this tool cannot work with versioned buckets.
----
The tool's scope is limited to a single site only and not on a multi-site. If you execute the `rgw-restore-bucket-index` tool at site-1, it does not recover objects on site-2 and vice versa. On a multi-site, the recovery tool and the object reindex command should be executed at both sites for a bucket.
====
Anjana Suparna Sriram 2023-03-20 05:47:46 UTC Target Release 6.0 6.0z1
CC asriram
Vidushi Mishra 2023-04-03 10:08:37 UTC Blocks 2183976
Veera Raghava Reddy 2023-05-03 19:17:59 UTC Target Release 6.0z1 6.1
CC vereddy
Akash Raj 2023-05-25 07:23:36 UTC Assignee ceph-docs akraj
Akash Raj 2023-05-26 05:52:12 UTC Flags needinfo?(rmandyam)
CC rmandyam
Docs Contact rmandyam
Status NEW POST
Ranjini M N 2023-05-26 07:16:20 UTC Flags needinfo?(rmandyam)
Akash Raj 2023-05-29 05:01:57 UTC CC aramteke
Flags needinfo?(aramteke)
Status POST ON_QA
Madhavi Kasturi 2023-05-29 05:37:15 UTC QA Contact aramteke vimishra
Vidushi Mishra 2023-05-30 15:57:56 UTC Status ON_QA VERIFIED
Aditya Ramteke 2023-05-31 04:02:35 UTC Flags needinfo?(aramteke)
Akash Raj 2023-06-08 06:39:21 UTC Status VERIFIED RELEASE_PENDING
Ranjini M N 2023-06-21 06:59:51 UTC Status RELEASE_PENDING CLOSED
Resolution --- CURRENTRELEASE
Last Closed 2023-06-21 06:59:51 UTC

Back to bug 2178991