1 From 69fa7d657d2b849c7d472a2aa8965fa858bc4fd1 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
3 Date: Mon, 4 Dec 2017 10:23:30 +0100
4 Subject: [PATCH 6/6] Revert "ceph-disk add deprecation warnings in favor of
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
10 This reverts commit b8bf0d047868054135592188c7ebe186181310c5.
12 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
14 src/ceph-disk/ceph_disk/main.py | 29 +----------------------------
15 1 file changed, 1 insertion(+), 28 deletions(-)
17 diff --git a/src/ceph-disk/ceph_disk/main.py b/src/ceph-disk/ceph_disk/main.py
18 index 6516750d22..6d1a555ead 100644
19 --- a/src/ceph-disk/ceph_disk/main.py
20 +++ b/src/ceph-disk/ceph_disk/main.py
21 @@ -42,23 +42,12 @@ import pwd
27 CEPH_OSD_ONDISK_MAGIC = 'ceph osd volume v026'
28 CEPH_LOCKBOX_ONDISK_MAGIC = 'ceph lockbox volume v001'
30 KEY_MANAGEMENT_MODE_V1 = 'ceph-mon v1'
32 -DEPRECATION_WARNING = """
33 -*******************************************************************************
34 -This tool is now deprecated in favor of ceph-volume.
35 -It is recommended to use ceph-volume for OSD deployments. For details see:
37 - http://docs.ceph.com/docs/master/ceph-volume/#migrating
39 -*******************************************************************************
45 @@ -5649,8 +5638,6 @@ def make_zap_parser(subparsers):
49 - # Deprecate from the very beginning
50 - warnings.warn(DEPRECATION_WARNING)
51 args = parse_args(argv)
53 setup_logging(args.verbose, args.log_stdout)
54 @@ -5670,20 +5657,10 @@ def main(argv):
55 CEPH_PREF_GROUP = args.setgroup
61 - # warn on any exception when running with verbosity
62 - warnings.warn(DEPRECATION_WARNING)
63 - # but still raise the original issue
68 main_catch(args.func, args)
70 - # if there aren't any errors, still log again at the very bottom
71 - warnings.warn(DEPRECATION_WARNING)
74 def setup_logging(verbose, log_stdout):
75 loglevel = logging.WARNING
76 @@ -5710,8 +5687,6 @@ def main_catch(func, args):
80 - # warn on generic 'error' exceptions
81 - warnings.warn(DEPRECATION_WARNING)
83 '{prog}: {msg}'.format(
85 @@ -5720,8 +5695,6 @@ def main_catch(func, args):
88 except CephDiskException as error:
89 - # warn on ceph-disk exceptions
90 - warnings.warn(DEPRECATION_WARNING)
91 exc_name = error.__class__.__name__
93 '{prog} {exc_name}: {msg}'.format(