-
Notifications
You must be signed in to change notification settings - Fork 102
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
Not found returned for all roles #34
Comments
What is the chef_repo_path for that instance? Can you look in that directory and say whether the roles directory contains the json it is supposed to? |
Given a failed kitchen run, how do I find that out? This might be a test-kitchen issue, but I honestly have no clue. If I clone the chef-zero repo, drop ./roles/*rb in playground, start a zero instance and upload, knife role list returns them and knife role show returns the role. The zero provisioner says home is /tmp/kitchen-chef-zero and inspecting that directory, the roles do exist in the roles folder. Of course, after the fail, /var/folders/nf/zwnznxhj35n_143061ppg9rr0000gn/T/default-centos-64-sandbox-20130912-15374-1qapxn7 is gone so I can't see what it looked like at the time. |
So, through some tinkering, here's what I've found. If I have a ./roles/foop.rb file using the ruby dsl, it gets uploaded, but the chef-zero run fails with the error above. So, it appears in disk mode where we're not uploading things using knife to the in memory server, there must be some assumption that the role files are in json. I have to assume the same might be true for the environment files as well. |
Oh! .rb files are not supported in knife upload or chef-zero (I really need to lock that down some time). Only json. The exception is cookbooks, of course. Everything else has to be json. Sorry about that, supporting .rb is a non-trivial thing that I haven't had time to add (though thankfully, once it's added to knife upload, chef-zero gets it free). |
<-- rabbit holed yak shaver. :-) |
I ran into this too, @jkeiser is this feature in progress or should we familiarize ourselves with the code and look into fixing it? |
It's not in progress at the moment. The fix needs to be in knife-essentials (well, chef at this point since that's where knife upload lives). This issue has a bit more information: jkeiser/knife-essentials#67 |
I'm going to close this, since the issue actually lies in knife-essentials. Please track jkeiser/knife-essentials#67 for more information. |
Currently running the 1.5.5 gem, and my roles are uploaded, but when in my run_list, a 404 Not Found is always returned. I've also tried using roles without a - in the name, but this had no effect:
The text was updated successfully, but these errors were encountered: