From 2c13694beddfa55696da5bab1e996a341da493ce Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Tue, 18 Feb 2020 14:34:12 -0700 Subject: [PATCH] cephadm: add some log lines Signed-off-by: Michael Fritch --- src/cephadm/cephadm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 6c1393832b7..146b6d80ee2 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -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() -- 2.39.5