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

Re: [HTCondor-users] condor_advertise not working as stated



The documentation is incorrect. You can to define the Name attribute in your invalidation ad. Weâll fix it.

 - Jaime

On May 24, 2022, at 4:31 AM, Peet Whittaker <Peet.Whittaker@xxxxxxxxxxxxxxxxx> wrote:

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.
 
 
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>"
 
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
_______________________________________________
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/