dellcloudedge/crowbar — Issue #21: chef run fails on crowbar instance
Author: ehaselwanter
Created: 2011-10-21 07:56:40+00:00
State: open

seeing this the chef log

/var/log/chef/client.log

```[Fri, 21 Oct 2011 02:39:00 -0500] INFO: bash[Add crowbar chef client] sh("bash" "/tmp/chef-script20111021-1661-u3obn5-0")
[Fri, 21 Oct 2011 02:39:00 -0500] ERROR: bash[Add crowbar chef client] (crowbar::default line 110) has had an error
[Fri, 21 Oct 2011 02:39:00 -0500] ERROR: bash[Add crowbar chef client] (/var/cache/chef/cookbooks/crowbar/recipes/default.rb:110:in `from_file') had an error:
bash[Add crowbar chef client] (crowbar::default line 110) had an error: Expected process to exit with [0], but received '100'
---- Begin output of "bash" "/tmp/chef-script20111021-1661-u3obn5-0" ----
STDOUT: ERROR: You authenticated successfully to http://localhost:4000 as chef-validator but you are not authorized for this action
Response: You are not allowed to take this action.
STDERR:
---- End output of "bash" "/tmp/chef-script20111021-1661-u3obn5-0" ----
Ran "bash" "/tmp/chef-script20111021-1661-u3obn5-0" returned 100
/usr/lib/ruby/vendor_ruby/chef/shell_out.rb:207:in `invalid!'
/usr/lib/ruby/vendor_ruby/chef/shell_out.rb:193:in `error!'
/
```

chef-client --once as root runs successful