]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | ================================================================= |
2 | RGW upgrading to Jewel versions 10.2.0, 10.2.1, 10.2.2 and 10.2.3 | |
3 | ================================================================= | |
4 | ||
5 | .. versionadded:: Jewel | |
6 | ||
7 | Upgrade of :term:`Ceph Object Gateway` to older versions of jewel (up to 10.2.3 included) caused issues. This document describes the needed recovery procedure. | |
8 | ||
9 | Mixed version of :term:`Ceph Object Gateway` is not supported | |
10 | ||
11 | Backup of old configuration | |
12 | =========================== | |
13 | rados mkpool .rgw.root.backup | |
14 | rados cppool .rgw.root .rgw.root.backup | |
15 | ||
16 | Non default setting for `rgw region root pool` | |
17 | ============================================== | |
18 | If an existing multisite configuration uses a non-default setting for | |
19 | `rgw region root pool`, the new pool settings `rgw zonegroup root pool`, | |
20 | `rgw period root pool` and `rgw realm root pool` should be set to match. | |
21 | ||
22 | Fix confgiuration after upgrade | |
23 | =============================== | |
24 | Stop all :term:`Ceph Object Gateway` running in the cluster. | |
25 | ||
26 | Run the following commands::: | |
27 | ||
28 | $ rados rmpool .rgw.root | |
29 | ||
30 | $ radosgw-admin zonegroup get --rgw-zonegroup=default | sed 's/"id":.*/"id": "default",/g' | sed 's/"master_zone.*/"master_zone":"default",/g' > default-zg.json | |
31 | ||
32 | $ raodsgw-admin zone get --zone-id=default > default-zone.json | |
33 | ||
34 | $ radosgw-admin realm create --rgw-realm=myrealm | |
35 | ||
36 | $ radosgw-admin zonegroup set --rgw-zonegroup=default --default < default-zg.json | |
37 | ||
38 | $ radosgw-admin zone set --rgw-zone=default --default < default-zone.json | |
39 | ||
40 | $ radosgw-admin period update --commit | |
41 | ||
42 | Start all :term:`Ceph Object Gateway` in the cluster. | |
43 |