From: Zack Cerza Date: Thu, 29 May 2014 05:37:27 +0000 (-0500) Subject: More verbose logging for daemon restarts X-Git-Tag: 1.1.0~1428 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=abc722c8bebc3a4a7f24005e148eb4b50298d321;p=teuthology.git More verbose logging for daemon restarts Signed-off-by: Zack Cerza --- diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index 41dfe8d33..39507be1c 100644 --- a/teuthology/task/ceph.py +++ b/teuthology/task/ceph.py @@ -67,9 +67,9 @@ class DaemonState(object): :param args: positional arguments passed to remote.run :param kwargs: keyword arguments passed to remote.run """ - self.log.info('Restarting') + self.log.info('Restarting daemon') if self.proc is not None: - self.log.debug('stopping old one...') + self.log.info('Stopping old one...') self.stop() cmd_args = list(self.command_args) cmd_args.extend(args) @@ -84,9 +84,9 @@ class DaemonState(object): :param extra_args: Extra keyword arguments to be added. """ - self.log.info('Restarting') + self.log.info('Restarting daemon') if self.proc is not None: - self.log.debug('stopping old one...') + self.log.info('Stopping old one...') self.stop() cmd_args = list(self.command_args) # we only want to make a temporary mod of the args list @@ -765,7 +765,7 @@ def cluster(ctx, config): mkfs = ['mkfs.%s' % fs] + mkfs_options log.info('%s on %s on %s' % (mkfs, dev, remote)) remote.run(args= ['yes', run.Raw('|')] + ['sudo'] + mkfs + [dev]) - + log.info('mount %s on %s -o %s' % (dev, remote, ','.join(mount_options))) remote.run( @@ -1056,11 +1056,11 @@ def get_all_pg_info(rem_site, testdir): '--format', 'json'], stdout=StringIO()) all_info = json.loads(info.stdout.getvalue()) return all_info['pg_stats'] - + def osd_scrub_pgs(ctx, config): """ Scrub pgs when we exit. - + First make sure all pgs are active and clean. Next scrub all osds. Then periodically check until all pgs have scrub time stamps that