]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add some log lines
authorMichael Fritch <mfritch@suse.com>
Tue, 18 Feb 2020 21:34:12 +0000 (14:34 -0700)
committerMichael Fritch <mfritch@suse.com>
Thu, 12 Mar 2020 14:08:58 +0000 (08:08 -0600)
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/cephadm/cephadm

index 6c1393832b75ed8f37640187676e5258a3b9f1ef..146b6d80ee20aaa7d6ed6b7526ae7f20c5983a61 100755 (executable)
@@ -287,6 +287,7 @@ class NFSGanesha(object):
         data_dir = get_data_dir(self.fsid, self.daemon_type, self.daemon_id)
         volume_mounts = self.get_container_mounts(data_dir)
 
+        logger.info('Creating RADOS grace for action: %s' % (action))
         c = CephContainer(
             image=self.image,
             entrypoint=entrypoint,
@@ -325,7 +326,7 @@ def attempt_bind(s, address, port):
 def port_in_use(port_num):
     # type (int) -> bool
     """Detect whether a port is in use on the local machine - IPv4 and IPv6"""
-
+    logger.info('Verifying port %d ...' % (port_num))
     try:
         s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
         attempt_bind(s, '0.0.0.0', port_num)
@@ -2323,6 +2324,8 @@ def command_deploy():
     if daemon_type not in get_supported_daemons():
         raise Error('daemon type %s not recognized' % daemon_type)
 
+    logger.info('Deploying daemon %s.%s ...' % (daemon_type, daemon_id))
+
     if daemon_type in Ceph.daemons:
         (config, keyring) = get_config_and_keyring()
         (uid, gid) = extract_uid_gid()