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

[HTCondor-users] condor_advertise not working as stated



Hi,

 

As part of automatically removing nodes from a pool, I am trying to remove the associated startd ClassAds so that the machine does not get matched.

 

I am following the instructions given here: https://htcondor.readthedocs.io/en/latest/man-pages/condor_advertise.html

 

Running the following command:

 

condor_advertise INVALIDATE_STARTD_ADS remove_file

 

where remove_file contains:

 

MyType = "Query"

TargetType = "Machine"

Requirements = Name == "XYZ.XXXXX.com"

 

Results in the following message in the collector logs (the startd ad is not removed):

 

05/24/22 10:10:01 Got INVALIDATE_STARTD_ADS

05/24/22 10:10:01 StartAd Error: Neither 'Name' nor 'Machine' found in ad

05/24/22 10:10:01 Walking tables to invalidate... O(n)

05/24/22 10:10:02 (Invalidated 0 ads)

05/24/22 10:10:02 StartAd Error: Neither 'Name' nor 'Machine' found in ad

05/24/22 10:10:02 Walking tables to invalidate... O(n)

05/24/22 10:10:02 (Invalidated 0 ads)

 

If I change remove_file to contain:

 

MyAddress = "<XXXXXX>"

Name = slot1@xxxxxxxxxxxxx

 

Then the startd ad is successfully removed from the collector.

 

Am I doing something wrong in the first case, or is this a bug/outdated docs?

 

Both the execute node and the collector are running on Windows x64 and HTCondor is v8.8.12

 

Kind regards,

 

Peet Whittaker

Discipline Lead for DevOps | Principal Software Developer

 

JBA Consulting, 1 Broughton Park, Old Lane North, Broughton, Skipton, North Yorkshire, BD23 3FD. Telephone: +441756699500

Visit our new website at  www.jbaconsulting.com.


This email is covered by the JBA Consulting email disclaimer
JBA Consulting is a trading name of Jeremy Benn Associates Limited, registered in England, company number 03246693, 1 Broughton Park, Old Lane North, Broughton, Skipton, North Yorkshire, BD23 3FD.

JBA CONSULTING