Comments (8)
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?
from chef-zero.
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.
from chef-zero.
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.
If I have a ./roles/foop.json file, it gets uploaded, the run_list expands, chef-zero converges successfully.
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.
from chef-zero.
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).
from chef-zero.
<-- rabbit holed yak shaver. :-)
from chef-zero.
I ran into this too, @jkeiser is this feature in progress or should we familiarize ourselves with the code and look into fixing it?
from chef-zero.
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
from chef-zero.
I'm going to close this, since the issue actually lies in knife-essentials. Please track jkeiser/knife-essentials#67 for more information.
from chef-zero.
Related Issues (20)
- kitchen and chef-zero 404ing on data bag HOT 3
- check if a data_bag exists HOT 1
- chef-zero should make data available on save HOT 4
- Exception when file has #2 at the end of name HOT 1
- Chef zero outputs too much information for info log level HOT 3
- Chef encountered an error attempting to load the node data HOT 2
- Should do a release HOT 7
- Uploading cookbooks to chef-zero using berks often crashes when Request timeout is 300 HOT 3
- Improper require of Hashie causing error (NameError: uninitialized constant Hashie::Extensions::Array) HOT 5
- Unable to connect to chef-zero HOT 1
- Chef 13 vs Chef 12 ip address resolution HOT 1
- Completely arbitrary ruby version requirement HOT 2
- Need a mode of operation where chef-zero runs in-memory but populates from the disk cache
- Do not format the node definition JSON file after converging HOT 1
- Could chef-zero please support fetching inspec profiles?
- Re-raising exception: URI::InvalidURIError - bad URI(is not URI?)
- missing webrick makes chef-zero fail
- Add unique email contraint while creating user
- Configuring the chef-zero-automate reporter for the compliance phase 404s in TK against chef-zero
- Policy Groups in the policy file details (chef-zero) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chef-zero.