2 from textwrap import dedent
3 from ceph_volume import terminal
11 help = 'Manage already deployed OSDs with ceph-volume'
14 Take over a deployed OSD, persisting its metadata in /etc/ceph/osd/ so that it can be managed
15 with ceph-volume directly. Avoids UDEV and ceph-disk handling.
22 'activate': activate.Activate,
23 'trigger': trigger.Trigger,
26 def __init__(self, argv):
29 def print_help(self, sub_help):
30 return self._help.format(sub_help=sub_help)
33 terminal.dispatch(self.mapper, self.argv)
34 parser = argparse.ArgumentParser(
35 prog='ceph-volume simple',
36 formatter_class=argparse.RawDescriptionHelpFormatter,
37 description=self.print_help(terminal.subhelp(self.mapper)),
39 parser.parse_args(self.argv)
40 if len(self.argv) <= 1:
41 return parser.print_help()