-
Notifications
You must be signed in to change notification settings - Fork 583
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
Document the newly introduced need to specify 'sudo: true' #269
Comments
Good timing, I'm planning on attacking the README today to get it in shape & up to date. May I ask where did you have to add Thanks! |
Sure, I added it under the suite name (not sure if that's the right place or not!):
Driver is vagrant w/ chef-zero. Running it on OSX 10.9. For what it's worth, it appears to function normally when using chef-solo (without |
Think you could snag the output of a run with chef_zero and the |
ugh.. now i'm running into problems with version constraint problems in berkshelf 2.x.
Sigh, can't seem to get past this right now. I'll have to look at it again on Monday. Another issue I've hit a few times is when the converge fails, TK continues on and attempts to run the tests:
|
Looks to me like you might have forgotten the |
You could also try blowing away your |
Berksfile:
Tried nuking the Berksfile.lock and did a fresh berks install.. still came up with unsolvable versions. |
If |
Sorry, forgot to say that berks install succeeds just fine |
Do you want me to open a different issue so this doesn't muddy the original issue here? :) |
In that case, I'm going to pull in bigger guns, @sethvargo, thoughts? |
@eklein Can you please post your This very well may be a Berkshelf issue, but I need to figure out exactly what's going on to give you a fix 😄 |
not sure if it's the same issue (i'm not using chef-zero), but i'm running into a similar problem with serverspec checking service status... i've tried popping |
Hi all, It's finally making some sense this morning--seems as though some platforms (CentOS being one of them) may want to do certain Serverspec checks as root. Either because of the path to /sbin/service or other reasons (not too sure at the moment). Having said that, as of f002ae7 that leaves Test Kitchen less than optimal in the default setup especially when using Busser/Serverspec/CentOS. So, I'm going to revert this commit so that Busser's behavior is to default For anyone that needs this explicitly set, you can drop in ---
driver: vagrant
provisioner: chef_solo
busser:
sudo: true
platforms:
- name: centos-6.4
busser:
sudo: true
suites:
- name: server
busser:
sudo:true |
@fnichol Yes, the lack of /sbin in the path (e.g. service, chkconfig) was one problem we hit without sudo. Other sudo: false serverspec issues include read access to files, iptable rules, selinux settings, etc. I don't think that defaulting sudo to false is bad as long as the documentation shows how to configure it. |
@bdupras that's a good takeaway: in either case it needs some documentation. If you ever get curious what the default/set value of this is for your instance, give |
Just shipping 1.1.0 which updates this default, enjoy! |
Or "kitchen diganose" |
@juliandunn that's going to take a while to live down 😄 |
thanks for this guys.. was having a very similar issue and even though the correct solution was this one, setting sudo: false also helped to verify the issue... |
This broke for me the first time I tried to run test-kitchen and only figured it out because I've been watching the commits.
I can submit a pull request, but I'm not sure if you're planning on doing a larger refactor of the readme.
The text was updated successfully, but these errors were encountered: