Skip to content

Commit

Permalink
rgw: add recovery procedure for upgrade to older version of jewel
Browse files Browse the repository at this point in the history
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
  • Loading branch information
oritwas committed Nov 8, 2016
1 parent 5354e7c commit d412c18
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions doc/radosgw/upgrade_to_jewel.rst
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.

0 comments on commit d412c18

Please sign in to comment.