]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rbd_support: rename "rbd_trash_trash_purge_schedule" oid 35108/head
authorMykola Golub <mgolub@suse.com>
Mon, 18 May 2020 17:59:31 +0000 (20:59 +0300)
committerMykola Golub <mgolub@suse.com>
Mon, 18 May 2020 17:59:31 +0000 (20:59 +0300)
to "rbd_trash_purge_schedule"

Fixes: https://tracker.ceph.com/issues/45589
Signed-off-by: Mykola Golub <mgolub@suse.com>
PendingReleaseNotes
src/pybind/mgr/rbd_support/trash_purge_schedule.py

index dec53694ca77713a6d3854ca1ac8ec8bb2f10c64..a9862214da27cc42013fa76767b2325fa7aeccf7 100644 (file)
   the cluster, which could fill a nearly-full cluster.  They have been
   replaced by a tool, currently considered experimental,
   ``rgw-orphan-list``.
+
+* RBD: The name of the rbd pool object that is used to store
+  rbd trash purge schedule is changed from "rbd_trash_trash_purge_schedule"
+  to "rbd_trash_purge_schedule". Users that have already started using
+  ``rbd trash purge schedule`` functionality and have per pool or namespace
+  schedules configured should copy "rbd_trash_trash_purge_schedule"
+  object to "rbd_trash_purge_schedule" before the upgrade and remove
+  "rbd_trash_purge_schedule" using the following commands in every RBD
+  pool and namespace where a trash purge schedule was previously
+  configured::
+
+    rados -p <pool-name> [-N namespace] cp rbd_trash_trash_purge_schedule rbd_trash_purge_schedule
+    rados -p <pool-name> [-N namespace] rm rbd_trash_trash_purge_schedule
+
+  or use any other convenient way to restore the schedule after the
+  upgrade.
index b7875c9866a4bc4c224e32eca601fb434bf24200..930607d4843073edd7209d876b52b8e021fff6b7 100644 (file)
@@ -14,7 +14,7 @@ from .schedule import LevelSpec, Interval, StartTime, Schedule, Schedules
 
 class TrashPurgeScheduleHandler:
     MODULE_OPTION_NAME = "trash_purge_schedule"
-    SCHEDULE_OID = "rbd_trash_trash_purge_schedule"
+    SCHEDULE_OID = "rbd_trash_purge_schedule"
 
     lock = Lock()
     condition = Condition(lock)