Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error is produced when trying to run 'salt-call --local state.sls example' using 0.16.2 on CentOS 6.4 x86_64. #6502

Closed
jesseconnr opened this issue Aug 2, 2013 · 4 comments · Fixed by #6506
Assignees
Labels
Bug broken, incorrect, or confusing behavior Regression The issue is a bug that breaks functionality known to work in previous releases.
Milestone

Comments

@jesseconnr
Copy link

Bug Desc:

An error is produced when trying to run 'salt-call --local state.sls example' using 0.16.2 on CentOS 6.4 x86_64.

VMWare Workstation 9.0.2
Operating System: CentOS 6.4 x86_64
Salt Version 0.16.2 and the latest development
Versions affected: 0.16.2 and development repo

Steps to repeat:

  1. Fresh install of CentOS 6.4 x86_64
  2. Run all updates via yum update.
  3. Install salt 0.16.2 -> curl -L http://bootstrap.saltstack.org | sh -s -- git v0.16.2
  4. Create any example salt state in /srv/salt/example.sls for testing.
  5. Try to run the state you created with -> salt-call --local state.sls example
  6. The error below will be present. The same example runs fine using 0.16.0.

The Error:

[root@salty-centos ~]# salt-call --local state.sls lnpp
Traceback (most recent call last):
File "/usr/bin/salt-call", line 11, in
salt_call()
File "/usr/lib/python2.6/site-packages/salt/scripts.py", line 76, in salt_call
client.run()
File "/usr/lib/python2.6/site-packages/salt/cli/init.py", line 300, in run
caller.run()
File "/usr/lib/python2.6/site-packages/salt/cli/caller.py", line 133, in run
ret = self.call()
File "/usr/lib/python2.6/site-packages/salt/cli/caller.py", line 68, in call
with salt.utils.fopen(proc_fn, 'w+') as fp_:
File "/usr/lib/python2.6/site-packages/salt/utils/init.py", line 849, in fopen
fhandle = open(_args, *_kwargs)
IOError: [Errno 2] No such file or directory: '/var/cache/salt/minion/proc/20130802092631486864'

Latest Stable Versions Report: (error present on this version)
Installed with - curl -L http://bootstrap.saltstack.org | sh -s -- git v0.16.2
Salt: 0.16.2
Python: 2.6.6 (r266:84292, Jul 10 2013, 22:48:45)
Jinja2: unknown
M2Crypto: 0.20.2
msgpack-python: 0.1.13
msgpack-pure: Not Installed
pycrypto: 2.0.1
PyYAML: 3.10
PyZMQ: 2.2.0.1
ZMQ: 3.2.3

Development Versions Report: (error present on this version)
Installed with - curl -L http://bootstrap.saltstack.org | sh -s -- git develop
Salt: 0.16.0-1669-g2824746
Python: 2.6.6 (r266:84292, Jul 10 2013, 22:48:45)
Jinja2: unknown
M2Crypto: 0.20.2
msgpack-python: 0.1.13
msgpack-pure: Not Installed
pycrypto: 2.0.1
PyYAML: 3.10
PyZMQ: 2.2.0.1
ZMQ: 3.2.3

0.16.1 Versions Report: (no error on this version)
Installed with - curl -L http://bootstrap.saltstack.org | sh -s -- git v0.16.1
Salt: 0.16.1
Python: 2.6.6 (r266:84292, Jul 10 2013, 22:48:45)
Jinja2: unknown
M2Crypto: 0.20.2
msgpack-python: 0.1.13
msgpack-pure: Not Installed
pycrypto: 2.0.1
PyYAML: 3.10
PyZMQ: 2.2.0.1
ZMQ: 3.2.3

0.16.0 Versions Report: (no error on this version)
Installed with - curl -L http://bootstrap.saltstack.org | sh -s -- git v0.16.0
Salt: 0.16.0
Python: 2.6.6 (r266:84292, Jul 10 2013, 22:48:45)
Jinja2: unknown
M2Crypto: 0.20.2
msgpack-python: 0.1.13
msgpack-pure: Not Installed
pycrypto: 2.0.1
PyYAML: 3.10
PyZMQ: 2.2.0.1
ZMQ: 3.2.3

@jesseconnr
Copy link
Author

Updated affected versions. The issue is not present in 0.16.0 or 0.16.1.

@ghost ghost assigned terminalmage Aug 2, 2013
@terminalmage
Copy link
Contributor

Testing now.

@thatch45 could this be related to #6468 ?

@terminalmage
Copy link
Contributor

I am unable to reproduce. Can you post the SLS that triggered this?

@jesseconnr
Copy link
Author

@terminalmage I was able to reproduce it with these files.

salt-call --local state.sls example

https://gist.github.com/JesseC-/d7bfb66a159d9b28eec7

I tested a little further. It affects all commands for me.

This returns the same error: salt-call --local status.cpuinfo

terminalmage added a commit to terminalmage/salt that referenced this issue Aug 2, 2013
This fixes saltstack#6502 by reverting 83c2e61 and removing the lines in
salt.minion.get_proc_dir that clear out the proc dir, since this is not
the desired behavior.
terminalmage added a commit that referenced this issue Aug 6, 2013
This fixes #6502 by reverting 83c2e61 and removing the lines in
salt.minion.get_proc_dir that clear out the proc dir, since this is not
the desired behavior.
techhat pushed a commit to techhat/salt-bootstrap that referenced this issue Feb 12, 2014
This workaround will create the cachedir that 0.16.2 fails to (see
saltstack/salt#6502)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Regression The issue is a bug that breaks functionality known to work in previous releases.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants