You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Relative log folder override stopped working as expected for proxies (possibly for all minions) #38663
Previously the log file was (as expected): ${root_folder}/var/log/salt/proxy
It switched to being: ${root_folder}/ var/tmp/var/log/salt/proxy, both in the develop branch and in the 2016.3 branch.
It's worth mentioning that nowhere in my config do I have the var/tmp override, so I think it's a bug.
@alexbleotu i'm having a hard time replicating this. Here is my test case maybe you can correct me and i'm just approaching it or understanding it incorrectly.
Everytime its always located in /var/log/salt/proxy even if i set your log_dir setting you have or not in versions 2015.8.5, 2016.3.4 adn 2016.11.1. Can you correct my test case or include more information?
I did a bit more digging and it was because I recently added default path overrides by creating a salt._syspaths module (because of a test on develop that started testing if it can create folders in the default locations, so I needed to override the default locations).
This exposed a bug in config/__init__.py, prepend_root_dir in which it doesn't correctly strip out the default salt.syspaths.ROOT_DIR which had been prependend automatically in the salt.syspaths module. I will submit a fix shortly.
Activity
Ch3LL commentedon Jan 11, 2017
@alexbleotu i'm having a hard time replicating this. Here is my test case maybe you can correct me and i'm just approaching it or understanding it incorrectly.
salt-proxy -ldebug --proxyid ec2(start proxy minion)Everytime its always located in /var/log/salt/proxy even if i set your log_dir setting you have or not in versions 2015.8.5, 2016.3.4 adn 2016.11.1. Can you correct my test case or include more information?
alexbleotu commentedon Jan 11, 2017
With the log_dir option in the configuration file you can override the log location. It wouldn't be in
/var/loglocation anymore.alexbleotu commentedon Jan 12, 2017
I did a bit more digging and it was because I recently added default path overrides by creating a
salt._syspathsmodule (because of a test on develop that started testing if it can create folders in the default locations, so I needed to override the default locations).This exposed a bug in
config/__init__.py, prepend_root_dirin which it doesn't correctly strip out the default salt.syspaths.ROOT_DIR which had been prependend automatically in thesalt.syspathsmodule. I will submit a fix shortly.