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

Re: [HTCondor-users] python bindings/bdii problem



It may be as simple as putting a proper X509_USER_PROXY in your environment.

Alternatively you can set D_SECURITY log level on the collector side and it will tell you more

about why the authentication is failing.   


Steve



From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Stephen Jones <sjones@xxxxxxxxxxxxxxxx>
Sent: Thursday, January 10, 2019 8:21:24 AM
To: Brian Lin
Cc: Mischa Salle; HTCondor-Users Mail List; Brian Paul Bockelman
Subject: [HTCondor-users] python bindings/bdii problem
 
Hi all,

I have a HTCondor-CE <-> HTCondor setup.

CERN have devised a BDII program for HTCondor-CE. A piece of it is
below, that I use for testing.The BDII program gets the Collector (the
one on 9618, by default not the CE one), uses it to get info on the
HTCondor-CE system, and then constructs another Collector by using the
default HTCondor-CE port (9619). Then it tries to query the HTCondor-CE
9619 port Collector to get some facts to publish in the BDII.

Anyway, when I run it, I get an unhandled exception, IOError. I also see
a message in the /var/log/condor-ce/CollectorLog file:

01/10/19 13:50:19 DC_AUTHENTICATE: required authentication of
138.253.178.106 failed: AUTHENTICATE:1003:Failed to authenticate with
any method

So I guess I either need to make the python binding BDII program
"authenticate" somehow, or make the Collector on the 9619 port not care.

I've tried some things to make that work but it hasn't so far.

Anybody got any tips on the right thing to do?

Cheers,

Ste

--- THAT PIECE ----

import sys
import htcondor

def main():

     coll = htcondor.Collector()
     coll_ad = coll.query(htcondor.AdTypes.Collector)[0]  # the pool
collector ad

     ce_batch_schedd_ads = coll.query(htcondor.AdTypes.Schedd,
'HAS_HTCONDOR_CE =?= True', ['Machine'])

     for ce_batch_schedd_ad in ce_batch_schedd_ads:

         ce_host = ce_batch_schedd_ad['Machine']
         ce_collector = htcondor.Collector(ce_host + ':9619')  # find
the CE using the default CE port
         print ce_collector

         try:
             ce_schedd_ad = ce_collector.query(htcondor.AdTypes.Schedd,
'Name =?= "{0}"'.format(ce_host))[0]

         except RuntimeError:
             sys.stderr.write("Unable to locate CE schedd on %s" % ce_host)
             continue

if __name__ == '__main__':
     main()

--
Steve Jones                             sjones@xxxxxxxxxxxxxxxx
Grid System Administrator               office: 220
High Energy Physics Division            tel (int): 43396
Oliver Lodge Laboratory                 tel (ext): +44 (0)151 794 3396
University of Liverpool                 https://urldefense.proofpoint.com/v2/url?u=http-3A__www.liv.ac.uk_physics_hep_&d=DwIGaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=10BCTK25QMgkMYibLRbpYg&m=iBsiP8KCESLFVK8EyJzJq9d5czCWEsS8oNqzERRbZ5g&s=0BL1FeCvE9q8FqLOS9y0EpY8C5r6hbLnfmivxpn9Ubw&e=

_______________________________________________
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://urldefense.proofpoint.com/v2/url?u=https-3A__lists.cs.wisc.edu_mailman_listinfo_htcondor-2Dusers&d=DwIGaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=10BCTK25QMgkMYibLRbpYg&m=iBsiP8KCESLFVK8EyJzJq9d5czCWEsS8oNqzERRbZ5g&s=qWFlTFqr1OkyCUJg7P2iTTT-ihbgQExHE0VBXr37fXE&e=

The archives can be found at:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.cs.wisc.edu_archive_htcondor-2Dusers_&d=DwIGaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=10BCTK25QMgkMYibLRbpYg&m=iBsiP8KCESLFVK8EyJzJq9d5czCWEsS8oNqzERRbZ5g&s=1TJXjSwIVz4pCaZGetrRw-cswUjRmf6FIXt47WwPMYI&e=