Bug 2214278 - [rbd-mirror] : primary- 'demoted ' snapshots piling up after consecutive planned failovers (relocation)
Summary: [rbd-mirror] : primary- 'demoted ' snapshots piling up after consecutive plan...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD-Mirror
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 6.1z2
Assignee: Ilya Dryomov
QA Contact: Sunil Angadi
Akash Raj
URL:
Whiteboard:
Depends On:
Blocks: 2235257
TreeView+ depends on / blocked
 
Reported: 2023-06-12 13:07 UTC by Vasishta
Modified: 2023-11-03 04:01 UTC (History)
8 users (show)

Fixed In Version: ceph-17.2.6-122.el9cp
Doc Type: Bug Fix
Doc Text:
.Demoted mirror snapshot is removed following the promotion of the image Previously, due to an implementation defect, the demoted mirror snapshots would not be removed following the promotion of the image, whether on the secondary image or on the primary image. Due to this, demoted mirror snapshots would pile up and consume storage space. With this fix, the implementation defect is fixed and the appropriate demoted mirror snapshot is removed following the promotion of the image.
Clone Of:
: 2237304 (view as bug list)
Environment:
Last Closed: 2023-10-12 16:34:29 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 61707 0 None None None 2023-07-10 19:20:11 UTC
Red Hat Issue Tracker RHCEPH-6979 0 None None None 2023-07-10 19:20:57 UTC
Red Hat Product Errata RHSA-2023:5693 0 None None None 2023-10-12 16:35:22 UTC

Description Vasishta 2023-06-12 13:07:33 UTC
Description of problem:
snapshots with "state": "demoted" are getting piled up (or not removed) after consecutive planned failover (relocation) operations.

Version-Release number of selected component (if applicable):
17.2.6-70.el9cp

How reproducible:
Tried three time in a cluster, Observed three times

Steps to Reproduce:
1. Configure snapshot based two way mirroring between two clusters
2. Perform planned failover-failback more than two times consecutively and observe mirror snapshots of the images

Actual results:
1374066  .mirror.primary.62ae3f4c-653e-4c07-b413-f1ea026324f4.84fda36e-b16a-40b6-a779-402ac39484e4      100 GiB             Mon Jun 12 03:18:00 2023  mirror (demoted peer_uuids:[])
1379742  .mirror.primary.62ae3f4c-653e-4c07-b413-f1ea026324f4.06fc3331-79e2-4dcf-93e8-625f4a66671c      100 GiB             Mon Jun 12 06:34:55 2023  mirror (demoted peer_uuids:[])
1385799  .mirror.primary.62ae3f4c-653e-4c07-b413-f1ea026324f4.998234c6-63bd-459f-b8dc-cf344ca4c157      100 GiB             Mon Jun 12 09:28:43 2023  mirror (demoted peer_uuids:[])
1388488  .mirror.non_primary.62ae3f4c-653e-4c07-b413-f1ea026324f4.f85b00b8-068e-4751-804b-28615e2106ab  100 GiB             Mon Jun 12 10:38:25 2023  mirror (demoted peer_uuids:[] 68226a72-f0e3-451d-9048-cd35e7d0d0c6:1350197 copied)
1388588  .mirror.primary.62ae3f4c-653e-4c07-b413-f1ea026324f4.309c2860-76a6-4277-a8e3-4792c87069f6      100 GiB             Mon Jun 12 10:39:10 2023  mirror (primary peer_uuids:[])
1388612  .mirror.primary.62ae3f4c-653e-4c07-b413-f1ea026324f4.390655c4-c139-461a-9224-7897902802cd      100 GiB             Mon Jun 12 10:40:01 2023  mirror (primary peer_uuids:[68a6c766-37ed-4d54-97c3-67556467bb89])

Expected results:
Preserve snapshots which are required for the mirroring functionality

Comment 13 errata-xmlrpc 2023-10-12 16:34:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Ceph Storage 6.1 security, enhancement, and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:5693


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