Repository navigation
Closed
Labels
P2Priority 2PackagingRelated to packaging of Salt, not Salt's support for package management.PlatformRelates to OS, containers, platform-based utilities like FS, system based appsbugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description
I just installed salt v2015.8.0 from the rpm hosted at https://repo.saltstack.com/yum, and it seems it's not creating /var/log/salt before attempting to write to the minion log. This results in the warning message, "[WARNING ] Failed to open log file, do you have permission to write to /var/log/salt/minion?". I uninstalled and reinstalled, and got the same behavior. If I manually create the directory, the message goes away and the minion log is created.
I removed v2015.8.0 and installed v2015.5.3 from epel, and it seems to create the directory the first time it attempts to write to the minion log.
# salt-call --local grains.get os
[WARNING ] Failed to open log file, do you have permission to write to /var/log/salt/minion?
local:
CentOS
# salt-call --local --versions
Salt Version:
Salt: 2015.8.0
Dependency Versions:
Jinja2: 2.2.1
M2Crypto: Not Installed
Mako: Not Installed
PyYAML: 3.10
PyZMQ: 14.5.0
Python: 2.6.6 (r266:84292, Jul 23 2015, 15:22:56)
RAET: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
libnacl: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pygit2: Not Installed
python-gnupg: Not Installed
smmap: Not Installed
timelib: Not Installed
System Versions:
dist: centos 6.7 Final
machine: x86_64
release: 2.6.32-573.1.1.el6.x86_64
system: CentOS 6.7 Final
Metadata
Metadata
Assignees
Labels
P2Priority 2PackagingRelated to packaging of Salt, not Salt's support for package management.PlatformRelates to OS, containers, platform-based utilities like FS, system based appsbugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Activity
ssgward commentedon Sep 11, 2015
@lorengordon - if you do a sudo salt-call do you get the same results?
lorengordon commentedon Sep 11, 2015
Yes. I first saw the issue executing the command as a non-root user with sudo. I then switched to root and ran the command again, but the behavior was the same.
jfindlay commentedon Sep 11, 2015
@lorengordon, thanks for the report. I have tried to reproduce this on a linode CentOS 6 VM:
jfindlay commentedon Sep 11, 2015
@lorengordon, is it possible for you to try with a new, clean VM? Thanks.
lorengordon commentedon Sep 11, 2015
This was a clean VM, but yes, I'll try a few AMIs in AWS to see what happens and try to figure out a pattern.
ssgward commentedon Sep 11, 2015
@lorengordon - another thing to check for us: what are your permissions on both /var/log and /var/log/salt
Second question is SELinux installed?
lorengordon commentedon Sep 11, 2015
Permissions were fine, I was otherwise able to create the directory with no problem. And I executed the install as root and ran salt-call as root. This was a fresh install and SELinux had not yet been configured in any way. And as I mentioned 2015.5.3 had no problem on the same system. But it was a custom AMI we create ourselves and we've run into oddball problems with custom AMIs before, so I will gladly try a few others that are more vanilla and report back.
lorengordon commentedon Sep 11, 2015
Oh, rereading the question, /var/log/salt did not exist until I created it manually. That was the problem that generated the warning message. Now, why didn't the directory exist or why didn't it get created on first access? That I don't know.
lorengordon commentedon Sep 13, 2015
Just tested with a generic Amazon Linux AMI (ami-0d4cfd66) and got the same behavior I reported.
62 remaining items
dmurphy18 commentedon Aug 12, 2016
@lorengordon @ghost @jmo-learnosity I want to close this issue since testing with the latest release 2016.3.2 the issues with /var/log/salt/minion are resolved. Let me know if there are any objections to closing this issue.
lorengordon commentedon Aug 12, 2016
@dmurphy18, ok, I'll test 2016.3.2 with this in mind shortly.
lorengordon commentedon Aug 12, 2016
Yep, looks good now. /var/log/salt is created, and the error message is no longer reported. Closing, thanks!