-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rgw: add recovery procedure for upgrade to older version of jewel
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
============= | ||
RGW upgrade procedure to older version of jewel | ||
============= | ||
|
||
.. versionadded:: Jewel | ||
|
||
Upgrade of :term:`Ceph Object Gateway` to older versions of jewel (up to 10.2.3) caused issues. This document describes the needed recovery procedure. | ||
|
||
Mixed version of :term:`Ceph Object Gateway` is supported only from 10.2.4 | ||
|
||
Backup of old configuration | ||
================ | ||
rados mkpool .rgw.root.backup | ||
rados cppool .rgw.root .rgw.root.backup | ||
|
||
Fix confgiuration after upgrade | ||
================ | ||
Stop all :term:`Ceph Object Gateway` running in the cluster. | ||
|
||
Run the following commands::: | ||
|
||
$ radosgw-admin zonnegroup get --rgw-zonegroup=default | sed 's/"id":.*/"id": "default",/g' | sed 's/"master_zone.*/"master_zone":"default",/g' > default-zg.json | ||
|
||
$ raodsgw-admin zone get --zone-id=default > default-zone.json | ||
|
||
$ radosgw-admin realm create --rgw-realm=myrealm | ||
|
||
$ radosgw-admin zonegroup set --rgw-zonegroup=default < default-zg.json | ||
|
||
$ radosgw-admin zone set --rgw-zone=default < default-zone.json | ||
|
||
$ radosgw-admin zonegroup default --rgw-zonegroup=default | ||
|
||
$ radosgw-adminzone default --rgw-zone=default | ||
|
||
Start all :term:`Ceph Object Gateway` in the cluster. | ||
|