From: Owen Synge Date: Mon, 23 May 2016 15:12:15 +0000 (+0200) Subject: [fix-remove-ceph-create-keys-dep] ceph_deploy.gatherkeys: logging mon keyring location X-Git-Tag: v1.5.34~5^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b166d7367610af39d8d54a19b2dd395bd3cb396e;p=ceph-deploy.git [fix-remove-ceph-create-keys-dep] ceph_deploy.gatherkeys: logging mon keyring location While testing we had issues finding the mon keyring. Signed-off-by: Owen Synge --- diff --git a/ceph_deploy/gatherkeys.py b/ceph_deploy/gatherkeys.py index 08f210f..69dfaab 100644 --- a/ceph_deploy/gatherkeys.py +++ b/ceph_deploy/gatherkeys.py @@ -140,8 +140,9 @@ 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 found in host: %s", host) + LOG.warning("No mon key not found %s:%s", host, path_keytype_mon) 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: