Support for multiple OSD relations with less than 3 units

Bug #1642487 reported by Ante Karamatić
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph Monitor Charm
Fix Released
High
Unassigned
ceph-mon (Juju Charms Collection)
Invalid
High
Unassigned

Bug Description

If one relates two applications over the 'osd' relation, where each relation has only two units, ceph-mon charm will consider ceph as incomplete to create pools.

This is because of related_osds() function, which iterates over all relations and counts number of units in each of them. However, it doesn't take into account their sum.

Revision history for this message
Ante Karamatić (ivoks) wrote :
description: updated
James Page (james-page)
Changed in ceph-mon (Juju Charms Collection):
importance: Undecided → High
status: New → Triaged
milestone: none → 17.01
Changed in ceph-mon (Juju Charms Collection):
status: Triaged → Fix Committed
status: Fix Committed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph-mon (master)

Reviewed: https://review.openstack.org/397831
Committed: https://git.openstack.org/cgit/openstack/charm-ceph-mon/commit/?id=ad8968b66b0854dc23bbc936e927a039b147bf27
Submitter: Jenkins
Branch: master

commit ad8968b66b0854dc23bbc936e927a039b147bf27
Author: Ante Karamatic <email address hidden>
Date: Tue Nov 15 17:50:17 2016 +0100

    Check cumulative number of units in all osd relations

    Instead of comparing minimal number of OSD units with number
    of units in each osd relation, we should check the total
    number of OSD units, supporting deployments whether OSD's
    reside in multiple instances of the ceph-osd application.

    Closes-Bug: 1642487
    Change-Id: Ie6c503b5a03a22367b27f1c851d29f947d193388

Changed in ceph-mon (Juju Charms Collection):
status: In Progress → Fix Committed
James Page (james-page)
Changed in charm-ceph-mon:
importance: Undecided → High
status: New → Fix Committed
Changed in ceph-mon (Juju Charms Collection):
status: Fix Committed → Invalid
James Page (james-page)
Changed in charm-ceph-mon:
milestone: none → 17.02
James Page (james-page)
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.