Skip to content

Instantly share code, notes, and snippets.

@cjs226span
Created August 27, 2011 02:30
Show Gist options
  • Save cjs226span/1174870 to your computer and use it in GitHub Desktop.
Save cjs226span/1174870 to your computer and use it in GitHub Desktop.
One the client:
root@ip-10-0-2-186:~# updatedb
root@ip-10-0-2-186:~# locate client.pem
/usr/share/doc/libssl-dev/demos/tunala/A-client.pem.gz
On the server:
[csmith@opschef01 Fri Aug 26 10:00 PM] ~/.chef
$ knife node list
[csmith@opschef01 Sat Aug 27 02:26 AM] ~/.chef
$ knife client list
chef-validator
chef-webui
chickenfry
csmith
csmith_opslog02
i-978d81f6
ops-chef-01
root
[csmith@opschef01 Sat Aug 27 02:27 AM] ~/.chef
$ knife client delete i-978d81f6
Do you really want to delete i-978d81f6? (Y/N) y
ERROR: Server returned error for http://localhost:4000/clients/i-978d81f6, retrying 1/5 in 4s
ERROR: The object you are looking for could not be found
Response: Cannot load client i-978d81f6
[csmith@opschef01 Sat Aug 27 02:27 AM] ~/.chef
$ knife client list
chef-validator
chef-webui
chickenfry
csmith
csmith_opslog02
ops-chef-01
root
Back on the client:
root@ip-10-0-2-186:~# chef-client
[Sat, 27 Aug 2011 02:28:32 +0000] INFO: *** Chef 0.10.4 ***
[Sat, 27 Aug 2011 02:28:33 +0000] INFO: Client key /etc/chef/client.pem is not present - registering
[Sat, 27 Aug 2011 02:28:39 +0000] INFO: HTTP Request Returned 500 Internal Server Error: Connection refused - connect(2)
[Sat, 27 Aug 2011 02:28:39 +0000] ERROR: Server returned error for http://chef.spanning.co:4000/clients, retrying 1/5 in 4s
[Sat, 27 Aug 2011 02:28:43 +0000] INFO: HTTP Request Returned 409 Conflict: Client already exists
[Sat, 27 Aug 2011 02:28:43 +0000] INFO: HTTP Request Returned 403 Forbidden: You are not allowed to take this action.
[Sat, 27 Aug 2011 02:28:43 +0000] FATAL: Stacktrace dumped to /var/cache/chef/chef-stacktrace.out
[Sat, 27 Aug 2011 02:28:43 +0000] FATAL: Net::HTTPServerException: 403 "Forbidden"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment