Skip to content

Relative log folder override stopped working as expected for proxies (possibly for all minions) #38663

Closed

Description

@alexbleotu

Description of Issue/Question

My override in the proxy's config file is

log_dir: var/log

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.

Activity

  1. Ch3LL commented on Jan 11, 2017

    @Ch3LL
    Contributor

    @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.

    1. salt-proxy -ldebug --proxyid ec2 (start proxy minion)
    2. see where its logging

    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?

  2. added
    cannot-reproduce
    needs-more-info
    on Jan 11, 2017
  3. added this to the Blocked milestone on Jan 11, 2017
  4. alexbleotu commented on Jan 11, 2017

    @alexbleotu
    ContributorAuthor

    With the log_dir option in the configuration file you can override the log location. It wouldn't be in /var/log location anymore.

  5. alexbleotu commented on Jan 12, 2017

    @alexbleotu
    ContributorAuthor

    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.

  6. self-assigned this
    on Jan 20, 2017
  7. modified the milestones: Nitrogen 3, Blocked on Jan 20, 2017
  8. added
    bug
    fixed-pls-verify
    and removed
    cannot-reproduce
    needs-more-info
    on Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugfixed-pls-verify

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions