saltstack/salt — Issue #490: salt-call -g without root gives Traceback
Author: cedwards
Created: 2012-01-11 16:51:36+00:00
State: open

The output of 'salt-call -g' below gives an ugly Traceback. Also, why does grains require root? I don't see anything in the output that would require elevated privs to gather..

[cedwards@claire ~]$ salt --version
salt 0.9.5.pre
[cedwards@claire ~]$ uname -a
Linux claire 3.1.8-1-ARCH #1 SMP PREEMPT Sat Jan 7 08:59:43 CET 2012 x86_64 Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz GenuineIntel GNU/Linux
[cedwards@claire ~]$
[cedwards@claire ~]$ salt-call -g
Traceback (most recent call last):
File "/usr/bin/salt-call", line 21, in
main()
File "/usr/bin/salt-call", line 16, in main
client = salt.cli.SaltCall()
File "/usr/lib/python2.7/site-packages/salt/cli/__init__.py", line 529, in __init__
self.opts = self.__parse()
File "/usr/lib/python2.7/site-packages/salt/cli/__init__.py", line 617, in __parse
os.path.dirname(opts['log_file']),
File "/usr/lib/python2.7/site-packages/salt/__init__.py", line 33, in verify_env
os.chmod(dir_, 448)
OSError: [Errno 1] Operation not permitted: '/etc/salt/pki'