From 50367c9190cdb263b661d7d2b8c1035cd1c6ebd5 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 12 Jul 2019 09:58:01 -0400 Subject: [PATCH] Improve OSD create messages --- node-daemon/pvcd/CephInstance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node-daemon/pvcd/CephInstance.py b/node-daemon/pvcd/CephInstance.py index 296fded1..b7ccbc49 100644 --- a/node-daemon/pvcd/CephInstance.py +++ b/node-daemon/pvcd/CephInstance.py @@ -70,7 +70,7 @@ class CephOSDInstance(object): def add_osd(zk_conn, logger, node, device, weight): # We are ready to create a new OSD on this node - logger.out('Creating new OSD disk', state='i') + logger.out('Creating new OSD disk on block device {}'.format(device), state='i') try: # 1. Create an OSD; we do this so we know what ID will be gen'd retcode, stdout, stderr = common.run_os_command('ceph osd create') @@ -146,7 +146,7 @@ def add_osd(zk_conn, logger, node, device, weight): raise # 5. Add it to the crush map - logger.out('Activating new OSD disk with ID {} to CRUSH map'.format(osd_id), state='i') + logger.out('Adding new OSD disk with ID {} to CRUSH map'.format(osd_id), state='i') retcode, stdout, stderr = common.run_os_command( 'ceph osd crush add osd.{osdid} {weight} root=default host={node}'.format( osdid=osd_id,