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

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



Did you run the condor_q command while the job was running?

$$() expansion requires that the Schedd have an associated Match ad that it gets from the Negotiator. 
If that ad does not exist in the Schedd or does not have the given attribute, then the $$() expansion for condor_q
does not happen.

So the query you show below might be correct for a job that is idle.   Also I think you should be looking at RemoteHost
not LastRemoteHost

-tj

-----Original Message-----
From: Stefano Dal Pra <stefano.dalpra@xxxxxxxxxxxx> 
Sent: Tuesday, May 12, 2020 9:52 AM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>; John M Knoeller <johnkn@xxxxxxxxxxx>
Subject: Re: [HTCondor-users] migrating a machine classad to job classad

Hello, thanks for the hint;
I tried that first but then:

[root@sn-01 ~]# condor_q 4077087. -af JobStatus HostFactor 
ScheddHostName LastRemoteHost
4 $$(t1_wn_hs06) undefined slot1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Stefano

Il 12/05/20 16:32, John M Knoeller ha scritto:
> Hi, stefano.  a $$() expansion must be within a string value like this
>
> JOB_TRANSFORM_AddHS06 = [ set_HostFactor = "$$(t1_wn_hs06)" ]
>
> -tj
>
>
> -----Original Message-----
> From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of Stefano Dal Pra
> Sent: Tuesday, May 12, 2020 9:03 AM
> To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
> Subject: [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
>
> _______________________________________________
> HTCondor-users mailing list
> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
>
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/htcondor-users/
>
> _______________________________________________
> HTCondor-users mailing list
> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
>
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/htcondor-users/