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

[HTCondor-users] [Bug Report] Specifying "universe = docker" is not really optional in all cases



According to https://htcondor.readthedocs.io/en/24.0/users-manual/env-of-job.html, specifying "universe = docker" is optional. However it really isn't for containerized jobs that 1) use the chirp server and 2) use a bridged docker network.

The reason is https://github.com/htcondor/htcondor/blob/31d8cd3ed251f6b7f9f58433aab423bfc85a2d58/src/condor_starter.V6.1/jic_shadow.cpp#L2937 looks only for "wantDocker." However, when "universe = docker" is omitted, the classAd shows "wantContainer."


The left shows what's generated with htcondor 10.9 python bindings (recently yanked from pypi) and the right shows what's generated with 23, when "universe = docker" is omitted." As a result, the containerized job tries to look for the chirp server at 127.0.0.1 instead of the magic docker gateway ip 172.17... Explicitly putting "universe = docker" in the job submission fixes the issue.

Thanks,
Jordan