Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw: add recovery procedure for upgrade to older version of jewel #11827

Merged
merged 1 commit into from
Nov 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 upgrading to Jewel versions 10.2.0, 10.2.1, 10.2.2 and 10.2.3
=============

.. versionadded:: Jewel

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.

Mixed version of :term:`Ceph Object Gateway` is not supported

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:::

$ rados rmpool .rgw.root

$ radosgw-admin zonegroup 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 < default-zg.json

$ radosgw-admin zone set --rgw-zone=default --default < default-zone.json

$ radosgw-admin period update --commit

Start all :term:`Ceph Object Gateway` in the cluster.