]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add shared_ceph_folder opt to ceph-volume subcommand 44880/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 19 Jan 2022 13:17:04 +0000 (14:17 +0100)
committerAdam King <adking@redhat.com>
Thu, 3 Feb 2022 14:51:57 +0000 (09:51 -0500)
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 4889ec5e1eb9d796611f9b2d4948dcffb93ee994..7c7d3fbb8c3fc33b0a89b59c7b8dc75c40ffc51d 100755 (executable)
@@ -8286,6 +8286,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')