-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
KeyError: 'file.replace' ('file.blockreplace') on Salt: 2014.1.0 with Linux Master and Windows Minion #11471
Comments
Looks like the |
I just tested this on the latest develop and file.replace is working based on your example above. @basepi will cherry pick this so it should be in 2014.1.2 |
@UtahDave, thanks! |
@UtahDave, I have exactly the same issue with
Please re-open the issue. |
ok, @uvsmtid thanks for the heads up! I'll reopen this and see if I can get a fix in for the next release. |
@uvsmtid hey, can you provide an example of an sls file using file.blockreplace that causes this error? It's working for me on develop. I'll test on 2014.1.5 now |
This SLS with
If saved as
Double-confirm version:
|
Thanks for the quick reply! I just confirmed that blockreplace has not been added to win_file.py in the 2014.1 branch, but it does exist in the develop branch. This may mean we'll have to wait for the next full release for this feature. I'll see if this is something we can back port. |
I suspect this has been addressed on the 2014.7 branch. Has anyone been able to try this on 2014.7.0? |
Doesn't work with Salt master running on Salt: 2014.7.0rc2. Identical issue as above for @uvsmtid. My state definition is
|
I've just tested all examples with The only issues I found are related to file endings on windows Functions themselves are invoked and this issue can be closed. @soodr, to make your example work, I had to fix indents in YAML (i.e. look at you |
@uvsmtid Just to confirm, but in your testing of the 2014.7.0 windows packages, is this fixed in 2014.7.0 or is this still an issue? @soodr Definitely change your |
@rallytime, it's all fixed. Windows package Only line endings as specified in my previous comment shows odd behaviours (i.e. second run of the same *replace state updates some white spaces) - but those are rather unrelated and more general issues. I would close this (11471) issue. |
I was pointing to the missing function in salt dict
Minion setup :
|
Upgraded salt-minion to make it work. However the versions-report stack-traces. The minion is running on a Windows Server 2008 R2 DataCenter VM.
|
@soodr Hrm. That looks like a different issue entirely. Can you file a new bug report please? |
Thanks for opening a new issue! We'll take a look at that one. I'm going to close this one for now since it's reported as being fixed. If this pops up again, leave a comment and we will definitely reopen and take another look. |
I'm consistently reproducing the following issue on multiple hosts (different masters and minions, but the same software versions and Salt states).
Problem
Create
/srv/salt/replace_a_file.sls
state file (on Linux Salt master - see versions below) with the following content:Create
C:\deleteme\qwer.txt
sample file (on Windows Salt minion - see versions below) with any random text content.Push the state from the master:
Notes
file.replace
function successfully executed from Linux Master on Windows Minion with Salt version 2014.1.0. Please feedback anyone if there are known examples.__salt__ is not defined
" problem is completely unrelated here because it appears intermittently and restarting Windows minion usually helps to recover).Versions
Master: Linux F20 64 bit
Minion: Windows 7 64 bit
The text was updated successfully, but these errors were encountered: