Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

knife suggest to use -VVV option to collect the ouput which is not giving full Trackback of the command output. #8433

Open
Vasu1105 opened this issue Apr 30, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@Vasu1105
Copy link
Contributor

commented Apr 30, 2019

Description

While running knife bootstrap command its giving suggestion to use -VVV option to collect the output of the command which is not giving the full Trackback. or stacktrace. If I am not wrong here we should tell to use -VV option instead of -VVV

Chef Version

Chef Infra: 15.0.238

Platform Version

Replication Case

We can run any knife command which throws error to reproduce this.

ui.info "Please collect the output of this command with the `-VVV` option before filing a bug report."

Client Output


Stacktrace

command output when using -VVV option

WARNING: --winrm-user USER is deprecated. Use --connection-user USERNAME instead.
WARNING: --winrm-password is deprecated. Use --connection-password PASSWORD instead.
WARNING: --winrm-port is deprecated. Use --connection-port PORT instead.
WARNING: --winrm-authentication-protocol PROTOCOL is deprecated. Use --winrm-auth-method AUTH-METHOD instead.
TRACE: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
TRACE: Signing the request as vasundharaj
TRACE: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
TRACE: Initiating GET to https://api.chef.io/organizations/vasuj/nodes/vj-win2012r2
TRACE: ---- HTTP Request Header Data: ----
TRACE: Accept: application/json
TRACE: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
TRACE: X-Ops-Server-API-Version: 1
TRACE: X-OPS-SIGN: algorithm=sha1;version=1.1;
TRACE: X-OPS-USERID: vasundharaj
TRACE: X-OPS-TIMESTAMP: 2019-04-30T07:24:21Z
TRACE: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
TRACE: X-OPS-AUTHORIZATION-1: sl5bON0v1TPT2C/J6Tqrk3NPGxzJa5cjaRsdI7UIFyyUAdn0TjtjxLdcF5B7
TRACE: X-OPS-AUTHORIZATION-2: t39uRkM9jyTZabzxv7FlCathLhXpTNf8gtezDfwgu6/FyY64K9jS8NNnL2Qy
TRACE: X-OPS-AUTHORIZATION-3: rghyxb2aFWc5sOUd8lkbRtUHigEwwsHB57L2W1PvfI58AU8zSj67Pa75TM5D
TRACE: X-OPS-AUTHORIZATION-4: rtjNzhmH6LXH+u3z4t2+LWQJ1H5D8elNWUkrFF+GwsPNOCczTYoxf5HcRp3b
TRACE: X-OPS-AUTHORIZATION-5: UlSJi9/0weuiP3hBq7EPh+SnNV2TJB5dtN/4/GZzqF2li/QeirIAGzg0KLUq
TRACE: X-OPS-AUTHORIZATION-6: 2QvG0/geh5qKbD0c4+PGJAn38rHl6Z/YTckGstB3ag==
TRACE: HOST: api.chef.io:443
TRACE: X-REMOTE-REQUEST-ID: 5e1017e4-a4e9-4494-b18a-92ca78bb0136
TRACE: ---- End HTTP Request Header Data ----
TRACE: ---- HTTP Status and Header Data: ----
TRACE: HTTP 1.1 200 OK
TRACE: content-encoding: gzip
TRACE: content-type: application/json
TRACE: date: Tue, 30 Apr 2019 07:24:22 GMT
TRACE: server: openresty/1.11.2.1
TRACE: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.17.29
TRACE: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
TRACE: content-length: 143
TRACE: connection: Close
TRACE: ---- End HTTP Status/Header Data ----
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
TRACE: Content-Length validated correctly.
TRACE: Chef::HTTP calling Chef::HTTP::APIVersions#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
TRACE: Decompressing gzip response
TRACE: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Node vj-win2012r2 exists, overwrite it? (Y/N) Y
TRACE: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
TRACE: Signing the request as vasundharaj
TRACE: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
TRACE: Initiating DELETE to https://api.chef.io/organizations/vasuj/nodes/vj-win2012r2
TRACE: ---- HTTP Request Header Data: ----
TRACE: Accept: application/json
TRACE: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
TRACE: X-Ops-Server-API-Version: 1
TRACE: X-OPS-SIGN: algorithm=sha1;version=1.1;
TRACE: X-OPS-USERID: vasundharaj
TRACE: X-OPS-TIMESTAMP: 2019-04-30T07:24:25Z
TRACE: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
TRACE: X-OPS-AUTHORIZATION-1: Ev5U1HYRE+TKZoaQVE0i3Z07vZNNEvq3wTfyYpu3+mMmHB3C3vWEPGDA0fqY
TRACE: X-OPS-AUTHORIZATION-2: 1bDNnLp8/O61xLIg7bFUMC1dfBgsnX/7Iw4rc3Ef+0e0+7w2vb/3FkGTSB89
TRACE: X-OPS-AUTHORIZATION-3: Ky9T5RMM0GKIqxmcgy3pEMgkNQw4QB5vxqPFlx4KYuQcEauBLYU3ZM53Rc+j
TRACE: X-OPS-AUTHORIZATION-4: wTb5ELZa07U+oBWmvFltW3WTOhJCfzpEsoXdN+Bi/klNExJQoO8YW0e4FSwf
TRACE: X-OPS-AUTHORIZATION-5: mN+Sr7F+ehQqDIp4YGqpesj9XyBJSEZUhawZvhpolJJvtyCrnsIVRGHtOtXm
TRACE: X-OPS-AUTHORIZATION-6: dWmdrtFwCmHTqToeWy52GtzWoysSL6lNSY9o223uaA==
TRACE: HOST: api.chef.io:443
TRACE: X-REMOTE-REQUEST-ID: 5e1017e4-a4e9-4494-b18a-92ca78bb0136
TRACE: ---- End HTTP Request Header Data ----
TRACE: ---- HTTP Status and Header Data: ----
TRACE: HTTP 1.1 200 OK
TRACE: content-encoding: gzip
TRACE: content-type: application/json
TRACE: date: Tue, 30 Apr 2019 07:24:26 GMT
TRACE: server: openresty/1.11.2.1
TRACE: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.17.29
TRACE: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
TRACE: content-length: 143
TRACE: connection: Close
TRACE: ---- End HTTP Status/Header Data ----
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
TRACE: Content-Length validated correctly.
TRACE: Chef::HTTP calling Chef::HTTP::APIVersions#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
TRACE: Decompressing gzip response
TRACE: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
TRACE: Signing the request as vasundharaj
TRACE: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
TRACE: Initiating GET to https://api.chef.io/organizations/vasuj/clients/vj-win2012r2
TRACE: ---- HTTP Request Header Data: ----
TRACE: Accept: application/json
TRACE: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
TRACE: X-Ops-Server-API-Version: 1
TRACE: X-OPS-SIGN: algorithm=sha1;version=1.1;
TRACE: X-OPS-USERID: vasundharaj
TRACE: X-OPS-TIMESTAMP: 2019-04-30T07:24:26Z
TRACE: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
TRACE: X-OPS-AUTHORIZATION-1: CPDi2FIyDQOYuUMntGzkV2VN78nglMe5BsID9++H3hp0pC4ghs7PMmsydS1b
TRACE: X-OPS-AUTHORIZATION-2: cxmcJOrlGf9aeZ9f/kqvujjXHaQ1YRBam8E1F9ntRjsoCEz1eXaqG8QNragR
TRACE: X-OPS-AUTHORIZATION-3: FFRWInVX5GQzBAwXFEwlSJsUwkUgtIOy9av4bdA3+ptdKkTQa84epqgAoV4s
TRACE: X-OPS-AUTHORIZATION-4: q0mGh1bJdoPrUFL0kobpx3ggcmN3h/GzMgBKQrE14Yb5LZnJ68XbHR9ldUj9
TRACE: X-OPS-AUTHORIZATION-5: TIRpquVWI/VESo+j1jItaC2JHeWlKeRzErVKzTzFyO2V1KDLkX21QaEZpL0M
TRACE: X-OPS-AUTHORIZATION-6: oq/X4D588A5W4b81qg0Qjq0v0jblZ/KXkmekXZZyCA==
TRACE: HOST: api.chef.io:443
TRACE: X-REMOTE-REQUEST-ID: 5e1017e4-a4e9-4494-b18a-92ca78bb0136
TRACE: ---- End HTTP Request Header Data ----
TRACE: ---- HTTP Status and Header Data: ----
TRACE: HTTP 1.1 200 OK
TRACE: content-encoding: gzip
TRACE: content-type: application/json
TRACE: date: Tue, 30 Apr 2019 07:24:27 GMT
TRACE: server: openresty/1.11.2.1
TRACE: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.17.29
TRACE: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
TRACE: content-length: 117
TRACE: connection: Close
TRACE: ---- End HTTP Status/Header Data ----
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
TRACE: Content-Length validated correctly.
TRACE: Chef::HTTP calling Chef::HTTP::APIVersions#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
TRACE: Decompressing gzip response
TRACE: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Client vj-win2012r2 exists, overwrite it? (Y/N) Y
TRACE: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
TRACE: Signing the request as vasundharaj
TRACE: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
TRACE: Initiating DELETE to https://api.chef.io/organizations/vasuj/clients/vj-win2012r2
TRACE: ---- HTTP Request Header Data: ----
TRACE: Accept: application/json
TRACE: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
TRACE: X-Ops-Server-API-Version: 1
TRACE: X-OPS-SIGN: algorithm=sha1;version=1.1;
TRACE: X-OPS-USERID: vasundharaj
TRACE: X-OPS-TIMESTAMP: 2019-04-30T07:24:29Z
TRACE: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
TRACE: X-OPS-AUTHORIZATION-1: Vtwhgg0ym8izhQ72qmFJGXOGRQoL37W2W2UmqAXQ+kp+r5bhM7FuPuxJtlg1
TRACE: X-OPS-AUTHORIZATION-2: 60p4TRB9tYHIs0/lVkfoLdNsN2JhuV6D4RGWgTbCtXGy4fa2ZfunHB0lS3ZW
TRACE: X-OPS-AUTHORIZATION-3: I7HeSMgwuvbgYvpI6bsuyNS60UycpX8oqFX5nG4TlhOkS6PzixJrhwsePcSA
TRACE: X-OPS-AUTHORIZATION-4: gaTnWJpJ0+rqp1U9keOoQLyqj1gvLgDlmk5Mv9jAurZt7RbfjSPDx0GVUTIi
TRACE: X-OPS-AUTHORIZATION-5: aLFwGj1zvX6aHqehn3J44gvST/fAVmmoIBSQp9R7T8utACN9Z64TouaLSwv6
TRACE: X-OPS-AUTHORIZATION-6: GcpDK5MsXgdFVbxGOu+LEf7zmhiuiu4TLMbg+K72lA==
TRACE: HOST: api.chef.io:443
TRACE: X-REMOTE-REQUEST-ID: 5e1017e4-a4e9-4494-b18a-92ca78bb0136
TRACE: ---- End HTTP Request Header Data ----
TRACE: ---- HTTP Status and Header Data: ----
TRACE: HTTP 1.1 200 OK
TRACE: content-encoding: gzip
TRACE: content-type: application/json
TRACE: date: Tue, 30 Apr 2019 07:24:29 GMT
TRACE: server: openresty/1.11.2.1
TRACE: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.17.29
TRACE: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
TRACE: content-length: 117
TRACE: connection: Close
TRACE: ---- End HTTP Status/Header Data ----
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
TRACE: Content-Length validated correctly.
TRACE: Chef::HTTP calling Chef::HTTP::APIVersions#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
TRACE: Decompressing gzip response
TRACE: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Creating new client for vj-win2012r2
TRACE: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
TRACE: Signing the request as vasundharaj
TRACE: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
TRACE: Initiating POST to https://api.chef.io/organizations/vasuj/clients
TRACE: ---- HTTP Request Header Data: ----
TRACE: Content-Type: application/json
TRACE: Accept: application/json
TRACE: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
TRACE: X-Ops-Server-API-Version: 1
TRACE: X-OPS-SIGN: algorithm=sha1;version=1.1;
TRACE: X-OPS-USERID: vasundharaj
TRACE: X-OPS-TIMESTAMP: 2019-04-30T07:24:30Z
TRACE: X-OPS-CONTENT-HASH: 3TDEyUWM+gAurWWJe/NLeO4XyCA=
TRACE: X-OPS-AUTHORIZATION-1: TQOQaK1rB+NDLv4XmYvQEC/u30WtgFAHdqQ1DQz/m2JkKyP4RTgrVzkR6rgu
TRACE: X-OPS-AUTHORIZATION-2: hLpIIDfQJV6uZYE8jeXyK6PPBnKKKxXVmc8ftCg8cRJQScvjWj9Rs9xfcLfZ
TRACE: X-OPS-AUTHORIZATION-3: 1Ml8J7EnTtqJy1Ygn6FJXGNzwpxmt+cRqe1ETXFqYcDVfRpLIRflL8AwhpuC
TRACE: X-OPS-AUTHORIZATION-4: j9E695j668JI71qIqr7lqwGDJYuPO2ef8YZG/jhDuHkSvZkv08vsCXl2sVRC
TRACE: X-OPS-AUTHORIZATION-5: rmWlvTMUoFdZoCiPo6DbTpoXFO2vM9RFaF2YYGy9AW0oZeFTnVsbcsfssMK1
TRACE: X-OPS-AUTHORIZATION-6: F5TEOkAJMkERKOa8uS0LsDmk73mAemfTvTxrbfL/Rw==
TRACE: HOST: api.chef.io:443
TRACE: X-REMOTE-REQUEST-ID: 5e1017e4-a4e9-4494-b18a-92ca78bb0136
TRACE: Content-Length: 513
TRACE: ---- End HTTP Request Header Data ----
TRACE: ---- HTTP Status and Header Data: ----
TRACE: HTTP 1.1 201 Created
TRACE: content-type: application/json
TRACE: date: Tue, 30 Apr 2019 07:24:31 GMT
TRACE: location: https://api.chef.io/organizations/vasuj/clients/vj-win2012r2
TRACE: server: openresty/1.11.2.1
TRACE: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.17.29
TRACE: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
TRACE: content-length: 687
TRACE: connection: Close
TRACE: ---- End HTTP Status/Header Data ----
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
TRACE: Content-Length validated correctly.
TRACE: Chef::HTTP calling Chef::HTTP::APIVersions#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Creating new node for vj-win2012r2
TRACE: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
TRACE: Signing the request as vj-win2012r2
TRACE: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
TRACE: Initiating PUT to https://api.chef.io/organizations/vasuj/nodes/vj-win2012r2
TRACE: ---- HTTP Request Header Data: ----
TRACE: Content-Type: application/json
TRACE: Accept: application/json
TRACE: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
TRACE: X-Ops-Server-API-Version: 1
TRACE: X-OPS-SIGN: algorithm=sha1;version=1.1;
TRACE: X-OPS-USERID: vj-win2012r2
TRACE: X-OPS-TIMESTAMP: 2019-04-30T07:24:31Z
TRACE: X-OPS-CONTENT-HASH: x5J3LxmEDZIzAU7KwNL3dyaGlM8=
TRACE: X-OPS-AUTHORIZATION-1: mof7gm8uze02vcF8aDIYkzaVHbDepk0S4omQGPM+rvaA79oA0hsG0et90RCn
TRACE: X-OPS-AUTHORIZATION-2: DDLnAz1+swvbrnoPOsp3zxZgAqbXNYcvktGYzJA0x6p7C5sNi/+JH6bJicQN
TRACE: X-OPS-AUTHORIZATION-3: UM7rt4EfPgMRtLMKsnkit6nGNjZvxZO6uEWXRP/bfWYWhr5ETKP5vOlO6y4h
TRACE: X-OPS-AUTHORIZATION-4: LzxclaIckyTngO7quQBUKkJky/uH5if0ji6VCUq/dsk4FU37+ew3Y7Gglz3s
TRACE: X-OPS-AUTHORIZATION-5: REA9ucMnPtxQ0AflS8Syad6fJGv9utYj9fvxwLVlhvmMsGRGgYvjXC5H7q8h
TRACE: X-OPS-AUTHORIZATION-6: bhY0mO3wPlbpmxdkOZ4MGAN3eCawJl7MgDyZYrNE1A==
TRACE: HOST: api.chef.io:443
TRACE: X-REMOTE-REQUEST-ID: 5e1017e4-a4e9-4494-b18a-92ca78bb0136
TRACE: Content-Length: 166
TRACE: ---- End HTTP Request Header Data ----
TRACE: ---- HTTP Status and Header Data: ----
TRACE: HTTP 1.1 404 Object Not Found
TRACE: date: Tue, 30 Apr 2019 07:24:31 GMT
TRACE: server: openresty/1.11.2.1
TRACE: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.17.29
TRACE: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
TRACE: content-length: 43
TRACE: connection: Close
TRACE: ---- End HTTP Status/Header Data ----
TRACE: ---- HTTP Response Body ----
TRACE: {"error":["node 'vj-win2012r2' not found"]}
TRACE: ---- End HTTP Response Body -----
TRACE: ---- HTTP Request Body ----
TRACE: {"name":"vj-win2012r2","chef_environment":"_default","json_class":"Chef::Node","automatic":{},"normal":{},"chef_type":"node","default":{},"override":{},"run_list":[]}
TRACE: ---- End HTTP Request Body ----
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
TRACE: Content-Length validated correctly.
TRACE: Chef::HTTP calling Chef::HTTP::APIVersions#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
TRACE: Expected JSON response, but got content-type ''
TRACE: Response body contains:
{"error":["node 'vj-win2012r2' not found"]}
TRACE: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
TRACE: Signing the request as vj-win2012r2
TRACE: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
TRACE: Initiating POST to https://api.chef.io/organizations/vasuj/nodes
TRACE: ---- HTTP Request Header Data: ----
TRACE: Content-Type: application/json
TRACE: Accept: application/json
TRACE: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
TRACE: X-Ops-Server-API-Version: 1
TRACE: X-OPS-SIGN: algorithm=sha1;version=1.1;
TRACE: X-OPS-USERID: vj-win2012r2
TRACE: X-OPS-TIMESTAMP: 2019-04-30T07:24:31Z
TRACE: X-OPS-CONTENT-HASH: x5J3LxmEDZIzAU7KwNL3dyaGlM8=
TRACE: X-OPS-AUTHORIZATION-1: kWL5J/91+yQL3QsEAuqIQiH5plb2H4cRIC2DT3LJdcVYTpHDLwfnyff8G7gJ
TRACE: X-OPS-AUTHORIZATION-2: lFfZkILGHwrPEQyqqRZvtj+1bO9yriagRZNs4QpcbMZMHeUCT+vL4nvk/a9u
TRACE: X-OPS-AUTHORIZATION-3: kgYCresGFHWO9652vCHXj4A/kz1z4MJkLmIdfAFlV2n/4KZjcZ6yHq/b0aT0
TRACE: X-OPS-AUTHORIZATION-4: GMY3iET4iyr+BUIhZO+ete4UKxZfHc21f4KKR9/N7sFQ0EN+6VPHiCVBHMa7
TRACE: X-OPS-AUTHORIZATION-5: L686UdkjEV+cmR136tj1U9Pn7ZpXjDb1CnhUErDx+Cj4mxXrrYmYuxrIMa6c
TRACE: X-OPS-AUTHORIZATION-6: bA+owAdiVaJ91j8fjY7ZHAZwUskrdB93C1XODBVHKw==
TRACE: HOST: api.chef.io:443
TRACE: X-REMOTE-REQUEST-ID: 5e1017e4-a4e9-4494-b18a-92ca78bb0136
TRACE: Content-Length: 166
TRACE: ---- End HTTP Request Header Data ----
TRACE: ---- HTTP Status and Header Data: ----
TRACE: HTTP 1.1 201 Created
TRACE: content-type: application/json
TRACE: date: Tue, 30 Apr 2019 07:24:33 GMT
TRACE: location: https://api.chef.io/organizations/vasuj/nodes/vj-win2012r2
TRACE: server: openresty/1.11.2.1
TRACE: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.17.29
TRACE: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
TRACE: content-length: 68
TRACE: connection: Close
TRACE: ---- End HTTP Status/Header Data ----
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
TRACE: Content-Length validated correctly.
TRACE: Chef::HTTP calling Chef::HTTP::APIVersions#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
TRACE: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Connecting to 137.117.17.107
ERROR: knife encountered an unexpected error
This may be a bug in the 'bootstrap' knife command or plugin
Please collect the output of this command with the `-VVV` option before filing a bug report.
Exception: NameError: uninitialized constant Net::SSH

And command output when using -VV option

WARNING: --winrm-user USER is deprecated. Use --connection-user USERNAME instead.
WARNING: --winrm-password is deprecated. Use --connection-password PASSWORD instead.
WARNING: --winrm-port is deprecated. Use --connection-port PORT instead.
WARNING: --winrm-authentication-protocol PROTOCOL is deprecated. Use --winrm-auth-method AUTH-METHOD instead.
Node vj-win2012r2 exists, overwrite it? (Y/N) Y
Client vj-win2012r2 exists, overwrite it? (Y/N) Y
Creating new client for vj-win2012r2
Creating new node for vj-win2012r2
Connecting to 137.117.17.107
Traceback (most recent call last):
	18: from /usr/bin/knife:80:in `<main>'
	17: from /usr/bin/knife:80:in `load'
	16: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/bin/knife:24:in `<top (required)>'
	15: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/application/knife.rb:162:in `run'
	14: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife.rb:221:in `run'
	13: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife.rb:459:in `run_with_pretty_exceptions'
	12: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/local_mode.rb:41:in `with_server_connectivity'
	11: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife.rb:460:in `block in run_with_pretty_exceptions'
	10: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife/bootstrap.rb:548:in `run'
	 9: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife/bootstrap.rb:597:in `connect!'
	 8: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife/bootstrap.rb:627:in `do_connect'
	 7: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife/bootstrap.rb:627:in `new'
	 6: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife/bootstrap/train_connector.rb:39:in `initialize'
	 5: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife/bootstrap/train_connector.rb:246:in `opts_from_uri'
	 4: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/train-core-2.0.12/lib/train.rb:94:in `unpack_target_from_uri'
	 3: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/train-core-2.0.12/lib/train.rb:125:in `parse_uri'
	 2: from /opt/chef/embedded/lib/ruby/2.6.0/uri/common.rb:234:in `parse'
	 1: from /opt/chef/embedded/lib/ruby/2.6.0/uri/rfc3986_parser.rb:73:in `parse'
/opt/chef/embedded/lib/ruby/2.6.0/uri/rfc3986_parser.rb:67:in `split': bad URI(is not URI?): "://137.117.17.107" (URI::InvalidURIError)
	16: from /usr/bin/knife:80:in `<main>'
	15: from /usr/bin/knife:80:in `load'
	14: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/bin/knife:24:in `<top (required)>'
	13: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/application/knife.rb:162:in `run'
	12: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife.rb:221:in `run'
	11: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife.rb:459:in `run_with_pretty_exceptions'
	10: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/local_mode.rb:41:in `with_server_connectivity'
	 9: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife.rb:460:in `block in run_with_pretty_exceptions'
	 8: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife/bootstrap.rb:548:in `run'
	 7: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife/bootstrap.rb:597:in `connect!'
	 6: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife/bootstrap.rb:627:in `do_connect'
	 5: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife/bootstrap.rb:627:in `new'
	 4: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife/bootstrap/train_connector.rb:39:in `initialize'
	 3: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife/bootstrap/train_connector.rb:246:in `opts_from_uri'
	 2: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/train-core-2.0.12/lib/train.rb:94:in `unpack_target_from_uri'
	 1: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/train-core-2.0.12/lib/train.rb:124:in `parse_uri'
/opt/chef/embedded/lib/ruby/gems/2.6.0/gems/train-core-2.0.12/lib/train.rb:135:in `rescue in parse_uri': bad URI(is not URI?): "://137.117.17.107" (Train::UserError)
	10: from /usr/bin/knife:80:in `<main>'
	 9: from /usr/bin/knife:80:in `load'
	 8: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/bin/knife:24:in `<top (required)>'
	 7: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/application/knife.rb:162:in `run'
	 6: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife.rb:221:in `run'
	 5: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife.rb:459:in `run_with_pretty_exceptions'
	 4: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/local_mode.rb:41:in `with_server_connectivity'
	 3: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife.rb:460:in `block in run_with_pretty_exceptions'
	 2: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife/bootstrap.rb:548:in `run'
	 1: from /opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife/bootstrap.rb:594:in `connect!'
/opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.0.238/lib/chef/knife/bootstrap.rb:599:in `rescue in connect!': uninitialized constant Net::SSH (NameError)

@Vasu1105 Vasu1105 changed the title knife bootstrap suggests to -VVV option to collect the ouput which is not giving full Trackback of the command output. knife bootstrap suggests to use -VVV option to collect the ouput which is not giving full Trackback of the command output. Apr 30, 2019

@Vasu1105 Vasu1105 changed the title knife bootstrap suggests to use -VVV option to collect the ouput which is not giving full Trackback of the command output. knife bootstrap suggest to use -VVV option to collect the ouput which is not giving full Trackback of the command output. Apr 30, 2019

@marcparadise

This comment has been minimized.

Copy link
Member

commented Apr 30, 2019

This is an existing general behavior of knife:

raise if raise_exception || Chef::Config[:verbosity] == 2

chef/lib/chef/knife.rb

Lines 383 to 392 in 52ed3d3

case Chef::Config[:verbosity]
when 0, nil
Chef::Config[:log_level] = :warn
when 1
Chef::Config[:log_level] = :info
when 2
Chef::Config[:log_level] = :debug
else
Chef::Config[:log_level] = :trace
end

So

  • -V: log level info
  • -VV: log level debug, allow exceptions to raise
  • -VVV: log level trace, do not allow exceptions to raise

The error message itself is generic:

ui.info "Please collect the output of this command with the `-VVV` option before filing a bug report."

It'd be good to change that to -VV; or possibly change the conditional for re-raising the error to >= 2 instead of == 2.

I've updated the title.

@marcparadise marcparadise changed the title knife bootstrap suggest to use -VVV option to collect the ouput which is not giving full Trackback of the command output. knife suggest to use -VVV option to collect the ouput which is not giving full Trackback of the command output. Apr 30, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.