No status information reported when expected-osd-count is not met, causing ceph relations for keys/broker requests to be ignored

Bug #1807652 reported by Trent Lloyd
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph Monitor Charm
Fix Released
High
Trent Lloyd

Bug Description

If the expected-osd-count is not currently met, the ceph-mon charm intentionally ignores all client-relation-* hooks to provide keys and service broker requests to create pools, etc.

In this specific case, the situation occurred when the cluster was already in production (presumably the count had been met sometime in the past)

This situation is not very obvious, the only log information you see is:
2018-11-29 05:03:47 DEBUG juju-log client:388: insufficient osds bootstrapped

The charm should return this as status information in the juju status output so that it is more clear the ceph cluster is not 'ready' and that is the reason why relations are not being processed. It could possibly also log a non-DEBUG (e.g. INFO) level message each time the relations are skipped though a status check may suffice.

Tags: sts
Trent Lloyd (lathiat)
tags: added: sts
Changed in charm-ceph-mon:
status: New → Confirmed
status: Confirmed → Triaged
importance: Undecided → High
Revision history for this message
Trent Lloyd (lathiat) wrote :

Related bug, if you update the config, the relations are not reprocessed:
https://bugs.launchpad.net/charm-ceph-mon/+bug/1732491

Revision history for this message
Trent Lloyd (lathiat) wrote :
Changed in charm-ceph-mon:
assignee: nobody → Trent Lloyd (lathiat)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph-mon (master)

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

commit 1a250e81a5570bfbd7bae64f63a5d713e9238b20
Author: Trent Lloyd <email address hidden>
Date: Mon Dec 10 15:58:23 2018 +0800

    Set waiting status when number of OSDs has not yet reached expected-osd-count

    The charm does not process relation requests from clients when the
    number of OSDs has not yet reached the expected-osd-count.

    Make this situation clear to the user by setting the charm status to
    waiting with relevant information.

    Change-Id: I638547ca4a9f1bf48782c82aa0d92f89f6bfd13a
    Closes-Bug: 1807652

Changed in charm-ceph-mon:
status: In Progress → Fix Committed
James Page (james-page)
Changed in charm-ceph-mon:
milestone: none → 19.04
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.

Other bug subscribers

Remote bug watches

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