Created
December 14, 2017 18:13
-
-
Save marseille/9eb5ba3a79b353fbeb75855ebab38ae7 to your computer and use it in GitHub Desktop.
knife bootstrap with user credentials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO: Using configuration from /home/<user>/.chef/knife.rb | |
DEBUG: Looking for key winrm_authentication_protocol and found value negotiate | |
DEBUG: Looking for key winrm_shell and found value cmd | |
DEBUG: Looking for key winrm_authentication_protocol and found value negotiate | |
DEBUG: Looking for key ca_trust_file and found value | |
DEBUG: Looking for key winrm_user and found value <winrm-user> | |
DEBUG: Looking for key winrm_authentication_protocol and found value negotiate | |
DEBUG: Looking for key winrm_transport and found value plaintext | |
DEBUG: Looking for key winrm_authentication_protocol and found value negotiate | |
DEBUG: Looking for key winrm_password and found value <password> | |
DEBUG: Looking for key winrm_port and found value 5985 | |
DEBUG: Looking for key session_timeout and found value 30 | |
DEBUG: Looking for key session_timeout and found value 30 | |
DEBUG: Looking for key winrm_authentication_protocol and found value negotiate | |
DEBUG: Looking for key winrm_transport and found value plaintext | |
DEBUG: Looking for key winrm_authentication_protocol and found value negotiate | |
DEBUG: Looking for key winrm_transport and found value plaintext | |
DEBUG: Looking for key winrm_authentication_protocol and found value negotiate | |
DEBUG: Looking for key ca_trust_file and found value | |
DEBUG: Looking for key ssl_peer_fingerprint and found value | |
DEBUG: Looking for key winrm_shell and found value cmd | |
DEBUG: Looking for key winrm_codepage and found value 65001 | |
DEBUG: Looking for key ca_trust_file and found value | |
DEBUG: Adding <remote_node_address> | |
DEBUG: WinRM::WinRMWebService options: {:user=>".\\<winrm-user>", :password=>"<password>", :basic_auth_only=>false, :disable_sspi=>false, :no_ssl_peer_verification=>false, :ssl_peer_fingerprint=>nil, :endpoint=>"http://<remote_node_address>:5985/wsman", :transport=>:negotiate, :ca_trust_path=>nil, :operation_timeout=>1800} | |
DEBUG: Endpoint: http://<remote_node_address>:5985/wsman | |
DEBUG: Transport: negotiate | |
DEBUG: Looking for key chef_node_name and found value <node_name> | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request | |
DEBUG: Signing the request as <user> | |
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request | |
DEBUG: Initiating GET to https://<chef_server_url><node_name> | |
DEBUG: ---- HTTP Request Header Data: ---- | |
DEBUG: Accept: application/json | |
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 | |
DEBUG: X-Ops-Server-API-Version: 1 | |
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1; | |
DEBUG: X-OPS-USERID: <user> | |
DEBUG: X-OPS-TIMESTAMP: 2017-12-14T18:05:16Z | |
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk= | |
<Authorization hashes>DEBUG: HOST: <chef_server_url>:443 | |
DEBUG: X-REMOTE-REQUEST-ID: 729aca3e-6bd9-4a05-bb4f-b797bd91b155 | |
DEBUG: ---- End HTTP Request Header Data ---- | |
DEBUG: ---- HTTP Status and Header Data: ---- | |
DEBUG: HTTP 1.1 404 Object Not Found | |
DEBUG: server: openresty/1.9.3.1 | |
DEBUG: date: Thu, 14 Dec 2017 18:05:09 GMT | |
DEBUG: content-length: 48 | |
DEBUG: connection: close | |
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"} | |
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.4.1+20160203230036 | |
DEBUG: ---- End HTTP Status/Header Data ---- | |
DEBUG: ---- HTTP Response Body ---- | |
DEBUG: {"error":["node '<node_name>' not found"]} | |
DEBUG: ---- End HTTP Response Body ----- | |
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response | |
DEBUG: Content-Length validated correctly. | |
DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response | |
DEBUG: Expected JSON response, but got content-type '' | |
DEBUG: Response body contains: | |
{"error":["node '<node_name>' not found"]} | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request | |
DEBUG: Signing the request as <user> | |
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request | |
DEBUG: Initiating GET to https://<chef_server_url>clients/<node_name> | |
DEBUG: ---- HTTP Request Header Data: ---- | |
DEBUG: Accept: application/json | |
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 | |
DEBUG: X-Ops-Server-API-Version: 1 | |
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1; | |
DEBUG: X-OPS-USERID: <user> | |
DEBUG: X-OPS-TIMESTAMP: 2017-12-14T18:05:16Z | |
<Authorization hashes> | |
DEBUG: HOST: <chef_server_url>:443 | |
DEBUG: X-REMOTE-REQUEST-ID: 729aca3e-6bd9-4a05-bb4f-b797bd91b155 | |
DEBUG: ---- End HTTP Request Header Data ---- | |
DEBUG: ---- HTTP Status and Header Data: ---- | |
DEBUG: HTTP 1.1 200 OK | |
DEBUG: server: openresty/1.9.3.1 | |
DEBUG: date: Thu, 14 Dec 2017 18:05:09 GMT | |
DEBUG: content-type: application/json | |
DEBUG: transfer-encoding: chunked | |
DEBUG: connection: close | |
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"} | |
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.4.1+20160203230036 | |
DEBUG: content-encoding: gzip | |
DEBUG: ---- End HTTP Status/Header Data ---- | |
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response | |
DEBUG: HTTP server did not include a Content-Length header in response, cannot identify truncated downloads. | |
DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response | |
DEBUG: Decompressing gzip response | |
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response | |
Client <node_name> exists, overwrite it? (Y/N) DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request | |
DEBUG: Signing the request as <user> | |
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request | |
DEBUG: Initiating DELETE to https://<chef_server_url>clients/<node_name> | |
DEBUG: ---- HTTP Request Header Data: ---- | |
DEBUG: Accept: application/json | |
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 | |
DEBUG: X-Ops-Server-API-Version: 1 | |
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1; | |
DEBUG: X-OPS-USERID: <user> | |
DEBUG: X-OPS-TIMESTAMP: 2017-12-14T18:05:21Z | |
<Authorization hashes> | |
DEBUG: HOST: <chef_server_url>:443 | |
DEBUG: X-REMOTE-REQUEST-ID: 729aca3e-6bd9-4a05-bb4f-b797bd91b155 | |
DEBUG: ---- End HTTP Request Header Data ---- | |
DEBUG: ---- HTTP Status and Header Data: ---- | |
DEBUG: HTTP 1.1 200 OK | |
DEBUG: server: openresty/1.9.3.1 | |
DEBUG: date: Thu, 14 Dec 2017 18:05:14 GMT | |
DEBUG: content-type: application/json | |
DEBUG: transfer-encoding: chunked | |
DEBUG: connection: close | |
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"} | |
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.4.1+20160203230036 | |
DEBUG: content-encoding: gzip | |
DEBUG: ---- End HTTP Status/Header Data ---- | |
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response | |
DEBUG: HTTP server did not include a Content-Length header in response, cannot identify truncated downloads. | |
DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response | |
DEBUG: Decompressing gzip response | |
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request | |
DEBUG: Signing the request as <user> | |
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request | |
DEBUG: Initiating POST to https://<chef_server_url>clients | |
DEBUG: ---- HTTP Request Header Data: ---- | |
DEBUG: Content-Type: application/json | |
DEBUG: Accept: application/json | |
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 | |
DEBUG: X-Ops-Server-API-Version: 1 | |
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1; | |
DEBUG: X-OPS-USERID: <user> | |
DEBUG: X-OPS-TIMESTAMP: 2017-12-14T18:05:21Z | |
<Authorization hashes> | |
DEBUG: HOST: <chef_server_url>:443 | |
DEBUG: X-REMOTE-REQUEST-ID: 729aca3e-6bd9-4a05-bb4f-b797bd91b155 | |
DEBUG: Content-Length: 518 | |
DEBUG: ---- End HTTP Request Header Data ---- | |
DEBUG: ---- HTTP Status and Header Data: ---- | |
DEBUG: HTTP 1.1 201 Created | |
DEBUG: server: openresty/1.9.3.1 | |
DEBUG: date: Thu, 14 Dec 2017 18:05:14 GMT | |
DEBUG: content-type: application/json | |
DEBUG: content-length: 721 | |
DEBUG: connection: close | |
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"} | |
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.4.1+20160203230036 | |
DEBUG: location: https://<chef_server_url>clients/<node_name> | |
DEBUG: ---- End HTTP Status/Header Data ---- | |
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response | |
DEBUG: Content-Length validated correctly. | |
DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request | |
DEBUG: Signing the request as <node_name> | |
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request | |
DEBUG: Initiating PUT to https://<chef_server_url><node_name> | |
DEBUG: ---- HTTP Request Header Data: ---- | |
DEBUG: Content-Type: application/json | |
DEBUG: Accept: application/json | |
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 | |
DEBUG: X-Ops-Server-API-Version: 1 | |
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1; | |
DEBUG: X-OPS-USERID: <node_name> | |
DEBUG: X-OPS-TIMESTAMP: 2017-12-14T18:05:22Z | |
<Authorization hashes> | |
DEBUG: HOST: <chef_server_url>:443 | |
DEBUG: X-REMOTE-REQUEST-ID: 729aca3e-6bd9-4a05-bb4f-b797bd91b155 | |
DEBUG: Content-Length: 195 | |
DEBUG: ---- End HTTP Request Header Data ---- | |
DEBUG: ---- HTTP Status and Header Data: ---- | |
DEBUG: HTTP 1.1 404 Object Not Found | |
DEBUG: server: openresty/1.9.3.1 | |
DEBUG: date: Thu, 14 Dec 2017 18:05:15 GMT | |
DEBUG: content-length: 48 | |
DEBUG: connection: close | |
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"} | |
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.4.1+20160203230036 | |
DEBUG: ---- End HTTP Status/Header Data ---- | |
DEBUG: ---- HTTP Response Body ---- | |
DEBUG: {"error":["node '<node_name>' not found"]} | |
DEBUG: ---- End HTTP Response Body ----- | |
DEBUG: ---- HTTP Request Body ---- | |
DEBUG: {"name":"<node_name>","chef_environment":"_default","json_class":"Chef::Node","automatic":{},"normal":{},"chef_type":"node","default":{},"override":{},"run_list":["recipe[<recipe_name>]"]} | |
DEBUG: ---- End HTTP Request Body ---- | |
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response | |
DEBUG: Content-Length validated correctly. | |
DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response | |
DEBUG: Expected JSON response, but got content-type '' | |
DEBUG: Response body contains: | |
{"error":["node '<node_name>' not found"]} | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request | |
DEBUG: Signing the request as <node_name> | |
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request | |
DEBUG: Initiating POST to https://<chef_server_url>nodes | |
DEBUG: ---- HTTP Request Header Data: ---- | |
DEBUG: Content-Type: application/json | |
DEBUG: Accept: application/json | |
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 | |
DEBUG: X-Ops-Server-API-Version: 1 | |
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1; | |
DEBUG: X-OPS-USERID: <node_name> | |
DEBUG: X-OPS-TIMESTAMP: 2017-12-14T18:05:22Z | |
<Authorization hashes> | |
DEBUG: HOST: <chef_server_url>:443 | |
DEBUG: X-REMOTE-REQUEST-ID: 729aca3e-6bd9-4a05-bb4f-b797bd91b155 | |
DEBUG: Content-Length: 195 | |
DEBUG: ---- End HTTP Request Header Data ---- | |
DEBUG: ---- HTTP Status and Header Data: ---- | |
DEBUG: HTTP 1.1 403 Forbidden | |
DEBUG: server: openresty/1.9.3.1 | |
DEBUG: date: Thu, 14 Dec 2017 18:05:15 GMT | |
DEBUG: content-length: 39 | |
DEBUG: connection: close | |
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"} | |
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.4.1+20160203230036 | |
DEBUG: ---- End HTTP Status/Header Data ---- | |
DEBUG: ---- HTTP Response Body ---- | |
DEBUG: {"error":["missing create permission"]} | |
DEBUG: ---- End HTTP Response Body ----- | |
DEBUG: ---- HTTP Request Body ---- | |
DEBUG: {"name":"<node_name>","chef_environment":"_default","json_class":"Chef::Node","automatic":{},"normal":{},"chef_type":"node","default":{},"override":{},"run_list":["recipe[<recipe_name>]"]} | |
DEBUG: ---- End HTTP Request Body ---- | |
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response | |
DEBUG: Content-Length validated correctly. | |
DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response | |
DEBUG: Expected JSON response, but got content-type '' | |
DEBUG: Response body contains: | |
{"error":["missing create permission"]} | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment