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

Re: [Condor-users] Dynamic file system domain



On Mar 16, 2012, at 3:00 PM, Todd Tannenbaum wrote:

> On 3/16/2012 11:27 AM, Ben Cotton wrote:
>> On Thu, Mar 15, 2012 at 3:37 PM, Sebastian Herbert
>> <herbert@xxxxxxxxxxxxx>  wrote:
>> 
>>> Is it possible to use any of these to have a single expression for
>>> FILESYSTEM_DOMAIN that would give the correct answer for all of our hosts? I
>>> wasn't able to find anything promising in my searching.
>>> 
>> Would something like
>> 
>> FILESYSTEM_DOMAIN = ifthenelse( regexp("substringofhostname",
>> FULL_HOSTNAME), fsdomain1, fsdomain2 )
>> 
>> work for you?
>> 
> 
> I don't think the above will work - you can use classad expressions in the condor_config file wherever you would normally use an integer, bool, or float literal, but necessarily for strings.
> 
> Unfortunately I don't have any bright ideas either for how to accomplish the above :(, other than improving this situation in the code for a future release...
> 
> Todd

Yup, it looks like this just sets FILESYSTEM_DOMAIN to the string " ifthenelse( regexp("substringofhostname", FULL_HOSTNAME), fsdomain1, fsdomain2 ). We will just deal with having two separate config files for now and see if this ever changes in a  future release. Thanks, guys.