action "list-pools" add option to view more details

Bug #1920135 reported by Robert Gildein
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph Monitor Charm
Fix Released
Undecided
Robert Gildein
OpenStack Charm Guide
Fix Released
Undecided
Robert Gildein

Bug Description

The "list-pools" action should be able to display more details about pools.

This detailed output needs to contain the "size" and "min_size" parameters,
as these two pieces of information are needed to verify the number of replications
by the "juju-verify". See also [1].

---
[1]: https://bugs.launchpad.net/juju-verify/+bug/1917599

Revision history for this message
Robert Gildein (rgildein) wrote :

I suggest using the `ceph --id admin osd dump` to parse pools information from there.

Changed in charm-ceph-mon:
assignee: nobody → Robert Gildein (rgildein)
status: New → In Progress
Revision history for this message
Robert Gildein (rgildein) wrote :
Revision history for this message
Aurelien Lourot (aurelien-lourot) wrote :

Added `charm-guide` as affected project for extending the release notes.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-guide (master)
Changed in charm-guide:
status: New → In Progress
Revision history for this message
Robert Gildein (rgildein) wrote :
Changed in charm-guide:
assignee: nobody → Robert Gildein (rgildein)
Changed in charm-guide:
milestone: none → 21.10
Changed in charm-ceph-mon:
milestone: none → 21.10
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-guide (master)

Reviewed: https://review.opendev.org/c/openstack/charm-guide/+/808057
Committed: https://opendev.org/openstack/charm-guide/commit/809634aa90e88019107a88731e9311830729e4e0
Submitter: "Zuul (22348)"
Branch: master

commit 809634aa90e88019107a88731e9311830729e4e0
Author: Robert Gildein <email address hidden>
Date: Thu Sep 9 14:27:39 2021 +0200

    ceph-mon charm: new parameters for pool list action

    The ceph-mon charm has a new `format` parameter to provides a more details
    with options:

    * ``text`` - provides less information [default]
    * ``text-full`` - provides more information in json with idents
    * ``json`` - provides more information in json

    The default `text` provides the same output as previous version.

    Closes-Bug: #1920135
    Change-Id: I4205aca89649f8e7b7fb388da089993e8b970a94

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

Reviewed: https://review.opendev.org/c/openstack/charm-ceph-mon/+/781714
Committed: https://opendev.org/openstack/charm-ceph-mon/commit/185f1719d534550dac937f4755fea24a9432fe11
Submitter: "Zuul (22348)"
Branch: master

commit 185f1719d534550dac937f4755fea24a9432fe11
Author: Robert Gildein <email address hidden>
Date: Fri Mar 19 14:26:06 2021 +0100

    Add format option to "list-pools" action

    These changes provide more detailed outputs for the "list-pools" action.
    The default action output has not changed ("<pool_id> <pool_name>,
    <pool_id> <pool_name>, ..."), but when you pass the "format=json"
    parameter, it will provide a list of pools with details about each pool.

    The list of pools (with or without details) are parsed from
    `ceph osd dump`.

    Closes-Bug: #1920135
    Change-Id: I6e2b834628312ed458527420ca83052d29bd2b9a

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