modernise radosgw systemd usage

Bug #1808140 reported by James Page
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph Monitor Charm
Fix Released
Medium
James Page
Ceph RADOS Gateway Charm
Fix Released
Medium
James Page

Bug Description

Currently all ceph-radosgw unit use a common cephx key (radosgw.gateway).

Ideally each unit would have its own postfixed key (radosgw.`hostname`) which would allow switching the charms to use the newer ceph-radosgw@`hostname` systemd units rather than the older style init.d compat script radosgw.

This will require changes to the ceph-radosgw <-> ceph-mon relation to support generation of keys for the radosgw with a specific hostname attached.

James Page (james-page)
Changed in charm-ceph-mon:
status: New → Triaged
Changed in charm-ceph-radosgw:
status: New → Triaged
Changed in charm-ceph-mon:
importance: Undecided → Medium
Changed in charm-ceph-radosgw:
importance: Undecided → Medium
Changed in charm-ceph-mon:
milestone: none → 19.04
Changed in charm-ceph-radosgw:
milestone: none → 19.04
James Page (james-page)
Changed in charm-ceph-mon:
status: Triaged → In Progress
Changed in charm-ceph-radosgw:
status: Triaged → In Progress
Changed in charm-ceph-mon:
assignee: nobody → James Page (james-page)
Changed in charm-ceph-radosgw:
assignee: nobody → James Page (james-page)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph-mon (master)

Reviewed: https://review.openstack.org/629147
Committed: https://git.openstack.org/cgit/openstack/charm-ceph-mon/commit/?id=d05704b05ffbfc32e6f4badc13aa5efa775019a8
Submitter: Zuul
Branch: master

commit d05704b05ffbfc32e6f4badc13aa5efa775019a8
Author: James Page <email address hidden>
Date: Tue Jan 8 10:02:04 2019 +0000

    Add support for RADOS gateway per unit cephx keys

    If ceph-radosgw units present a key_name attribute, then generate
    a cephx key using the key name and present back with the key_name
    as the prefix for the key.

    This switches radosgw units to having per-unit keys, rather than
    sharing a global key (required as part of the pre-work to support
    RADOS gateway federation).

    Change-Id: I289b75a2935184817b424c5eceead16235c3f53b
    Depends-On: I7ac4d23a91fa654b62afb62c389a8f9823ef2e05
    Closes-Bug: 1808140

Changed in charm-ceph-mon:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph-radosgw (master)

Reviewed: https://review.openstack.org/629119
Committed: https://git.openstack.org/cgit/openstack/charm-ceph-radosgw/commit/?id=2858f1b02d6e5216234ff16a3feba34dae337538
Submitter: Zuul
Branch: master

commit 2858f1b02d6e5216234ff16a3feba34dae337538
Author: James Page <email address hidden>
Date: Mon Jan 7 17:18:07 2019 +0000

    Switch to using systemd units for radosgw

    Switch to using systemd configurations to manage radosgw instances;
    the radosgw init script is obsolete and will be removed at some
    point in time, and the newer style of managing radosgw daemons is
    inline with current best-practice.

    This changeset also changes the way cephx keys are issues; before
    all rgw instances shared a key, now a key is issued per host.

    The key is named 'rgw.`hostname`' to identify the application
    and host using the key.

    Existing deployments using the radosgw init script will be switched
    to use the new systemd named units; this occurs once the new key
    for the unit has been presented by the ceph-mon cluster over the
    mon relation. A small period of outage will occur as the radosgw
    init based daemon is stopped and disabled prior to the start of
    the new systemd based radosgw unit.

    This commit also includes a resync for charmhelpers to pickup
    support for '@' in NRPE service check names.

    Change-Id: Ic0d634e619185931633712cb3e3685051a28749d
    Depends-On: I289b75a2935184817b424c5eceead16235c3f53b
    Closes-Bug: 1808140

Changed in charm-ceph-radosgw:
status: In Progress → Fix Committed
David Ames (thedac)
Changed in charm-ceph-radosgw:
status: Fix Committed → Fix Released
Changed in charm-ceph-mon:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.