]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[RM-15409] Fix the function name of osd keyring creation 391/head
authorDesmondS <jordanjimmy41177@gmail.com>
Fri, 8 Apr 2016 01:27:24 +0000 (09:27 +0800)
committerDesmondS <jordanjimmy41177@gmail.com>
Fri, 8 Apr 2016 01:27:24 +0000 (09:27 +0800)
Change the function name of "create_osd" to "create_osd_keyring".
This function just do:
1. Check the remote node's osd keyring exist or not
2. If not, it create one.
The original name would confused the developers.

Signed-off-by: DesmondS <jordanjimmy41177@gmail.com>
ceph_deploy/osd.py

index 131c4faabdb1c8c0fc6033eb4b014282d08991e9..91ebff573ab970922c6c2d87bc93dcf053d84867 100644 (file)
@@ -30,7 +30,7 @@ def get_bootstrap_osd_key(cluster):
         raise RuntimeError('bootstrap-osd keyring not found; run \'gatherkeys\'')
 
 
-def create_osd(conn, cluster, key):
+def create_osd_keyring(conn, cluster, key):
     """
     Run on osd node, writes the bootstrap key if not there yet.
     """
@@ -307,7 +307,7 @@ def prepare(args, cfg, activate_prepared_disk):
                     args.overwrite_conf
                 )
 
-                create_osd(distro.conn, args.cluster, key)
+                create_osd_keyring(distro.conn, args.cluster, key)
 
             LOG.debug('Preparing host %s disk %s journal %s activate %s',
                       hostname, disk, journal, activate_prepared_disk)