ERF42-1994 - Unable to find proper authentication method

During image-based provisioning, Foreman will attempt to SSH to the provisioned host to run the associated "finish" script. SSH finish scripts are used when user data isn't selected, determined by the user data checkbox when editing the image (under the compute resource).

This error occurs when Foreman can't find a keypair or password to use to log into the host. Depending on the compute resource, authentication should work in a single way:

Image password

  • Libvirt
  • oVirt
  • VMware

A static username and password should be stored in the image used to create new hosts, and this should be stored in the image definition in Foreman (under Compute Resources > Images). If you get this error for one of the above compute resources, the password is probably missing in the image definition in Foreman's UI.

Keypair

  • EC2
  • Google Compute Engine
  • OpenStack

Foreman generates a public/private keypair, stores it in its database and passes the public key to the compute resource's API. When the VM comes up, it uses its private key to log into the VM over SSH. This error should not occur with these compute resources, else it may indicate an API issue or bug.

VM password

  • Rackspace

When the VM is created, the compute resource API responds with a password for the new VM and Foreman uses this to authenticate. This error should not occur with these compute resources, else it may indicate an API issue or bug.