]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: Add comments to secondary contaieners 36943/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Wed, 2 Sep 2020 07:37:24 +0000 (09:37 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Wed, 2 Sep 2020 07:38:25 +0000 (09:38 +0200)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Co-authored-by: Michael Fritch <mfritch@suse.com>
src/cephadm/cephadm

index dca03019bec4b60536d88507c8a2c9087398eddf..b8e4f19f182147b96df00b75ed2dd9cf253b8367 100755 (executable)
@@ -2014,7 +2014,7 @@ def deploy_daemon_units(fsid, uid, gid, daemon_type, daemon_id, c,
             # add nfs to the rados grace db
             nfs_ganesha = NFSGanesha.init(fsid, daemon_id)
             prestart = nfs_ganesha.get_rados_grace_container('add')
-            _write_container_cmd_to_bash(f, prestart)
+            _write_container_cmd_to_bash(f, prestart,  'add daemon to rados grace')
         elif daemon_type == CephIscsi.daemon_type:
             f.write(' '.join(CephIscsi.configfs_mount_umount(data_dir, mount=True)) + '\n')
             ceph_iscsi = CephIscsi.init(fsid, daemon_id)
@@ -2047,12 +2047,12 @@ def deploy_daemon_units(fsid, uid, gid, daemon_type, daemon_id, c,
                 cname='ceph-%s-%s.%s-deactivate' % (fsid, daemon_type,
                                                     daemon_id),
             )
-            _write_container_cmd_to_bash(f, poststop)
+            _write_container_cmd_to_bash(f, poststop, 'deactivate osd')
         elif daemon_type == NFSGanesha.daemon_type:
             # remove nfs from the rados grace db
             nfs_ganesha = NFSGanesha.init(fsid, daemon_id)
             poststop = nfs_ganesha.get_rados_grace_container('remove')
-            _write_container_cmd_to_bash(f, poststop)
+            _write_container_cmd_to_bash(f, poststop, 'remove daemon from rados grace')
         elif daemon_type == CephIscsi.daemon_type:
             # make sure we also stop the tcmu container
             ceph_iscsi = CephIscsi.init(fsid, daemon_id)