Add actions for translating between OSD ID and block device, listing OSD block devices, and getting health

Bug #1720099 reported by James Hebden
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ceph Monitor Charm
Fix Released
Wishlist
James Hebden

Bug Description

In order to encourage the use of Juju, rather than SSH'ing to hosts as root, it would be helpful to perform common Ceph operations via Juju actions directly.

I have prepared the following additional actions -
* list-host-osds - lists mounted OSDs for a given unit
* get-health - outputs ceph -s output
* disk-for-osd - returns the block device backing a given OSD
* osd-for-disk - returns the OSD ID (if any) for a given disk

Revision history for this message
James Page (james-page) wrote :

New feature so triaging as wishlist and assigning to James as he already has a review up:

https://review.openstack.org/#/c/498718/

Changed in charm-ceph:
status: New → Triaged
importance: Undecided → Wishlist
milestone: none → 18.02
assignee: nobody → James Hebden (jhebden)
status: Triaged → In Progress
Revision history for this message
James Page (james-page) wrote :

Please can we target these at the ceph-mon charm rather than ceph (which is deprecated and we'll have a migration story for 18.02 charm release).

affects: charm-ceph → charm-ceph-mon
Changed in charm-ceph-mon:
assignee: James Hebden (jhebden) → nobody
milestone: 18.02 → none
milestone: none → 18.02
assignee: nobody → James Hebden (jhebden)
Revision history for this message
James Hebden (ec0) wrote :

Sure thing - I'll be splitting the action out and targeting ceph-mon and ceph-osd individually.
Should I still make these changes for the ceph charm, or is the officially out of the picture?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ceph-mon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/525024

Ryan Beisner (1chb1n)
Changed in charm-ceph-mon:
milestone: 18.02 → 18.05
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph-mon (master)

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

commit 001ac4786fc7ac64e3e82c7f922f5b345cca5d55
Author: James Hebden <email address hidden>
Date: Mon Dec 4 12:48:41 2017 +1100

    Add get-health action to the Ceph mon charm

    * get-health - outputs `ceph health` output

    Including unit and functional tests for the above actions.

    Change-Id: Id4c0a89f2068a6f30025d4a165f84ad112b62cf7
    Closes-Bug: #1720099

Changed in charm-ceph-mon:
status: In Progress → Fix Committed
David Ames (thedac)
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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