]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
ceph_deploy.gatherkeys: logging mon error improvment
authorOwen Synge <osynge@suse.com>
Mon, 23 May 2016 15:28:37 +0000 (17:28 +0200)
committerOwen Synge <osynge@suse.com>
Mon, 23 May 2016 17:21:01 +0000 (19:21 +0200)
Improve logging message so it is clear the error is not connecting the mon

Signed-off-by: Owen Synge <osynge@suse.com>
ceph_deploy/gatherkeys.py

index d813076d030cb654a804451f9ede28beaf503669..20f71b4e8654efb24a2b70369d9e42a68eebd44d 100644 (file)
@@ -141,9 +141,8 @@ def gatherkeys_with_mon(args, host, dest_dir):
     path_keytype_mon = "%s/keyring" % (dir_keytype_mon)
     mon_key = distro.conn.remote_module.get_file(path_keytype_mon)
     if mon_key is None:
-        LOG.warning("No mon key not found %s:%s", host, path_keytype_mon)
+        LOG.warning("No mon key found in host: %s", host)
         return False
-    LOG.info("Found keyring at %s:%s", host, path_keytype_mon)
     mon_name_local = keytype_path_to(args, "mon")
     mon_path_local = os.path.join(dest_dir, mon_name_local)
     with file(mon_path_local, 'w') as f: