chef / chef

Chef Infra, a powerful automation platform that transforms infrastructure into code automating how infrastructure is configured, deployed and managed across any environment, at any scale
http://www.chef.io/chef/
Apache License 2.0
7.54k stars 2.51k forks source link

windows 2016 detected as Windows 2008r2 #8051

Closed shreeCrimeMasterGogo closed 5 years ago

shreeCrimeMasterGogo commented 5 years ago

Description

On AWS cloud EC2 instance Windows server 2016 is detected as Windows 2008r2, and while bootstrapping it always download the old version 13.x of the chef-client not the latest which is 14.x.

Chef Version

14.7.17

Platform Version

Red Hat Enterprise Linux Server release 7.6 (Maipo)

Replication Case

try to bootstrap windows server 2016 on AWS EC2 and the Chef server is running on RHEL.

Client Output

 Detected Windows Version 10.0 Build 14393
 Warning: Unknown version of Windows, assuming default of Windows 2008r2

 C:\Users\Administrator>goto architecture_select 

 C:\Users\Administrator>IF "AMD64" == "x86" IF not defined PROCESSOR_ARCHITEW6432 

 C:\Users\Administrator>goto install 
 Checking for existing downloaded package at "C:\Users\ADMINI~1\AppData\Local\Temp\chef-client-latest.msi"
 No existing downloaded packages to delete.
 Attempting to download client package using PowerShell if available...
 powershell.exe -ExecutionPolicy Unrestricted -InputFormat None -NoProfile -NonInteractive -File  C:\chef\wget.ps1 "https://www.chef.io/chef/download?p=windows&pv=2008r2&m=x86_64&DownloadContext=PowerShell&v=13" "C:\Users\ADMINI~1\AppData\Local\Temp\chef-client-latest.msi"
 Rendering "C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-28496-1544770336.bat" chunk 7 
 Rendering "C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-28496-1544770336.bat" chunk 8 
 Download via PowerShell succeeded.
 Installing downloaded client package...
[chef_version](https://user-images.githubusercontent.com/22068654/49995350-e4ef9180-ffb1-11e8-9f73-0320bc492690.PNG)

Stacktrace

stuartpreston commented 5 years ago

Please can you provide more detail here on the bootstrap command that was issued at the command line via knife? Thanks.

shreeCrimeMasterGogo commented 5 years ago

Update:- problem seems to be in the image as it was customised image. Fixed after some OS update. Thank you. Can we close the ticket?

shreeCrimeMasterGogo commented 5 years ago

Update:- problem seems to be in the image as it was customised image. Fixed after some OS update. Thank you. Can we close the ticket?

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.