]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add shared_ceph_folder opt to ceph-volume subcommand 44662/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 19 Jan 2022 13:17:04 +0000 (14:17 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 25 Jan 2022 15:03:20 +0000 (16:03 +0100)
This commit adds the `--shared_ceph_folder` option to `ceph-volume`
subcommand, just like `shell` and `bootstrap` subcommands.

Fixes: https://tracker.ceph.com/issues/53931
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
src/cephadm/cephadm

index 3a164bbe773e4f1e3cb0a047b9fb490b01ffbb40..c23a76cc8d93cd5d568bdbf3147124b615f79875 100755 (executable)
@@ -8094,6 +8094,10 @@ def _get_parser():
     parser_ceph_volume = subparsers.add_parser(
         'ceph-volume', help='run ceph-volume inside a container')
     parser_ceph_volume.set_defaults(func=command_ceph_volume)
+    parser_ceph_volume.add_argument(
+        '--shared_ceph_folder',
+        metavar='CEPH_SOURCE_FOLDER',
+        help='Development mode. Several folders in containers are volumes mapped to different sub-folders in the ceph source folder')
     parser_ceph_volume.add_argument(
         '--fsid',
         help='cluster FSID')