-
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
TemplateNotFound: salt/formulas.jinja when running salt-ssh #21370
Comments
@LYY Have you been able to get this working via a regular salt command (instead of using salt-ssh)? I suspect this might be a problem with the formula itself. |
@rallytime I'm a beginner of salt user, I really don't know how to use this formula via a regular salt command. If you can give me some help, I think I can give more info. |
@LYY Welcome! Now that I think about it, I am not sure if I was asking a useful question. At a glance from the info you've provided here, it looks like you have everything set up correctly. ping @nmadhok - I haven't used this formula before. Have you seen this particular error? I can try and reproduce this tomorrow. |
@rallytime I haven't come across this error in tests before. Seeing this for the first time. I will have to test this using salt-ssh since I've never tested this formula using salt-ssh Also, It's probably not able to find the path to the jinja template. @LYY make sure that you have cloned the salt-formula and have specified the correct path to the jinja template in your state file. BTW, you can use the bootstrap script to install salt-minion on the servers using salt-ssh. |
@nmadhok Thank you very much! |
@rallytime We're getting the same thing over here: saltstack-formulas/mysql-formula#92 where @ogabrielsantos has completed some additional testing for us. If you want to take a look at that there is additional information that could help resolve this. |
Thanks for the updates everyone. I've edited the labels so that we'll hopefully get some more eyes on this one. @basepi FYI. |
Any files required by jinja templating must be synced down as |
Is this supposed to work without "extra_filerefs" only in certain scenarios? |
Basically, the only refs we find are references to |
@basepi I think this would be something worth investigating as files that end in
Seems both unnecessary and confusing to have to add that especially for people who may just be testing out Salt via salt-ssh and a formula. |
I can't reproduce the same issue with masterless / master-slave operation. Currently only salt-ssh has had this
|
Right. This is not a problem with normal salt, because minions can request new files at any time. With salt-ssh, however, we have to anticipate all files that will be needed before sending those files to the minion to be evaluated. It has nothing to do with file extension. Rather, the master does a best effort job of finding file references to send down so the minion will have a complete picture when it runs the states. That said, if I remember correctly, states are compiled down to low data master-side for salt-ssh, so any references in the jinja should be incorporated before the files are sent down to the minion. The only time you should have to use the extra filerefs is for templates and the like, unless I'm misremembering. |
(I know the above conflicts with what I said before, I'm trying to resolve that discrepancy now, going through the code) |
Awesome thanks for taking a look! |
Came across this whilst having the same issue. For clarity, if you're encountering this issue you should run salt-ssh like so:
|
Hello, Is there any progress on this issue? |
Without using |
Does anyone have an update on this? I looked through the release notes of 3005.1 and didn't see any mention of this issue unless I missed it. Using Xoil's provided example, I can make single states work now: I cannot seem to make a complete state.apply (highstate) for with salt-ssh. The master is still running 3004.2 |
Thanks a lot, I will use that to work around the issue of include in |
Caching the jinja include with a `file.cached` workaround the issue as explained on the tracker: saltstack/salt#21370 (comment)
You can find an example of how I use |
To me, using
Does someone work on this |
I think this has been fixed here: #63184 |
I used salt-formula to install salt-minion on other ubuntu 14.04 servers.
master file_roots config:
version:
command:
error:
The text was updated successfully, but these errors were encountered: