示例#1
0
    def setUp(self):
        self.workspace = Workspace()

        self.nodePattern = '''NodeName=%(nname)s Arch=x86_64 CoresPerSocket=1 CPUAlloc=%(calloc)d CPUErr=0 CPUTot=%(ctot)d CPULoad=0.00 Features=(null) Gres=(null) NodeAddr=%(nname)s NodeHostName=%(nname)s OS=Linux RealMemory=1 AllocMem=0 Sockets=2 Boards=1 State=%(nstate)s ThreadsPerCore=1 TmpDisk=0 Weight=1 BootTime=2013-08-23T09:49:03 SlurmdStartTime=2013-08-23T10:04:46 CurrentWatts=0 LowestJoules=0 ConsumedJoules=0 ExtSensorsJoules=n/s ExtSensorsWatts=0 ExtSensorsTemp=n/s 
'''

        self.jobPattern = '''JobId=%(jid)s Name=%(jname)s UserId=%(uid)s(0) GroupId=%(gid)s(0) Priority=4294901756 Account=(null) QOS=(null) JobState=%(jstate)s Reason=None Dependency=(null) Requeue=1 Restarts=0 BatchFlag=1 ExitCode=0:0 RunTime=00:01:00 TimeLimit=%(tlimit)s TimeMin=N/A SubmitTime=%(subtime)s EligibleTime=2013-08-26T11:54:52 StartTime=%(sttime)s EndTime=2013-08-26T11:55:52 PreemptTime=None SuspendTime=None SecsPreSuspend=0 Partition=%(pname)s AllocNode:Sid=cream-04:2682 ReqNodeList=(null) ExcNodeList=(null) NodeList=cream-42 BatchHost=cream-42 NumNodes=1 NumCPUs=%(ncpu)d CPUs/Task=1 ReqS:C:T=*:*:* MinCPUsNode=1 MinMemoryNode=0 MinTmpDiskNode=0 Features=(null) Gres=(null) Reservation=(null) Shared=0 Contiguous=0 Licenses=(null) Network=(null) Command=/root/test.sh WorkDir=/root
'''

        self.configPattern = '''Configuration data as of 2013-08-28T10:34:42
示例#2
0
    def setUp(self):
        self.workspace = Workspace()

        self.partPattern = "%(partid)s %(state)s %(cpuinfo)s %(maxcput)s %(defcput)s"
        self.partPattern += " %(jsize)s %(nodes)s %(maxcpun)s %(sct)s\n"
 def setUp(self):
     self.workspace = Workspace()
    def setUp(self):
        self.workspace = Workspace()

        self.pbsnodesPattern = '''# item from pbsnodes -a
    def setUp(self):
        self.workspace = Workspace()

        self.srvPattern = '''# qstat -B -f
Server: cert-34.pd.infn.it
    server_state = Active
    scheduling = True
    total_jobs = 0
    state_count = Transit:0 Queued:3 Held:0 Waiting:-3 Running:0 Exiting:0 
    acl_host_enable = False
    acl_hosts = cert-34.pd.infn.it
    managers = [email protected]
    operators = [email protected]
    default_queue = dteam
    log_events = 511
    mail_from = adm
    query_other_jobs = True
    resources_assigned.nodect = 0
    scheduler_iteration = 600
    node_check_rate = 150
    tcp_timeout = 6
    default_node = lcgpro
    node_pack = False
    mail_domain = never
    pbs_version = %(lrmsver)s
    kill_delay = 10
    next_job_number = 11
    net_counter = 3 0 0
    authorized_users = *@cert-34.pd.infn.it
'''

        self.jobPattern = '''# item from qstat -f
Job Id: %(jserial)s.cert-34.pd.infn.it
    Job_Name = %(jname)s
    Job_Owner = [email protected]
    job_state = %(jstate)s
    queue = %(queue)s
    euser = dteam013
    egroup = dteam
    qtime = %(qtime)s
    Resource_List.walltime = 36:00:00
    %(pair1)s
    server = cert-34.pd.infn.it
    Checkpoint = u
    ctime = Wed Aug 21 11:37:25 2013
    Error_Path = cert-34.pd.infn.it:/dev/null
    Hold_Types = n
    Join_Path = n
    Keep_Files = n
    Mail_Points = n
    mtime = Wed Aug 21 11:37:25 2013
    Output_Path = cert-34.pd.infn.it:/dev/null
    Priority = 0
    Rerunable = True
    Resource_List.neednodes = 1
    Resource_List.nodect = 1
    Resource_List.nodes = 1
    Shell_Path_List = /bin/bash
    stagein = CREAM921657923_jobWrapper.sh.18190.15697.1377077844@cert-34.pd.infn.it
    stageout = [email protected]
    substate = 11
    Variable_List = PBS_O_QUEUE=cert,PBS_O_HOME=/home/dteam013,
	PBS_O_LANG=en_US.UTF-8,PBS_O_LOGNAME=dteam013,
	PBS_O_PATH=/usr/kerberos/bin:/bin:/usr/bin:/home/dteam013/bin,
	PBS_O_MAIL=/var/spool/mail/dteam013,PBS_O_SHELL=/bin/sh,
	PBS_O_HOST=cert-34.pd.infn.it,PBS_SERVER=cert-34.pd.infn.it,
	PBS_O_WORKDIR=/var/tmp
    queue_rank = 23
    queue_type = E
    etime = Wed Aug 21 11:37:25 2013
    submit_args = /tmp/cream_921657923
    fault_tolerant = False
    submit_host = cert-34.pd.infn.it
    init_work_dir = /var/tmp

'''

        self.queuePattern = '''# item from qstat -Q -f
示例#6
0
    def setUp(self):
        self.workspace = Workspace()

        self.diagPattern = '''Displaying group information...