]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[fix-remove-ceph-create-keys-dep] ceph_deploy.gatherkeys: logging mon keyring location
authorOwen Synge <osynge@suse.com>
Mon, 23 May 2016 15:12:15 +0000 (17:12 +0200)
committerOwen Synge <osynge@suse.com>
Mon, 23 May 2016 15:16:05 +0000 (17:16 +0200)
While testing we had issues finding the mon keyring.

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

index 08f210fda75f6f23df4ee4b53f7e8f6e4fd2e3b8..69dfaab6d0009f6951b7a442d2250f2d34b84178 100644 (file)
@@ -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: