Project

General

Profile

ERF42-1994 » History » Version 1

Dominic Cleal, 06/17/2016 03:09 AM

1 1 Dominic Cleal
h1. ERF42-1994 - Unable to find proper authentication method
2
3
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).
4
5
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:
6
7
h2. Image password
8
9
* Libvirt
10
* oVirt
11
* VMware
12
13
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.
14
15
h2. Keypair
16
17
* EC2
18
* Google Compute Engine
19
* OpenStack
20
21
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.
22
23
h2. VM password
24
25
* Rackspace
26
27
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.