cfg.StrOpt('ip',
default=os.environ.get('INSTALLER_IP', '127.0.0.1'),
help='the ip of installer'),
- cfg.StrOpt('username',
- default='root',
- help='the user name for login installer server',
- required=True),
cfg.StrOpt('key_file',
default=os.environ.get('SSH_KEY', None),
help='the key for user to login installer server',
class DaisyInstaller(BaseInstaller):
node_user_name = 'root'
+ installer_username = 'root'
def __init__(self, conf, log):
super(DaisyInstaller, self).__init__(conf, log)
self.client = SSHClient(self.conf.installer.ip,
- self.conf.installer.username,
+ self.installer_username,
password='r00tme')
self.key_file = None
self.controllers = list()
notification_time = \
self.consumer.notified_time - \
self.monitor.detected_time
+
+ self.log.info('doctor fault management notification_time=%s'
+ % notification_time)
+
if notification_time < 1 and notification_time > 0:
- self.log.info('doctor fault management test successfully,'
- 'notification_time=%s' % notification_time)
+ self.log.info('doctor fault management test successfully')
else:
if self.conf.profiler_type:
self.log.info('run doctor fault management profile.......')