Closed pinterl closed 6 years ago
I am actually seeing the same issue, upgraded my chefdk as well to be sure it wasn't something solved in an update. I have tried various combinations of the platform name as well.
Just had this as well trying to use a custom AMI. It was because the AMI name has to conform to a naming convention so that the OS version can be extracted ("Windows 2016"). #230 covers the requirement for a better error message.
Also ran into this issue with a custom Windows AMI, @rlaveycal is right. Had to copy the existing AMI into a new AMI, since "AMI Name" isn't editable. Specifying the new "AMI Name" as windows-2012r2
worked fine in Kitchen.
Closing this one as it isn't a bug per-say so much as non-informative error messages as covered by #230 - closing this one since it's not quite a bug and we're tracking the work to make this clearer in #230.
I have upgraded my Chef DK from version 1.0.3 to 2.1.11 and Ruby from 2.0.0 to ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
Since that the Windows EC2 instance launch fails with Failed to complete #create action: [undefined method `version' for nil:NilClass] on default-windows-2012r2
I can successfully launch RHEL7 EC2 instance with the same .kitchen.yml.
I suspect this is the line that fails:
if actual_platform.version =~ /2016/
The actual_platform is nil when the code is executed.The kitchen diagnose --all output is
My Chef version is
Ruby version
My .kitchen.yml file is
The Gem list is