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

Re: [HTCondor-users] submitting jobs with API



On Tue, Dec 19, 2017 at 9:29 AM, Larry Martell <larry.martell@xxxxxxxxx> wrote:
> I am doing this:
>
> import htcondor
> import classad
> condor_host = '192.168.10.2'
> coll = htcondor.Collector(condor_host)
> schedd_ad = coll.locate(htcondor.DaemonTypes.Schedd)
> schedd = htcondor.Schedd(schedd_ad)
> ad = classad.ClassAd()
>
> # set up ad
>
> id = schedd.submit(ad)
>
> RuntimeError: 'Failed to connect to schedd.'
>
> On 192.168.10.2:
>
> 4 S condor     32054       1  0  80   0 - 18610 poll_s Dec12 ?
> 00:00:15 /usr/sbin/condor_master -f
> 4 S root       32112   32054  0  80   0 -  6652 poll_s Dec12 ?
> 00:07:51 condor_procd -A /var/run/condor/procd_pipe -L
> /var/log/condor/ProcLog -R 1000000 -S 60 -C 986
> 4 S condor     32113   32054  0  80   0 - 13531 poll_s Dec12 ?
> 00:00:44 condor_shared_port -f
> 4 S condor     32117   32054  0  80   0 - 20511 poll_s Dec12 ?
> 00:07:46 condor_collector -f
> 4 S condor     32122   32054  0  80   0 - 15856 poll_s Dec12 ?
> 00:31:40 condor_negotiator -f
> 4 S condor     32123   32054  0  80   0 - 18808 poll_s Dec12 ?
> 00:00:31 condor_schedd -f
>
> From the machine running the python code:
>
> $ nmap -p 9618 192.168.10.2
>
> Starting Nmap 6.40 ( http://nmap.org ) at 2017-12-19 09:28 EST
> Nmap scan report for 192.168.10.2
> Host is up (0.00018s latency).
> PORT     STATE SERVICE
> 9618/tcp open  condor
>
> Am I doing something wrong or missing something?

Also let me add I have these settings in the config file:

ENABLE_SOAP = True
ENABLE_WEB_SERVER = True