| Cumin version | 3.0.1 |
| Python version | 3.6.1 |
| Operating System | OSX |
Issue:
Cumin yields a No such file or directory: '' when the log_file directive in config.yaml points to a file without a directory
Configuration and aliases (REMOVE ANY PRIVATE INFORMATION):
transport: clustershell # Default transport to use, can be overriden by command line argument
log_file: cumin.log # Absolute or relative path for the log file
# If set, use this backend to parse the query first and only if it fails, fallback to parse it with the general
# multi-query grammar [optional]
default_backend: direct
# Environment variables that will be defined [optional]
environment:
ENV_VARIABLE: env_value
# Backend-specific configurations [optional]
puppetdb:
host: redacted
port: 1234
api_version: 4 # Supported versions are v3 and v4. If not specified, v4 will be used.
urllib3_disable_warnings: # List of Python urllib3 exceptions to ignore
- SubjectAltNameWarning
knownhosts:
files: # List of SSH known hosts files to load
- /path/to/known_hosts
# Transport-specific configuration
clustershell:
ssh_options: # SSH options passed to ClusterShell [optional]
- 'some_option'
fanout: 16 # Max size of the sliding window of concurrent workers active at any given time [optional, default: 64]Steps to reproduce:
- Copy/paste the config.yaml file from the documentation
- Change logs/cumin.log to cumin.log
- Run cumin with any option:
$ sudo cumin -c x.yaml 'A: x' x Caught FileNotFoundError exception: [Errno 2] No such file or directory: ''