list of instances prefix for output files suffix dn { 'type' : 'instance', 'object' : instance, 'prefix' : filePrefix } { 'host' : instance.getHost(), 'instanceInstallDir' : instance.getInstallDir(), 'fileFd' : cFileFd } { 'instance' : instance, 'suffixDn' : suffixDn, 'fileFd' : cFileFd } '%s : %s : installation complete' % \ (instance.getHost(),instance.getName()) {'instance' : instance} host name installdir path file descriptor, wildcard : NO_FILE to not write into a file {'tagName' : 'cleanPreviousOpendsInstall', 'fileFd' : fileFd } { 'location' : host, 'fileName' : instanceInstallDir } { 'content' : 'installdir %s EXISTs on %s, clean it' % \ (instanceInstallDir,host), 'fileFd' : fileFd } { 'location' : host , 'dsPath' : instanceInstallDir, 'expectedRC': 'noCheck', 'fileFd' : fileFd } { 'location' : host, 'foldername' : instanceInstallDir, 'fileFd' : fileFd } {'fileFd' : fileFd} instance class suffix dn file descriptor { 'tagName' : 'installSetupOpends', 'fileFd' : fileFd } { 'location' : instance.getHost(), 'foldername' : instance.getInstallDir(), 'fileFd' : fileFd } { 'srcFile' : instance.getTarball(), 'destFile' : '%s/%s_opends.zip' % (LOG_DIR,instance.getName()), 'remoteHost' : instance.getHost(), 'fileFd' : fileFd } { 'location' : instance.getHost(), 'zipfile' : '%s/%s_opends.zip' % (LOG_DIR,instance.getName()), 'unzipdir' : '%s/..' % instance.getInstallDir(), 'fileFd' : fileFd } { 'location' : instance.getHost(), 'dsPath' : instance.getInstallDir(), 'dsPort' : instance.getLDAPPort(), 'dsJmxPort' : instance.getJMXPort(), 'dsBindDN' : DIRECTORY_INSTANCE_DN, 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD, 'dsBaseDN' : suffixDn, 'dsDoNotStart' : 'true', 'fileFd' : fileFd } { 'location' : instance.getHost(), 'dsPath' : instance.getInstallDir(), 'dsPort' : instance.getLDAPPort(), 'dsSslPort' : instance.getLDAPSPort(), 'dsJmxPort' : instance.getJMXPort(), 'dsBindDN' : DIRECTORY_INSTANCE_DN, 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD, 'dsBaseDN' : suffixDn, 'dsDoNotStart' : 'true', 'dsEnableStartTLS' : instance.getIsStartTlsEnabled(), 'dsCertificate' : instance.getCertificate(), 'fileFd' : fileFd } { 'fileFd' : fileFd} { 'tagName' : 'getUid', 'fileFd' : fileFd } {'content' : 'Get uid running the test', 'fileFd' : fileFd} location "id\|sed 's/uid=.*(\(.*\)) gid=.*/\1/'" '/' ['PATH=/bin:/usr/bin'] { 'returncode' : RC, 'result' : user, 'fileFd' : fileFd } {'fileFd' : fileFd} 'TRACE : user = %s' % user 'TRACE : ps = %s' % a { 'tagName' : 'psOpends', 'fileFd' : fileFd } {'content' : 'Search running opends process on %s owned by %s' % \ (location,user), 'fileFd' : fileFd} location "ps -edf | grep opends | grep start-ds | grep -v grep | grep %s| awk -F' ' '{print $2}'" % user '/' ['PATH=/bin:/usr/bin'] { 'returncode' : RC, 'result' : pid, 'fileFd' : fileFd } {'fileFd' : fileFd} 'TRACE : pid = %s' % pid instance.getHost() "%s/bin/start-ds -s" % instance.getInstallDir() ['PATH=/bin:/usr/bin:'] { 'location' : instance.getHost(), 'fileName' : instance.getInstallDir() } {'instance' : instance}