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

Re: [HTCondor-users] Requests and HTCondor Python bindings seem to fight over certificate

Hi Todd,

Thanks for taking a look. We have an easy work-around but I just wanted
to check if it was a known about issue or not.

Cheers, Iain

On Tue, Oct 27, 2015 at 08:34:20AM -0500, Todd Tannenbaum wrote:
> On 10/27/2015 8:04 AM, Todd Tannenbaum wrote:
> >>Can anyone shed any light?
> >>
> >>Thanks,
> >>
> >
> >Just a guess, but is your Python script and attempting to communicate
> >to both HTCondor (with GSI or SSL) and Puppet from different threads
> >in the same process?  If so, perhaps there is thread safety problem,
> >for instance perhaps the HTCondor client libraries that the Python
> >interface uses are not thread safe with respect to OpenSSL and/or
> >GSI.
> >
> >regards Todd
> Followup to my own post above :), but some evidence that my guess is
> correct -  see
>   https://htcondor-wiki.cs.wisc.edu/index.cgi/tktview?tn=4464
> (the implementation of ticket 4464 changed some in ticket 4483, but I
> think the implication is the same).
> Maybe you could try setting environment variable GLOBUS_THREAD_MODEL to
> "pthread", but it looks like the code purposefully overides that setting to
> prevent hard-to-diagnose problems if the Globus native packages are not
> installed or other such shared library problems--- a Linux-style spin on
> Windows DLL hell :)
> So without doing any tests myself, I think at the current time htcondor's
> python bindings are not thread safe with respect to GSI or OpenSSL.
> Eventually, we should do something about this, but we could do something
> about it sooner rather than later if you cannot work-around this on your
> side..
> regards,
> Todd
> _______________________________________________
> 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/