Project

General

Profile

Bug #48020

rbd mirror snapshot and trash purge schedulers store global schedule in localized config

Added by Mykola Golub over 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The schedule code for rbd_support mgr module incorrectly uses `set_localized_module_option` function instead of `set_module_option` when storing a global schedule. E.g if `rbd mirror snapshot schedule add 1m` is executed when the active mgr.x, the resulting config:

ceph config dump
WHO     MASK  LEVEL     OPTION                                      VALUE                                                                                                                                   RO
...
  mgr         advanced  mgr/rbd_support/x/mirror_snapshot_schedule  [
    {
        "interval": "1m",
        "start_time": null
    }
]                                                                    * 

As a result after the mgr failover the schedule will not be available.


Related issues

Copied to rbd - Backport #48086: octopus: rbd mirror snapshot and trash purge schedulers store global schedule in localized config Resolved

History

#1 Updated by Jason Dillaman over 3 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 37864

#2 Updated by Jason Dillaman over 3 years ago

  • Status changed from Fix Under Review to Pending Backport

#3 Updated by Nathan Cutler over 3 years ago

  • Copied to Backport #48086: octopus: rbd mirror snapshot and trash purge schedulers store global schedule in localized config added

#4 Updated by Nathan Cutler about 3 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Also available in: Atom PDF