Trying to get solo working and almost there


#1

I am trying to get chef solo going. I have set up a script to rsync
the files to the server and run chef solo but I get this error.

Starting Chef Run for ubuntuvm1
[Mon, 05 Dec 2011 22:36:20 +1300] WARN: Failed to read the private key
/etc/chef/client.pem: #<Errno::ENOENT: No such file or directory -
/etc/chef/client.pem>
[Mon, 05 Dec 2011 22:36:20 +1300] ERROR: Running exception handlers
[Mon, 05 Dec 2011 22:36:20 +1300] ERROR: Exception handlers complete
[Mon, 05 Dec 2011 22:36:20 +1300] FATAL: Stacktrace dumped to
/root/chef_solo/chef-stacktrace.out
[Mon, 05 Dec 2011 22:36:20 +1300] FATAL:
Chef::Exceptions::PrivateKeyMissing: I cannot read
/etc/chef/client.pem, which you told me to use to sign requests!

It’s happening when I attempt to use the users::sysadmins recipe.


#2

Looks like you are running chef-client rather than solo?

Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 E: adam@opscode.com

On Dec 5, 2011, at 1:47 AM, Tim Uckun wrote:

I am trying to get chef solo going. I have set up a script to rsync
the files to the server and run chef solo but I get this error.

Starting Chef Run for ubuntuvm1
[Mon, 05 Dec 2011 22:36:20 +1300] WARN: Failed to read the private key
/etc/chef/client.pem: #<Errno::ENOENT: No such file or directory -
/etc/chef/client.pem>
[Mon, 05 Dec 2011 22:36:20 +1300] ERROR: Running exception handlers
[Mon, 05 Dec 2011 22:36:20 +1300] ERROR: Exception handlers complete
[Mon, 05 Dec 2011 22:36:20 +1300] FATAL: Stacktrace dumped to
/root/chef_solo/chef-stacktrace.out
[Mon, 05 Dec 2011 22:36:20 +1300] FATAL:
Chef::Exceptions::PrivateKeyMissing: I cannot read
/etc/chef/client.pem, which you told me to use to sign requests!

It’s happening when I attempt to use the users::sysadmins recipe.


#3

On Monday, December 5, 2011 at 7:24 AM, Adam Jacob wrote:

Looks like you are running chef-client rather than solo?

Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 E: adam@opscode.com (mailto:adam@opscode.com)

On Dec 5, 2011, at 1:47 AM, Tim Uckun wrote:

I am trying to get chef solo going. I have set up a script to rsync
the files to the server and run chef solo but I get this error.

Starting Chef Run for ubuntuvm1
[Mon, 05 Dec 2011 22:36:20 +1300] WARN: Failed to read the private key
/etc/chef/client.pem: #<Errno::ENOENT: No such file or directory -
/etc/chef/client.pem>
[Mon, 05 Dec 2011 22:36:20 +1300] ERROR: Running exception handlers
[Mon, 05 Dec 2011 22:36:20 +1300] ERROR: Exception handlers complete
[Mon, 05 Dec 2011 22:36:20 +1300] FATAL: Stacktrace dumped to
/root/chef_solo/chef-stacktrace.out
[Mon, 05 Dec 2011 22:36:20 +1300] FATAL:
Chef::Exceptions::PrivateKeyMissing: I cannot read
/etc/chef/client.pem, which you told me to use to sign requests!

It’s happening when I attempt to use the users::sysadmins recipe.
That recipe is probably trying to load users from data bags.

There is data bag support for chef-solo in 0.10.6 which is still in the RC phase; you can get it with gem install chef --pre. I’m not sure exactly where chef-solo will be looking for the data bag items so you’ll have to play with it a bit.


Dan DeLeo


#4

Actually, data bag support for chef-solo was added with Chef 0.10.4
The user cookbook though uses search, which may be what triggers that
client.pem error.

If you want to use with chef-solo a cookbook that uses search, you
will need this lib:

Just add it to your deployed cookbooks and search will work.

Cheers
Miquel

2011/12/5 Daniel DeLeo dan@kallistec.com:

On Monday, December 5, 2011 at 7:24 AM, Adam Jacob wrote:

Looks like you are running chef-client rather than solo?

Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 E: adam@opscode.com (mailto:adam@opscode.com)

On Dec 5, 2011, at 1:47 AM, Tim Uckun wrote:

I am trying to get chef solo going. I have set up a script to rsync
the files to the server and run chef solo but I get this error.

Starting Chef Run for ubuntuvm1
[Mon, 05 Dec 2011 22:36:20 +1300] WARN: Failed to read the private key
/etc/chef/client.pem: #<Errno::ENOENT: No such file or directory -
/etc/chef/client.pem>
[Mon, 05 Dec 2011 22:36:20 +1300] ERROR: Running exception handlers
[Mon, 05 Dec 2011 22:36:20 +1300] ERROR: Exception handlers complete
[Mon, 05 Dec 2011 22:36:20 +1300] FATAL: Stacktrace dumped to
/root/chef_solo/chef-stacktrace.out
[Mon, 05 Dec 2011 22:36:20 +1300] FATAL:
Chef::Exceptions::PrivateKeyMissing: I cannot read
/etc/chef/client.pem, which you told me to use to sign requests!

It’s happening when I attempt to use the users::sysadmins recipe.
That recipe is probably trying to load users from data bags.

There is data bag support for chef-solo in 0.10.6 which is still in the RC phase; you can get it with gem install chef --pre. I’m not sure exactly where chef-solo will be looking for the data bag items so you’ll have to play with it a bit.


Dan DeLeo


#5

We should consider adding this functionality to core, eh?

Adam


Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 E: adam@opscode.com

On Dec 5, 2011, at 8:55 AM, Miquel Torres wrote:

Actually, data bag support for chef-solo was added with Chef 0.10.4
The user cookbook though uses search, which may be what triggers that
client.pem error.

If you want to use with chef-solo a cookbook that uses search, you
will need this lib:
https://github.com/edelight/chef-solo-search

Just add it to your deployed cookbooks and search will work.

Cheers
Miquel

2011/12/5 Daniel DeLeo dan@kallistec.com:

On Monday, December 5, 2011 at 7:24 AM, Adam Jacob wrote:

Looks like you are running chef-client rather than solo?

Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 E: adam@opscode.com (mailto:adam@opscode.com)

On Dec 5, 2011, at 1:47 AM, Tim Uckun wrote:

I am trying to get chef solo going. I have set up a script to rsync
the files to the server and run chef solo but I get this error.

Starting Chef Run for ubuntuvm1
[Mon, 05 Dec 2011 22:36:20 +1300] WARN: Failed to read the private key
/etc/chef/client.pem: #<Errno::ENOENT: No such file or directory -
/etc/chef/client.pem>
[Mon, 05 Dec 2011 22:36:20 +1300] ERROR: Running exception handlers
[Mon, 05 Dec 2011 22:36:20 +1300] ERROR: Exception handlers complete
[Mon, 05 Dec 2011 22:36:20 +1300] FATAL: Stacktrace dumped to
/root/chef_solo/chef-stacktrace.out
[Mon, 05 Dec 2011 22:36:20 +1300] FATAL:
Chef::Exceptions::PrivateKeyMissing: I cannot read
/etc/chef/client.pem, which you told me to use to sign requests!

It’s happening when I attempt to use the users::sysadmins recipe.
That recipe is probably trying to load users from data bags.

There is data bag support for chef-solo in 0.10.6 which is still in the RC phase; you can get it with gem install chef --pre. I’m not sure exactly where chef-solo will be looking for the data bag items so you’ll have to play with it a bit.


Dan DeLeo


#6

Makes sense, yes.
How would you like us to contribute it?

2011/12/5 Adam Jacob adam@opscode.com:

We should consider adding this functionality to core, eh?

Adam


Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 E: adam@opscode.com

On Dec 5, 2011, at 8:55 AM, Miquel Torres wrote:

Actually, data bag support for chef-solo was added with Chef 0.10.4
The user cookbook though uses search, which may be what triggers that
client.pem error.

If you want to use with chef-solo a cookbook that uses search, you
will need this lib:
https://github.com/edelight/chef-solo-search

Just add it to your deployed cookbooks and search will work.

Cheers
Miquel

2011/12/5 Daniel DeLeo dan@kallistec.com:

On Monday, December 5, 2011 at 7:24 AM, Adam Jacob wrote:

Looks like you are running chef-client rather than solo?

Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 E: adam@opscode.com (mailto:adam@opscode.com)

On Dec 5, 2011, at 1:47 AM, Tim Uckun wrote:

I am trying to get chef solo going. I have set up a script to rsync
the files to the server and run chef solo but I get this error.

Starting Chef Run for ubuntuvm1
[Mon, 05 Dec 2011 22:36:20 +1300] WARN: Failed to read the private key
/etc/chef/client.pem: #<Errno::ENOENT: No such file or directory -
/etc/chef/client.pem>
[Mon, 05 Dec 2011 22:36:20 +1300] ERROR: Running exception handlers
[Mon, 05 Dec 2011 22:36:20 +1300] ERROR: Exception handlers complete
[Mon, 05 Dec 2011 22:36:20 +1300] FATAL: Stacktrace dumped to
/root/chef_solo/chef-stacktrace.out
[Mon, 05 Dec 2011 22:36:20 +1300] FATAL:
Chef::Exceptions::PrivateKeyMissing: I cannot read
/etc/chef/client.pem, which you told me to use to sign requests!

It’s happening when I attempt to use the users::sysadmins recipe.
That recipe is probably trying to load users from data bags.

There is data bag support for chef-solo in 0.10.6 which is still in the RC phase; you can get it with gem install chef --pre. I’m not sure exactly where chef-solo will be looking for the data bag items so you’ll have to play with it a bit.


Dan DeLeo


#7

On Mon, Dec 5, 2011 at 2:53 PM, Miquel Torres tobami@googlemail.com wrote:

How would you like us to contribute it?

Please start at the How to Contribute [1] page on the wiki. We will
need a Contributor License Agreement (CLA) and a ticket for the new
feature on the ticket tracking system [2]. If you can factor the solo
search code into the core project from the github project yourself,
that would be awesome. Once you’ve got it figured out, dropping a link
to a github branch in the ticket and marking the ticket as resolved
will help us find it at our weekly triage meetings and the triage team
at Opscode will review it. If you need any help figuring out the code
or making architectural decisions, we’re always happy to help on the
chef-dev [3] list.

Bryan

[1] http://wiki.opscode.com/display/chef/How+to+Contribute
[2] http://tickets.opscode.com
[3] http://lists.opscode.com/sympa/info/chef-dev


#8

On Tue, Dec 6, 2011 at 5:55 AM, Miquel Torres tobami@googlemail.com wrote:

Actually, data bag support for chef-solo was added with Chef 0.10.4
The user cookbook though uses search, which may be what triggers that
client.pem error.

Wow. Thanks for knowing that. I would have never deduced it.

If you want to use with chef-solo a cookbook that uses search, you
will need this lib:
https://github.com/edelight/chef-solo-search

Thanks I’ll give that a go.

Cheers.