예제 #1
0
 def _clean_remote_manager_dir(self):
     """
     Clean install path before unpack.
     """
     for node in self.agent_nodes:
         ip = node.get(Constant.NODE_IP)
         uname = node.get(Constant.NODE_USER)
         pwd = node.get(Constant.NODE_PWD)
         CommonTools.retry_remote_clean_dir(self.manager_path, ip, uname,
                                            pwd)
         g.logger.info('Successfully clean manager path on node:[%s]' % ip)
예제 #2
0
 def clean_remote_module_dir(self):
     """
     Clean install path before unpack.
     """
     for node in self.install_nodes:
         ip = node.get(Constant.NODE_IP)
         uname = node.get(Constant.NODE_USER)
         pwd = node.get(Constant.NODE_PWD)
         _, output = CommonTools.retry_remote_clean_dir(self.module_path, ip, uname, pwd)
         g.logger.info('Result of clean module path on node:[%s], output:%s' % (ip, output))