- From: David Montgomery <
>
- To:
- Subject: [chef] Hosted Chef will not auth for knife
- Date: Thu, 26 Apr 2012 10:16:01 +0800
Hi,
I get this error when trying to auth knife
knife data bag from file gl_data_bag
~/workspace/Gold-Lantern-CHEF/chef-repo/data_bags/gl_data_bag/gl.json
-c /home/ubuntu/workspace/Gold-Lantern-CHEF/knife.rb
ERROR: Failed to authenticate to
https://api.opscode.com/organizations/ips1 as infiniteprofitsolutions
with key /home/ubuntu/workspace/Gold-Lantern-CHEF/infiniteprofitsolutions.pem
Response: Failed to authenticate as infiniteprofitsolutions. Ensure
that your node_name and client key are correct.
1) I am using hosted chef
2) I have the knife config in a given directory and I use the -c flag
3) I regenerated the client and validator pem files per the docs
located at
(
http://wiki.opscode.com/display/chef/Managing+Organizations+with+the+Hosted+Chef+Management+Console#ManagingOrganizationswiththeHostedChefManagementConsole-RegeneratingthePrivateKeyandtheKnifeConfig)
and are in the directory where knife is located
4) Here are the contents of the directory infiniteprofitsolutions.pem
ips1-validator.pem knife.rb
Here is my knife file.
current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name "infiniteprofitsolutions"
client_key
"/home/ubuntu/workspace/Gold-Lantern-CHEF/infiniteprofitsolutions.pem"
validation_client_name "ips1-validator"
validation_key
"/home/ubuntu/workspace/Gold-Lantern-CHEF/ips1-validator.pem"
chef_server_url "
https://api.opscode.com/organizations/ips1"
cache_type 'BasicFile'
#cache_options( :path => "#{ENV['HOME']}/.chef/checksums" )
cookbook_path
["/home/ubuntu/workspace/Gold-Lantern-CHEF/chef-repo/cookbooks"]
So....what is the issue?
- [chef] Hosted Chef will not auth for knife, David Montgomery, 04/25/2012
Archive powered by MHonArc 2.6.16.