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

Bootstrapping Oracle Linux 7.x and Centos 7.x with Infra Client 15.0.300 fails #8617

Open
wagostin opened this issue May 30, 2019 · 1 comment

Comments

Projects
None yet
3 participants
@wagostin
Copy link

commented May 30, 2019

Description

Bootstrapping Oracle Linux 7.x and Centos 7.x with Infra Client 15.0.300 fails every time. We can bootstrap linux all day long using client 14.x . There is nothing wrong with the target machines sssd or sshd configuration.

Chef Version

Chef infra client 15.0.300, Chef workstation 0.2.53

Platform Version

Oracle Linux 7.x and Centos 7.x

Replication Case

Install chef workstation and infra client on windows 10 pc in AD domain.
Target Linux server running sssd also on the domain
bootstrap the target machine using domain credentials that can sudo -i.
knife bootstrap node1.corp.com -N node1.corp.com --chef-license accept --connection-protocol ssh --connection-user domain\blahhhd --connection-password jfkvfkk -r 'recipe[unf_base]' --bootstrap-template C:\chef-auto.chef\linternal15.erb -E base --sudo -y

Client Output

Creating new client for chf-app-tst-01.corp.unifirst.com
Creating new node for chf-app-tst-01.corp.unifirst.com
Connecting to chf-app-tst-01.corp.unifirst.com
WARN: [SSH] PTY requested: stderr will be merged into stdout
WARN: [SSH] PTY requested: stderr will be merged into stdout
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: undefined local variable or method `latest_current_chef_version_string' for #Chef::Knife::Core::BootstrapContext:0x00000000066029c0

Stacktrace

INFO: Using configuration from C:/chef-auto/.chef/knife.rb
DEBUG: Checking if we need to accept Chef license to bootstrap node
DEBUG: Reading products and relationships...
DEBUG: Successfully read products and relationships
DEBUG: License acceptance required for chef version: 15
DEBUG: Searching for the following licenses: ["infra-client", "inspec"]
DEBUG: Found license chef_infra_client at C:\Users\w096224/.chef/accepted_licenses/chef_infra_client
DEBUG: Found license inspec at C:\Users\w096224/.chef/accepted_licenses/inspec
DEBUG: Missing licenses remaining: []
DEBUG: All licenses present
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 w096224
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://chf-app-prd-01.corp.unifirst.com/organizations/unifirst/nodes/chf-app-tst-01.corp.unifirst.com
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: w096224
TRACE: X-OPS-TIMESTAMP: 2019-05-29T18:16:48Z
TRACE: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
TRACE: X-OPS-AUTHORIZATION-1: QqVVIJYZdenmvv5K0YGCAUgY+BLkRhSm9dOiDLYzza66MRLVFWzqNUlrTLXl
TRACE: X-OPS-AUTHORIZATION-2: aOntRHzCEKMOOYpkWdKSD4LDqIozg3WLd2xN0xo53NpkPeYyzmBKqiY3+9RM
TRACE: X-OPS-AUTHORIZATION-3: pWJsRmPAx8QupMTp1EAfH5ruJwVG6JaavvYizZzFdZVF2prc0sOS8bjdGRVB
TRACE: X-OPS-AUTHORIZATION-4: RPH/82JmQQaY9MVr78KQRCrCAkzT5g9IiDlC93WsnejoGVEBLYiz9RSJIIgY
TRACE: X-OPS-AUTHORIZATION-5: cW1RaKSnePWbRXLbP5slj+25RRIhnrZfEZ3hzmP2GK9Jl16eTqJr9Dkj72bI
TRACE: X-OPS-AUTHORIZATION-6: r0m3tP6n/QCqqfjChlhOXSa2gJDw7Z31WviFlgbddQ==
TRACE: HOST: chf-app-prd-01.corp.unifirst.com:443
TRACE: X-REMOTE-REQUEST-ID: 412dee88-c62b-4f60-a0f6-31217b9df592
TRACE: ---- End HTTP Request Header Data ----
TRACE: ---- HTTP Status and Header Data: ----
TRACE: HTTP 1.1 200 OK
TRACE: date: Wed, 29 May 2019 18:16:48 GMT
TRACE: content-type: application/json
TRACE: transfer-encoding: chunked
TRACE: connection: close
TRACE: x-ops-server-api-version: {"min_version":"0","max_version":"2","request_version":"1","response_version":"1"}
TRACE: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.19.24+20190130060347
TRACE: content-encoding: gzip
TRACE: ---- End HTTP Status/Header Data ----
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
TRACE: HTTP server did not include a Content-Length header in response, cannot identify truncated downloads.
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 w096224
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://chf-app-prd-01.corp.unifirst.com/organizations/unifirst/nodes/chf-app-tst-01.corp.unifirst.com
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: w096224
TRACE: X-OPS-TIMESTAMP: 2019-05-29T18:16:48Z
TRACE: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
TRACE: X-OPS-AUTHORIZATION-1: L8KIPtodApfCPg5BfiBhkryjyu8aRaK+OegLRGCvIEfzoChqWAJsArs4lBz8
TRACE: X-OPS-AUTHORIZATION-2: glgWdjZWEjvy4dRUmYBuKLGj/EVL5Xx8hRGzHWROxh6iJ2A3XrZYkFIJX8va
TRACE: X-OPS-AUTHORIZATION-3: snxqgQdCuXhjQ4AKQfguJILDkhKDwFw7P3umiEO/fcF0hzdOjLh7D65CfxQY
TRACE: X-OPS-AUTHORIZATION-4: CDNnNmqH298Gyb/REUa4xP88E6WXjwN8AjbKkIPHGUKCJCtbAUCoHQV0Pwc9
TRACE: X-OPS-AUTHORIZATION-5: 5QgNDAXnj+r05XPXYGRLF6OAYRIOFQwBs5jC1QP0Yfw64FuQxoqYeAQDdLwT
TRACE: X-OPS-AUTHORIZATION-6: Xfs71OYvTTvZriA1CeuFo3lgrtmFHpJpB66OqKp2+w==
TRACE: HOST: chf-app-prd-01.corp.unifirst.com:443
TRACE: X-REMOTE-REQUEST-ID: 412dee88-c62b-4f60-a0f6-31217b9df592
TRACE: ---- End HTTP Request Header Data ----
TRACE: ---- HTTP Status and Header Data: ----
TRACE: HTTP 1.1 200 OK
TRACE: date: Wed, 29 May 2019 18:16:48 GMT
TRACE: content-type: application/json
TRACE: transfer-encoding: chunked
TRACE: connection: close
TRACE: x-ops-server-api-version: {"min_version":"0","max_version":"2","request_version":"1","response_version":"1"}
TRACE: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.19.24+20190130060347
TRACE: content-encoding: gzip
TRACE: ---- End HTTP Status/Header Data ----
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
TRACE: HTTP server did not include a Content-Length header in response, cannot identify truncated downloads.
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 w096224
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://chf-app-prd-01.corp.unifirst.com/organizations/unifirst/clients/chf-app-tst-01.corp.unifirst.com
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: w096224
TRACE: X-OPS-TIMESTAMP: 2019-05-29T18:16:48Z
TRACE: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
TRACE: X-OPS-AUTHORIZATION-1: 345LSoc5V9GJvp87cYVP/M22oxs43eZRbMPm52NlLI8QUIImZ5/ylI+Vxydm
TRACE: X-OPS-AUTHORIZATION-2: IP2w4U9H8/7+YY6eLtxCpCD/4QxlUjDpsTurZzzjJrK9EMULLiYX+H+FyG7O
TRACE: X-OPS-AUTHORIZATION-3: eMKRZZ0rKftrzX7mc9QZNrjpQRJV7wdCvzCbwQjwOO5TtSUhfiS44DeKKNuF
TRACE: X-OPS-AUTHORIZATION-4: 6PNXq9UmhXEhQCqGjW8bzz4u8IaosTKsHCdegpNwG4nVGbQSGtw3WPJADny2
TRACE: X-OPS-AUTHORIZATION-5: edcqgrh80HSVX1g4UdAhtWiVdiQwJCcChqCfkxfZSmZpBsv/bHl5RWiKeTHr
TRACE: X-OPS-AUTHORIZATION-6: yADFZco3H8ET23zfQIWY/AgaJP9D8S4xiYUnifB+JA==
TRACE: HOST: chf-app-prd-01.corp.unifirst.com:443
TRACE: X-REMOTE-REQUEST-ID: 412dee88-c62b-4f60-a0f6-31217b9df592
TRACE: ---- End HTTP Request Header Data ----
TRACE: ---- HTTP Status and Header Data: ----
TRACE: HTTP 1.1 200 OK
TRACE: date: Wed, 29 May 2019 18:16:48 GMT
TRACE: content-type: application/json
TRACE: transfer-encoding: chunked
TRACE: connection: close
TRACE: x-ops-server-api-version: {"min_version":"0","max_version":"2","request_version":"1","response_version":"1"}
TRACE: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.19.24+20190130060347
TRACE: content-encoding: gzip
TRACE: ---- End HTTP Status/Header Data ----
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
TRACE: HTTP server did not include a Content-Length header in response, cannot identify truncated downloads.
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 w096224
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://chf-app-prd-01.corp.unifirst.com/organizations/unifirst/clients/chf-app-tst-01.corp.unifirst.com
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: w096224
TRACE: X-OPS-TIMESTAMP: 2019-05-29T18:16:48Z
TRACE: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
TRACE: X-OPS-AUTHORIZATION-1: x3ArIjauA5sx5PcwwsCsUG/1I9+B/flrNpWYa6VMaGPqtmXNxbPq8qa9/u21
TRACE: X-OPS-AUTHORIZATION-2: hcWxZqTwhne5W89JV2LODdXD+Jf/WkAG832bzmiV6ErFuyX5euNB6N19R/WL
TRACE: X-OPS-AUTHORIZATION-3: Og/g1q73jRkPqkuHjMT41xwaNFfGIncMZjI5kv6CRyBKVtu1oM0TID82QuNL
TRACE: X-OPS-AUTHORIZATION-4: XNs5p6WG8VQJGybCTH4CISgOBgHNo8jm/BJBKSopNnI0Q2TbNKtnZpLh6YwB
TRACE: X-OPS-AUTHORIZATION-5: gYIa7RfK8nqYsV6flDiafc88L6dLIweHJXQ6rWs+7bnBEbI2GDqIg4loUi2B
TRACE: X-OPS-AUTHORIZATION-6: weGJUUVZlIsIcF/2RqV0cuHa0Y/da3jcs3qA5Ka8ug==
TRACE: HOST: chf-app-prd-01.corp.unifirst.com:443
TRACE: X-REMOTE-REQUEST-ID: 412dee88-c62b-4f60-a0f6-31217b9df592
TRACE: ---- End HTTP Request Header Data ----
TRACE: ---- HTTP Status and Header Data: ----
TRACE: HTTP 1.1 200 OK
TRACE: date: Wed, 29 May 2019 18:16:49 GMT
TRACE: content-type: application/json
TRACE: transfer-encoding: chunked
TRACE: connection: close
TRACE: x-ops-server-api-version: {"min_version":"0","max_version":"2","request_version":"1","response_version":"1"}
TRACE: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.19.24+20190130060347
TRACE: content-encoding: gzip
TRACE: ---- End HTTP Status/Header Data ----
TRACE: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
TRACE: HTTP server did not include a Content-Length header in response, cannot identify truncated downloads.
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 w096224
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://chf-app-prd-01.corp.unifirst.com/organizations/unifirst/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: w096224
TRACE: X-OPS-TIMESTAMP: 2019-05-29T18:16:49Z
TRACE: X-OPS-CONTENT-HASH: htkvhMoiBwyUZZm8YD09fEzLphU=
TRACE: X-OPS-AUTHORIZATION-1: 61/pMJqX2GgDG9uYaS35P8R+w8JLI3BZTi26GivXf3+CyQYm81gpYA0pFVcf
TRACE: X-OPS-AUTHORIZATION-2: KjFQWuvdBpF1vEMOpvVIyPTGvtImp8OA5S57/ZUsrqOclHgoPL919r9UY3+z
TRACE: X-OPS-AUTHORIZATION-3: n2x72P5KwLNpIE/LdqrvO94Wy4f+Pi5BqntzIgqoRqLpe2DP7judso+Ofs5l
TRACE: X-OPS-AUTHORIZATION-4: dvRZiVcWvIOZk/wlvws6roAAZYDbybY2XKdYWVEZrA/QO6rbDiReVizFKj85
TRACE: X-OPS-AUTHORIZATION-5: 9Mr4Ut1s87Q4lFCvu9y+gZl6b21ELIE8gEvdU+lvmZqDpHA6FKeZ1bf+QIDE
TRACE: X-OPS-AUTHORIZATION-6: S+8Xcd+S2YWzFq85TOpZkAfUtM6D8SrMFvgVh8oKTA==
TRACE: HOST: chf-app-prd-01.corp.unifirst.com:443
TRACE: X-REMOTE-REQUEST-ID: 412dee88-c62b-4f60-a0f6-31217b9df592
TRACE: Content-Length: 533
TRACE: ---- End HTTP Request Header Data ----
TRACE: ---- HTTP Status and Header Data: ----
TRACE: HTTP 1.1 201 Created
TRACE: date: Wed, 29 May 2019 18:16:49 GMT
TRACE: content-type: application/json
TRACE: content-length: 775
TRACE: connection: close
TRACE: x-ops-server-api-version: {"min_version":"0","max_version":"2","request_version":"1","response_version":"1"}
TRACE: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.19.24+20190130060347
TRACE: location: https://chf-app-prd-01.corp.unifirst.com/organizations/unifirst/clients/chf-app-tst-01.corp.unifirst.com
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
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 chf-app-tst-01.corp.unifirst.com
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://chf-app-prd-01.corp.unifirst.com/organizations/unifirst/nodes/chf-app-tst-01.corp.unifirst.com
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: chf-app-tst-01.corp.unifirst.com
TRACE: X-OPS-TIMESTAMP: 2019-05-29T18:16:49Z
TRACE: X-OPS-CONTENT-HASH: 42VwmRzGhODNu58cYbZIbmPboyU=
TRACE: X-OPS-AUTHORIZATION-1: i5u6h8oiO3d2PTO0mIncdFCSOGam47J2/R9WgS5KijqSTO+/JKNbrmIHpYkY
TRACE: X-OPS-AUTHORIZATION-2: EaB9PH6X+M/Ammyn/IY5DFxV5CXYrQSH7qvxLNrQ8savJli8DueKooq7rmNN
TRACE: X-OPS-AUTHORIZATION-3: yzE9akgyiFEtpjuI3xfjSn2jXcB67nfwyH/1azgVAY/YRLYAOmOFHg2CVab2
TRACE: X-OPS-AUTHORIZATION-4: dp1ICvXzwPANX/b0VoB4KNd3aFpGgX7/zG8FflUiB+YDDEDPWvEARvbiPD9d
TRACE: X-OPS-AUTHORIZATION-5: WHgS6a352Nq8qeqrHpW7NArOaWQJxZ3XJHX3pTgh2yQNG0vH2bMhb2pcWZn6
TRACE: X-OPS-AUTHORIZATION-6: HrvnwRDSss6eFSPNgoJUCf6FwFsi/U+AR1LBUoGuKw==
TRACE: HOST: chf-app-prd-01.corp.unifirst.com:443
TRACE: X-REMOTE-REQUEST-ID: 412dee88-c62b-4f60-a0f6-31217b9df592
TRACE: Content-Length: 200
TRACE: ---- End HTTP Request Header Data ----
TRACE: ---- HTTP Status and Header Data: ----
TRACE: HTTP 1.1 404 Object Not Found
TRACE: date: Wed, 29 May 2019 18:16:49 GMT
TRACE: content-length: 63
TRACE: connection: close
TRACE: x-ops-server-api-version: {"min_version":"0","max_version":"2","request_version":"1","response_version":"1"}
TRACE: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.19.24+20190130060347
TRACE: ---- End HTTP Status/Header Data ----
TRACE: ---- HTTP Response Body ----
TRACE: {"error":["node 'chf-app-tst-01.corp.unifirst.com' not found"]}
TRACE: ---- End HTTP Response Body -----
TRACE: ---- HTTP Request Body ----
TRACE: {"name":"chf-app-tst-01.corp.unifirst.com","chef_environment":"base","json_class":"Chef::Node","automatic":{},"normal":{},"chef_type":"node","default":{},"override":{},"run_list":["recipe[unf_base]"]}
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 'chf-app-tst-01.corp.unifirst.com' 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 chf-app-tst-01.corp.unifirst.com
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://chf-app-prd-01.corp.unifirst.com/organizations/unifirst/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: chf-app-tst-01.corp.unifirst.com
TRACE: X-OPS-TIMESTAMP: 2019-05-29T18:16:49Z
TRACE: X-OPS-CONTENT-HASH: 42VwmRzGhODNu58cYbZIbmPboyU=
TRACE: X-OPS-AUTHORIZATION-1: fAs3qRmKAmKoFOadZqWZyThfyYlOLDpbfLgVr/UQT1JW8CnUvTUtgqQnafne
TRACE: X-OPS-AUTHORIZATION-2: K7RkPQH39XT9Lw9TxhNmqLrf1KPhtLDp+bA+GBXV0FmUjH7HY4nlM2g6a/P+
TRACE: X-OPS-AUTHORIZATION-3: H9ZMVT1GmhliPDvVkMYbItyP2pJEmRgvTfmJSvX+QdSSu4Sv1Gv4+A5zS8SQ
TRACE: X-OPS-AUTHORIZATION-4: q4zrSE1JsKbyafOc+r7nzK/zqWM6P54WNKxJ8LHtp2d3TwCQqsbznrms/5SU
TRACE: X-OPS-AUTHORIZATION-5: s3DNGDbVb+s6LKXQjJRy3dlbW4Wr6WqRbWETQzhV45IPAZTOBUcO1hmi04LU
TRACE: X-OPS-AUTHORIZATION-6: vhmYOSPmzmr00DyDaJGkI/TkCrL0CeCKyU1ObONpSQ==
TRACE: HOST: chf-app-prd-01.corp.unifirst.com:443
TRACE: X-REMOTE-REQUEST-ID: 412dee88-c62b-4f60-a0f6-31217b9df592
TRACE: Content-Length: 200
TRACE: ---- End HTTP Request Header Data ----
TRACE: ---- HTTP Status and Header Data: ----
TRACE: HTTP 1.1 201 Created
TRACE: date: Wed, 29 May 2019 18:16:49 GMT
TRACE: content-type: application/json
TRACE: content-length: 112
TRACE: connection: close
TRACE: x-ops-server-api-version: {"min_version":"0","max_version":"2","request_version":"1","response_version":"1"}
TRACE: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.19.24+20190130060347
TRACE: location: https://chf-app-prd-01.corp.unifirst.com/organizations/unifirst/nodes/chf-app-tst-01.corp.unifirst.com
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
WARN: [SSH] PTY requested: stderr will be merged into stdout
DEBUG: [SSH] corp\w096224@chf-app-tst-01.corp.unifirst.com<{:user_known_hosts_file=>"/dev/null", :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>60, :auth_methods=>["none", "password", "keyboard-interactive"], :keys_only=>nil, :keys=>[], :password=>"", :forward_agent=>nil, :non_interactive=>true, :verify_host_key=>:always}> (cmd.exe /c ver)
DEBUG: [SSH] opening connection to corp\w096224@chf-app-tst-01.corp.unifirst.com<{:user_known_hosts_file=>"/dev/null", :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>60, :auth_methods=>["none", "password", "keyboard-interactive"], :keys_only=>nil, :keys=>[], :password=>"", :forward_agent=>nil, :non_interactive=>true, :verify_host_key=>:always}>
WARN: [SSH] PTY requested: stderr will be merged into stdout
DEBUG: [SSH] corp\w096224@chf-app-tst-01.corp.unifirst.com<{:user_known_hosts_file=>"/dev/null", :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>60, :auth_methods=>["none", "password", "keyboard-interactive"], :keys_only=>nil, :keys=>[], :password=>"", :forward_agent=>nil, :non_interactive=>true, :verify_host_key=>:accept_new}> (cmd.exe /c ver)
DEBUG: [SSH] opening connection to corp\w096224@chf-app-tst-01.corp.unifirst.com<{:user_known_hosts_file=>"/dev/null", :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>60, :auth_methods=>["none", "password", "keyboard-interactive"], :keys_only=>nil, :keys=>[], :password=>"", :forward_agent=>nil, :non_interactive=>true, :verify_host_key=>:accept_new}>
DEBUG: [SSH] corp\w096224@chf-app-tst-01.corp.unifirst.com<{:user_known_hosts_file=>"/dev/null", :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>60, :auth_methods=>["none", "password", "keyboard-interactive"], :keys_only=>nil, :keys=>[], :password=>"", :forward_agent=>nil, :non_interactive=>true, :verify_host_key=>:accept_new}> (uname -s)
DEBUG: [SSH] corp\w096224@chf-app-tst-01.corp.unifirst.com<{:user_known_hosts_file=>"/dev/null", :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>60, :auth_methods=>["none", "password", "keyboard-interactive"], :keys_only=>nil, :keys=>[], :password=>"", :forward_agent=>nil, :non_interactive=>true, :verify_host_key=>:accept_new}> (uname -m)
DEBUG: [SSH] corp\w096224@chf-app-tst-01.corp.unifirst.com<{:user_known_hosts_file=>"/dev/null", :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>60, :auth_methods=>["none", "password", "keyboard-interactive"], :keys_only=>nil, :keys=>[], :password=>"", :forward_agent=>nil, :non_interactive=>true, :verify_host_key=>:accept_new}> (test -f /etc/debian_version && cat /etc/debian_version)
DEBUG: [SSH] corp\w096224@chf-app-tst-01.corp.unifirst.com<{:user_known_hosts_file=>"/dev/null", :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>60, :auth_methods=>["none", "password", "keyboard-interactive"], :keys_only=>nil, :keys=>[], :password=>"", :forward_agent=>nil, :non_interactive=>true, :verify_host_key=>:accept_new}> (test -f /etc/os-release && cat /etc/os-release)
DEBUG: [SSH] corp\w096224@chf-app-tst-01.corp.unifirst.com<{:user_known_hosts_file=>"/dev/null", :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>60, :auth_methods=>["none", "password", "keyboard-interactive"], :keys_only=>nil, :keys=>[], :password=>"", :forward_agent=>nil, :non_interactive=>true, :verify_host_key=>:accept_new}> (test -f /usr/bin/FastCli)
DEBUG: [SSH] corp\w096224@chf-app-tst-01.corp.unifirst.com<{:user_known_hosts_file=>"/dev/null", :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>60, :auth_methods=>["none", "password", "keyboard-interactive"], :keys_only=>nil, :keys=>[], :password=>"", :forward_agent=>nil, :non_interactive=>true, :verify_host_key=>:accept_new}> (show version | json)
DEBUG: [SSH] corp\w096224@chf-app-tst-01.corp.unifirst.com<{:user_known_hosts_file=>"/dev/null", :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>60, :auth_methods=>["none", "password", "keyboard-interactive"], :keys_only=>nil, :keys=>[], :password=>"", :forward_agent=>nil, :non_interactive=>true, :verify_host_key=>:accept_new}> (test -f /etc/lsb-release && cat /etc/lsb-release)
DEBUG: [SSH] corp\w096224@chf-app-tst-01.corp.unifirst.com<{:user_known_hosts_file=>"/dev/null", :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>60, :auth_methods=>["none", "password", "keyboard-interactive"], :keys_only=>nil, :keys=>[], :password=>"", :forward_agent=>nil, :non_interactive=>true, :verify_host_key=>:accept_new}> (test -f /usr/bin/lsb-release && cat /usr/bin/lsb-release)
DEBUG: [SSH] corp\w096224@chf-app-tst-01.corp.unifirst.com<{:user_known_hosts_file=>"/dev/null", :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>60, :auth_methods=>["none", "password", "keyboard-interactive"], :keys_only=>nil, :keys=>[], :password=>"", :forward_agent=>nil, :non_interactive=>true, :verify_host_key=>:accept_new}> (test -f /etc/oracle-release && cat /etc/oracle-release)
DEBUG: [SSH] corp\w096224@chf-app-tst-01.corp.unifirst.com<{:user_known_hosts_file=>"/dev/null", :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>60, :auth_methods=>["none", "password", "keyboard-interactive"], :keys_only=>nil, :keys=>[], :password=>"", :forward_agent=>nil, :non_interactive=>true, :verify_host_key=>:accept_new}> (sudo echo)
DEBUG: [SSH] corp\w096224@chf-app-tst-01.corp.unifirst.com<{:user_known_hosts_file=>"/dev/null", :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>60, :auth_methods=>["none", "password", "keyboard-interactive"], :keys_only=>nil, :keys=>[], :password=>"", :forward_agent=>nil, :non_interactive=>true, :verify_host_key=>:accept_new}> (echo '[SSH] Established')
TRACE: Using the specified bootstrap template: C:\chef-auto.chef

@wagostin wagostin changed the title Exception: NameError: undefined local variable or method `latest_current_chef_version_string' Bootstrapping Oracle Linux 7.x and Centos 7.x with Infra Client 15.0.300 fails May 30, 2019

@vsingh-msys

This comment has been minimized.

Copy link
Contributor

commented Jun 3, 2019

@wagostin Thanks for posting the issue. As I can check you have used old bootstrap template format. Could you please update your template according to the latest available at https://github.com/chef/chef/blob/master/lib/chef/knife/bootstrap/templates/chef-full.erb.
Also, it would be good if you provide the logs with -VV options

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.