From bf8ae4f8ec6d5be35fb82ac2970a54992b33fc35 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Wed, 2 Sep 2020 16:05:25 +0200 Subject: [PATCH] Revert "mgr/osd_support: remove module and all traces" This reverts commit a55c1dd0fac826978edf22e448c3456e7634cbc3. Kept to keep upgrades from older point releases working. This module can be removed as soon as we no longer support upgrades from old octopus point releases. Revert "build/debian: remove osd_support" This reverts commit 8ff2824beb78dfd03710e94302f038ea70fb4561. Fixes: https://tracker.ceph.com/issues/47109 Signed-off-by: Sebastian Wagner (cherry picked from commit 43f1bdb6ef7d740eda219bac7d0280ed558e319d) --- ceph.spec.in | 1 + debian/ceph-mgr-modules-core.install | 1 + src/pybind/mgr/osd_support/__init__.py | 1 + src/pybind/mgr/osd_support/module.py | 19 +++++++++++++++++++ 4 files changed, 22 insertions(+) create mode 100644 src/pybind/mgr/osd_support/__init__.py create mode 100644 src/pybind/mgr/osd_support/module.py diff --git a/ceph.spec.in b/ceph.spec.in index dcc341cbf59..04122c99726 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1713,6 +1713,7 @@ fi %{_datadir}/ceph/mgr/localpool %{_datadir}/ceph/mgr/orchestrator %{_datadir}/ceph/mgr/osd_perf_query +%{_datadir}/ceph/mgr/osd_support %{_datadir}/ceph/mgr/pg_autoscaler %{_datadir}/ceph/mgr/progress %{_datadir}/ceph/mgr/prometheus diff --git a/debian/ceph-mgr-modules-core.install b/debian/ceph-mgr-modules-core.install index 903a4d8b014..bdb687a64c9 100644 --- a/debian/ceph-mgr-modules-core.install +++ b/debian/ceph-mgr-modules-core.install @@ -8,6 +8,7 @@ usr/share/ceph/mgr/iostat usr/share/ceph/mgr/localpool usr/share/ceph/mgr/orchestrator usr/share/ceph/mgr/osd_perf_query +usr/share/ceph/mgr/osd_support usr/share/ceph/mgr/pg_autoscaler usr/share/ceph/mgr/progress usr/share/ceph/mgr/prometheus diff --git a/src/pybind/mgr/osd_support/__init__.py b/src/pybind/mgr/osd_support/__init__.py new file mode 100644 index 00000000000..88ed2b9f57c --- /dev/null +++ b/src/pybind/mgr/osd_support/__init__.py @@ -0,0 +1 @@ +from .module import OSDSupport diff --git a/src/pybind/mgr/osd_support/module.py b/src/pybind/mgr/osd_support/module.py new file mode 100644 index 00000000000..1f3e137bbc2 --- /dev/null +++ b/src/pybind/mgr/osd_support/module.py @@ -0,0 +1,19 @@ +from mgr_module import MgrModule + + +class OSDSupport(MgrModule): + # Kept to keep upgrades from older point releases working. + # This module can be removed as soon as we no longer + # support upgrades from old octopus point releases. + + # On the other hand, if you find a use for this module, + # Feel free to use it! + + COMMANDS = [] + + MODULE_OPTIONS: [] + + NATIVE_OPTIONS: [] + + def __init__(self, *args, **kwargs): + super(OSDSupport, self).__init__(*args, **kwargs) -- 2.47.3