-
Notifications
You must be signed in to change notification settings - Fork 55
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
node has no roles, run list #131
Comments
Did you actually set any roles, etc during your cuke run? Where is that output? |
Yes. Here is my Labfile: #!/usr/bin/env ruby
#^syntax detection
ecosystem "verba-ecosystem" do
container "verba-web" do
distro "ubuntu"
release "lucid"
persist true
ip "192.168.0.1"
mac "00:00:5e:35:ea:d5"
chef_client ({
:environment => "test",
:run_list => ["role[verba_compete_web]"]
})
end
end The container's /etc/chef/attributes.json picks up the role: root@verba-web:~# cat /etc/chef/attributes.json
{"environment":"test","run_list":["role[verba_compete_web]"]} Here's the cuke run:
Please let me know if there's anything else I can do to help resolve this issue. Does this not happen with you and your setup? Do you get nodes populated with run lists and roles in your vagrant chef-server? |
Works for me: [{~/Github/odi-chef} <2.0.0@cc3> (master) ] ➔ cucumber
Code:
* features/support/env.rb
* features/support/cc-hooks.rb
>>> cucumber-chef v3.0.8
>>> Pushing chef-repo environments to the test lab completed in 1.4136 seconds.
<snip snip snip>
Scenario: Ruby 1.9.3 is installed # features/quirkafleeg/webnode.feature:66
* I run "su - quirkafleeg -c 'ruby -v'" # cucumber-chef-3.0.8/lib/cucumber/chef/steps/ssh_steps.rb:62
* I should see "1.9.3" in the output # cucumber-chef-3.0.8/lib/cucumber/chef/steps/ssh_steps.rb:68
9 scenarios (9 passed)
37 steps (37 passed)
0m3.031s
[{~/Github/odi-chef} <2.0.0@cc3> (master) ] ➔ cc-knife node show web-quirkafleeg-01
cc-knife v3.0.8
Node Name: web-quirkafleeg-01
Environment: cucumber
FQDN: web-quirkafleeg-01.test-lab
IP: 192.168.99.30
Run List: role[quirkafleeg], role[base], role[chef-client], role[webnode]
Roles: quirkafleeg, base, chef-client, webnode
Recipes: build-essential, git, postfix, ntp, odi-users, mysql::client, dictionary, nodejs::install_from_package, chef-client::delete_validation, chef-client::config, chef-client::service, odi-rvm, envbuilder, quirkafleeg-deployment
Platform: ubuntu 12.04
Tags:
[{~/Github/odi-chef} <2.0.0@cc3> (master) ] ➔ Not sure what I'd be doing differently to you. S |
I figured it out - there were unresolved errors in my runs, since I'm still developing the cookbooks for the node. I think I'll enter a feature request for tests to fail if the provisioning fails. |
After having a successful run, I wanted to see the chef data on the container. Should it have data? I assume so. Without this I can't test deploying to the container with cc-knife search node :/
The text was updated successfully, but these errors were encountered: