There has not been a change to the order of precedence,
condor_config.local has always been read both before AND AFTER the config directory. It is read after the config directory when LOCAL_CONFIG_FILE resolves to something different after the config directory has been parsed. The default value for LOCAL_CONFIG_FILE is LOCAL_CONFIG_FILE = $(LOCAL_DIR)/condor_config.local which is specified in the default condor_config. The default value of $(LOCAL_DIR) is $(TILDE) it used to be set to $(TILDE) explicitly in condor_config, but as of 8.1.6 it is a compile time default. This is the biggest change between 8.0 and 8.2, the base condor_config was stripped down to the absolute minimum and explict setting of LOCAL_DIR is one of the things removed from this file. If condor_config.local is being parsed after the config directory, it is most likely because the config directory has either changed LOCAL_CONFIG_FILE, set LOCAL_DIR, or set TILDE. try running this command to see what is being set and where. condor_config_val -verbose -dump 'LOCAL_(CONFIG|DIR)' I suspect you will see that LOCAL_CONFIG_FILE refers to $(LOCAL_DIR), but that LOCAL_DIR isn't set in condor_config, but later - so the local config file can't be found until after the config directory has been read, and therefore it is being parsed last. -tj On 8/7/2014 12:52 PM, Dimitri Maziuk
wrote:
Hi all, quick question: the manual (http://research.cs.wisc.edu/htcondor/manual/v8.2/3_2Installation_Start.html#9997 - 3.2.2 - 7 - configuration files) says "Next, HTCondor tries to load the local configuration file(s). The only way to specify the local configuration file(s) is in the global configuration file, with the LOCAL_CONFIG_FILE macro. If that macro is not set, no local configuration file is used. This macro can be a list of files or a single file. If configured, HTCondor also uses the LOCAL_CONFIG_DIR setting get a directory where a list of configuration files is held. The files are searched for configuration settings." condor_config_val -dump says "Contributing configuration file(s): # /etc/condor/condor_config # /etc/condor/config.d/10_config.wrk # /etc/condor/config.d/20_config.cron # /etc/condor/condor_config.local" The order implied by the manual is /etc/condor/condor_config.local /etc/condor/config.d/* The order reported by condor_config_val is /etc/condor/config.d/* /etc/condor/condor_config.local So which is it? And is it stable or is it gonna change with the next update? I'd like to know who would override who. TIA |