Bug 1906246 - health changes to warning when an rbd is removed from the cluster
Summary: health changes to warning when an rbd is removed from the cluster
Keywords:
Status: NEW
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD-Mirror
Version: 4.2
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
: 7.0
Assignee: Ilya Dryomov
QA Contact: Preethi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-10 02:01 UTC by Paul Cuzner
Modified: 2023-07-31 21:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 48523 0 None None None 2020-12-10 02:24:21 UTC

Description Paul Cuzner 2020-12-10 02:01:51 UTC
Description of problem:
When an rbd image is removed from a pool where snapshot based rbd-mirror is defined, there is a period of time where the secondary and the primary clusters both report a health of warning.

In itself this is a blip, that soon rectifies itself but presents a problem for
1. bulk rbd removal
2. in the kubernetes use case, the removal of a PV that was replication would result in a potential alert
3. any alerting that you would want to trigger based on replication health - would trigger unexpectedly

Version-Release number of selected component (if applicable):
rhcs5
ceph-16 (pacific)

How reproducible:
100%


Steps to Reproduce:
1. Establish rbd mirror between two clusters
2. create 50 rbd images and enable them for replication
3. remove 10 images, and observe the state of the relationship with rbd mirror pool status on both sides
(rbd -p <pool> mirror pool status --format json)

Actual results:
health (and image_health)goes into a warning state

Expected results:
the rbd rm command should not trigger a health status change. The removal has been requested, so the overall state should remain healthy.

alternatively, block the rbd rm command if the image is in a replicated state.

Additional info:
This issue has already been discussed with JasonD.


Note You need to log in before you can comment on or make changes to this bug.