[chef] Re: RE: Re: Chef-solo override-runlist


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: RE: Re: Chef-solo override-runlist
  • Date: Fri, 14 Jun 2013 08:40:15 -0700


On Thursday, June 6, 2013 at 8:28 AM, Daniel DeLeo wrote:


On Thursday, June 6, 2013 at 1:05 AM, Gibbons, Daniel (RBI-UK) wrote:

Hi,

 

I get the same result with version 11.4.4:

 

For some reason the –o parameter doesn’t work correctly.

 

C:\Projects\Dev Ops\Chef>chef-solo -c solo.rb -o "role[base]" -ldebug

Starting Chef Client, version 11.4.4←[0m

[2013-06-06T07:42:04+01:00] INFO: *** Chef 11.4.4 ***

[2013-06-06T07:43:06+01:00] DEBUG: Building node object for localhost

[2013-06-06T07:43:06+01:00] DEBUG: Extracting run list from JSON attributes provided on command line

[2013-06-06T07:43:06+01:00] DEBUG: Applying attributes from json file

[2013-06-06T07:43:06+01:00] DEBUG: Platform is windows version 6.1.7601

[2013-06-06T07:43:06+01:00] WARN: Run List override has been provided.

[2013-06-06T07:43:06+01:00] WARN: Original Run List: []

[2013-06-06T07:43:06+01:00] WARN: Overridden Run List: [recipe[roles]]

[2013-06-06T07:43:06+01:00] INFO: Run List is [recipe[roles]]

[2013-06-06T07:43:06+01:00] INFO: Run List expands to [roles]

[2013-06-06T07:43:06+01:00] INFO: Starting Chef Run for QHSW21813.b2b.regn.net

[2013-06-06T07:43:06+01:00] INFO: Running start handlers

[2013-06-06T07:43:06+01:00] INFO: Start handlers complete.

[2013-06-06T07:43:06+01:00] DEBUG: Checking for administrator privileges....

[2013-06-06T07:43:06+01:00] DEBUG: chef-client has administrator privileges on node QHSW21813.b2b.regn.net.

[2013-06-06T07:43:06+01:00] DEBUG: No chefignore file found at C:/Projects/Dev Ops/Chef/cookbooks/chefignore no files wi

ll be ignored

Compiling Cookbooks...←[0m

[2013-06-06T07:43:06+01:00] DEBUG: Re-raising exception: Chef::Exceptions::CookbookNotFound - Cookbook roles not found.

If you're loading roles from another cookbook, make sure you configure the dependency in your metadata

C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/cookbook/cookbook_collection.rb:38:in `block in i

nitialize'

 

Is this a bug?

 

Dan

 

I see you're on Windows, so I think it's somehow windows related. But definitely a bug. You should file a bug report on tickets.opscode.com
My colleagues did some investigation and it appears to somehow be related to mingw: http://tickets.opscode.com/browse/CHEF-4277

They found that doubling up on quotes seems to work around the issue: chef-solo -o '"role[foo]"'

And thanks for filing the bug report, by the way.

-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§