[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[HTCondor-users] migrating a machine classad to job classad



Hello,
First thing first, this happens on
$CondorVersion: 8.8.8 Mar 19 2020 BuildID: 498525 PackageID: 8.8.8-1 $
$CondorPlatform: x86_64_CentOS7 $

I define the HS06 power on our exec nodes by adding this in the STARTD configuration:

STARTD_ATTRS =  $(STARTD_ATTRS) t1_wn_hs06
t1_wn_hs06 = 832

So that:

[root@sn-01 ~]# condor_status -compact cn-610-02-05 -af t1_wn_hs06
832

I would like to find that value on the job classad of finished jobs:
To do so, i configured this on the Submit Node:

JOB_TRANSFORM_NAMES = $(JOB_TRANSFORM_NAMES) AddHS06
JOB_TRANSFORM_AddHS06 = [ set_HostFactor = $$(t1_wn_hs06) ]

#Note: i also used eval_set_HostFactor

But then i get undefined:

[root@sn-01 ~]# condor_q 4074977. -af JobStatus HostFactor LastRemoteHost
4 undefined slot1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx

I also tried a different approach, by defining in the SCHEDD:

HostFactor = $$(t1_wn_hs06)
ScheddHostName = $(HOSTNAME)
SUBMIT_ATTRS = $(SUBMIT_ATTRS) HostFactor ScheddHostName

but even then:
[sdalpra@ui-tier1 htjobs]$ condor_submit -name sn-01.cr.cnaf.infn.it -spool test.sub
Submitting job(s).
1 job(s) submitted to cluster 4075326.

[... few secs ...]

[root@sn-01 ~]# condor_q 4075326. -af JobStatus HostFactor ScheddHostName LastRemoteHost
4 undefined undefined slot1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Do i miss something basic? Is there a better way, or no way?

Thanks
Stefano