Skip to content
Pinter Computing

Knowledge Base for IT Professionals, Teachers, and Astronauts

Pinter Computing

Knowledge Base for IT Professionals, Teachers, and Astronauts

  • Home
  • Programming
  • DevOps
  • Project Management
  • Software and Hardware
  • Miscellaneous
  • Egyebek
  • About
  • Experience
  • Education
  • Contact
  • Home
  • Programming
  • DevOps
  • Project Management
  • Software and Hardware
  • Miscellaneous
  • Egyebek
  • About
  • Experience
  • Education
  • Contact
Close

Search

Home/Knowledge Base/Failed to complete #converge action: [password is a required option]
Knowledge Base

Failed to complete #converge action: [password is a required option]

By Laszlo Pinter
December 17, 2020 2 Min Read
0

The Chef Test Kitchen EC2 driver can connect to Windows instances two ways.

Using a custom image with known admin account credentials

When we use a custom built image which has a local administrator account with known username and password, specify it in the kitchen.yml file.

driver:
  name: ec2
  aws_ssh_key_id: MY_SSH_KEY_NAME
  ...

platforms:
  - name: windows-2019
    driver:
      image_id: "ami-MY_CUSTOM_AMI_ID"
      instance_type: t3.medium
      security_group_ids: ['sg-MY_SECURITY_GROUP_ID1','sg-MY_SECURITY_GROUP_ID2']
    transport:
      name: winrm
      elevated: true            # Required for the installation of some Windows features
      connection_timeout: 60
      connection_retries: 10
      username: MY_ADMIN_USERNAME
      password: MY_ADMIN_PASSWORD

Standard Amazon AMI with random password

When we use an Amazon standard Windows AMI, the kitchen-ec2 driver needs to retrieve the random password by using the SSH key the server was launched with.

driver:
  name: ec2
  aws_ssh_key_id: MY_SSH_KEY_NAME
  ...

platforms:
  - name: windows-2019
    driver:
      image_id: "ami-MY_CUSTOM_AMI_ID"
      instance_type: t3.medium
      security_group_ids: ['sg-MY_SECURITY_GROUP_ID1','sg-MY_SECURITY_GROUP_ID2']
    transport:
      name: winrm
      elevated: true            # Required for the installation of some Windows features
      connection_timeout: 60
      connection_retries: 10
      username: Administrator
      ssh_key: MY_SSH_KEY_PATH/MY_SSH_KEY_FILE.pem

If the ssh key location is not specified in the transport section of the platform in the kitchen.yml file, we get the error message:

Failed to complete #converge action: [password is a required option] on …

Troubleshooting

When you get the error message:

Failed to complete #converge action: [password is a required option] on …

  • Make sure the transport section of the platform in the kitchen.yml file contains the line
    ssh_key: MY_SSH_KEY_PATH/MY_SSH_KEY_FILE.pem
  • It is possible, that the saved password of the Windows instance in the .kitchen/...yml file is not valid anymore. Destroy the instance and execute the kitchen converge command again.

Tags:

ChefDevOpsTestKitchen
Author

Laszlo Pinter

Follow Me
Other Articles
Previous

Scan documents into password-protected ZIP files with iPhone

Next

Kovászos kenyér egyszerűen

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Last Changes

  • DevOps Engineering part 1. (Mac) - Make your Macintosh easier to use June 25, 2026
  • Japan travel tips June 22, 2026
  • How to stop the rain and snow in Cities: Skylines II June 20, 2026
  • Cities: Skylines II Developer Mode June 20, 2026
  • 'CSII_MANAGEDPATH' has incorrect path(s) when building Cities: Skylines II mod June 20, 2026

Tags

.NET .NETcore 3Dprinting ASP.NET Core AutodeskInventor AWS C# Chef cloud DevOps Docker EntityFramework Games Git Go iOS iPad iPhone iPod Java Kubernetes Linux MacOSX MSSQL MVC Node.js Packer PowerShell Python RDS RightScale Ruby security Splunk TeamCity Terraform TestKitchen Tomcat Ubuntu Vagrant VirtualBox VisualStudio Windows WordPress Xcode

Recent Comments

  • Zengei László on MyHeritage családfa exportálása és küldése emailben
  • Raúl Castillo on DynDns update error
  • MICHAEL on Windows Media Player 12 cannot find the album information
  • Nargis on Configure Epson ET-3850 scanning on Windows 11
  • Venczelné Zemen Erika on Delta S2302 termosztát programozása

–

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright 2026 — Pinter Computing. All rights reserved.