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

Re: [HTCondor-users] Unattended install of HTCondor 8.0.5 on Windows: end-of-line issues in condor_config...



Ok. Ignore my last post,  I see what you are saying now.  If you open condor_config in notepad,
it shows DOS style line endings on the ALLOW_READ and ALLOW_WRITE lines.

We should probably fix this, but It doesn't matter to HTCondor.  It will read the config files
just fine if you use DOS or UNIX or some mixture of line endings.

-tj


On 2/5/2014 2:24 PM, John (TJ) Knoeller wrote:
The problem appears to be that the installer isn't substituting the ALLOW_READ & ALLOW_WRITE lines
in the generic config but is inserting your config at the start of the line instead.
( HTCondor on Windows doesn't care if you use DOS or UNIX style line endings in your config files. )

There is some harm here, but maybe not that serious.  HTCondor config files don't recognize #
as a comment in the middle of the line. you end up with an ALLOW_READ list containing
215.145.0.0/16#ALLOW_READ
=
*.your.domain
*.cs.wisc.edu

I'm pretty sure that 215.145.0.0/16#ALLOW_READ behaves the same as 215.145.0.0/16, so this
bug is going to add bogus things to your allow list, but it won't prevent HTCondor from running.

This is definitely a bug in the MSI installer.  I have added a ticket to a bug tracking system for this
https://htcondor-wiki.cs.wisc.edu/index.cgi/tktview?tn=420

-tj

On 2/4/2014 4:07 AM, Stub wrote:
Hi,

I do the unattended install, according to the HTCondor manual; something like this:

set MSI="condor-8.0.5-212140-Windows-x86.msi"
set ARGS=
set ARGS=NEWPOOL="N"
set ARGS=%ARGS% POOLNAME="Library"
set ARGS=%ARGS% RUNJOBS="C"
set ARGS=%ARGS% VACATEJOBS="Y"
set ARGS=%ARGS% SUBMITJOBS="N"
set ARGS=%ARGS% CONDOREMAIL=""
set ARGS=%ARGS% SMTPSERVER=""
set ARGS=%ARGS% HOSTALLOWREAD="215.145.0.0/16"
set ARGS=%ARGS% HOSTALLOWWRITE="215.145.0.0/16"
.....[etc. etc.]

msiexec /qn /norestart /l*v condor-install-log.txt /i %MSI% %ARGS%


Then I see in the file C:\condor\condor_config  things like this:

ALLOW_READ=215.145.0.0/16#ALLOW_READ = *.your.domain, *.cs.wisc.edu

and

ALLOW_WRITE=215.145.0.0/16#ALLOW_WRITE = *.your.domain, your-friend's-machine.other.domain


I guess there is a wrong conversion between DOS and Unix line termination.

Can this have any nasty side-effects?


R.L.


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



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