saltstack / saltstack/salt

[BUG] Salt-Cloud Doesn't Respect `--log-file`

Open
#65,362 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-triage Salt-Cloud
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

I was following this doc

My OS is macOS 13

(salt) my_username@some-machine0 salt % pyenv exec salt-cloud --log-file=/Users/my_username/salt/local/var/log/salt/cloud --config-dir=/Users/my_username/salt/local/etc/salt
/Users/my_username/salt/salt/utils/cloud.py:82: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources  # pylint: disable=3rd-party-module-not-gated
Failed to create directory path "/etc/salt" - [Errno 13] Permission denied: '/etc/salt'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the contributing documentation linked in the issue and reproduce the shown salt-cloud command on macOS. Trace why the supplied --config-dir and --log-file still lead to an attempt to create /etc/salt. Done means the command uses the requested paths without requiring permission to modify /etc/salt.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, python
Domain
cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.