SUSE / ses-upgrade-helper

GNU General Public License v2.0
2 stars 2 forks source link

upgrade-to-ses3: radosgw upgrade re-work #47

Closed ghost closed 8 years ago

ghost commented 8 years ago

Tested locally... will test a full upgrade scenario tomorrow morning.

Fixes: https://github.com/SUSE/ses-upgrade-helper/issues/44

ghost commented 8 years ago

First pass aims to better handle disabling radosgw services:

/etc/ceph/ceph.conf:
...
[client.radosgw.host-44-0-2-218]
host = host-44-0-2-218
keyring = /etc/ceph/ceph.client.radosgw.host-44-0-2-218.keyring
rgw_socket_path = /var/run/ceph-radosgw/ceph.client.radosgw.host-44-0-2-218.fastcgi.sock
admin_socket = /var/run/ceph-radosgw/ceph.client.radosgw.host-44-0-2-218.asok
#rgw_dns_name = host-44-0-2-218:7480
rgw_frontends = civetweb port=80
rgw_zone = us-east-1
#debug_rgw=20
#debug_ms=1

[client.radosgw.host-44-0-2-218a]

[client.radosgw.host-44-0-2-218b]
Disable SES2 RADOS Gateway services
===================================
Since the naming convention has changed, before upgrade we need to
temporarily disable the RGW services. They will be re-enabled after
the upgrade. It is safe to answer Y here even if there are no RADOS
Gateway instances configured on this node.

The following enabled RADOSGW instances have been selected for disablement on this node:
  host-44-0-2-218

[Run this operation? - Y[es]/N[o]/A[bort] (Y)]> 
/tmp/ceph_radosgw_disabled_services.out:
# Disabled RADOSGW instances:
host-44-0-2-218
ghost commented 8 years ago

Re-enabling services:

Success Case:

Re-enable RADOS Gateway services
================================
Now that the ceph packages have been upgraded, we re-enable the RGW
services using the SES3 naming convention. There is no danger in answering
Yes here. If there are no RADOS Gateway instances configured on this node,
the step will be skipped automatically.

The following RADOSGW instances have been disabled on this node and can now be properly re-enabled:
  host-44-0-2-218

[Run this operation? - Y[es]/N[o]/A[bort] (Y)]> 
ln -s '/usr/lib/systemd/system/ceph-radosgw@.service' '/etc/systemd/system/ceph-radosgw.target.wants/ceph-radosgw@radosgw.host-44-0-2-218.service'

Error Case:

Re-enable RADOS Gateway services
================================
Now that the ceph packages have been upgraded, we re-enable the RGW
services using the SES3 naming convention. There is no danger in answering
Yes here. If there are no RADOS Gateway instances configured on this node,
the step will be skipped automatically.

The following RADOSGW instances have been disabled on this node and can now be properly re-enabled:
  host-44-0-2-218

[Run this operation? - Y[es]/N[o]/A[bort] (Y)]> 
ghost commented 8 years ago

@smithfarm @theanalyst - Please have a look guys. Thanks!

ghost commented 8 years ago

@theanalyst and I tested this on a live cluster this evening. Upgraded the rgw node as expected.