[Engine-devel] problem trying to add a host

Hi! I am trying to add a host to my engine... 2011-11-15 08:05:01,282 ERROR [org.ovirt.engine.core.utils.hostinstall.MinaInstallWrapper] (http-0.0.0.0-8080-3) Could not connect to server X.X.X.X: Failed connecting to X.X.X.X using given password! Please verify your password is correct and that the host accepts password-based authentication 2011-11-15 08:05:01,282 WARN [org.ovirt.engine.core.bll.AddVdsCommand] (http-0.0.0.0-8080-3) CanDoAction of action AddVds failed. Reasons:VDS_CANNOT_CONNECT_TO_SERVER,VAR__ACTION__ADD,VAR__TYPE__HOST The thing is, I can connect via ssh from the engine to the host, and I can telnet to the host vdsm from the engine: telnet X.X.X.X 54321 Anything else I should check? -- Duncan Mac-Vicar P. - http://www.suse.com/ SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany

hi Duncan, ----- Original Message -----
From: "Duncan Mac-Vicar P." <dmacvicar@suse.de> To: engine-devel@ovirt.org Sent: Tuesday, November 15, 2011 10:26:43 AM Subject: [Engine-devel] problem trying to add a host
Hi!
I am trying to add a host to my engine...
2011-11-15 08:05:01,282 ERROR [org.ovirt.engine.core.utils.hostinstall.MinaInstallWrapper] (http-0.0.0.0-8080-3) Could not connect to server X.X.X.X: Failed connecting to X.X.X.X using given password! Please verify your password is correct and that the host accepts password-based authentication
did you verify you give correct root password? :)
2011-11-15 08:05:01,282 WARN [org.ovirt.engine.core.bll.AddVdsCommand] (http-0.0.0.0-8080-3) CanDoAction of action AddVds failed. Reasons:VDS_CANNOT_CONNECT_TO_SERVER,VAR__ACTION__ADD,VAR__TYPE__HOST
The thing is, I can connect via ssh from the engine to the host, and I can telnet to the host vdsm from the engine: telnet X.X.X.X 54321
Anything else I should check?
-- Duncan Mac-Vicar P. - http://www.suse.com/
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

On 11/15/2011 09:56 AM, Omer Frenkel wrote:
did you verify you give correct root password? :)
Sure, 5 times, and by two different people. Is the engine at this stage trying a ssh connection or is it a xml-rpc connection to vdsm which does then a pam auth? -- Duncan Mac-Vicar P. - http://www.suse.com/ SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany

----- Original Message -----
From: "Duncan Mac-Vicar P." <dmacvicar@suse.de> To: engine-devel@ovirt.org Sent: Tuesday, November 15, 2011 11:40:47 AM Subject: Re: [Engine-devel] problem trying to add a host
On 11/15/2011 09:56 AM, Omer Frenkel wrote:
did you verify you give correct root password? :)
Sure, 5 times, and by two different people.
Is the engine at this stage trying a ssh connection or is it a xml-rpc connection to vdsm which does then a pam auth?
ssh is done with 'root' user here. did you manage to add other hosts? if still doesn't work, you can change the log level of org.ovirt.engine.core.utils.hostinstall to DEBUG (if you need help ping me on irc)
-- Duncan Mac-Vicar P. - http://www.suse.com/
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

On Tuesday 15 November 2011 11:40:47 Duncan Mac-Vicar P. wrote:
On 11/15/2011 09:56 AM, Omer Frenkel wrote:
did you verify you give correct root password? :)
Sure, 5 times, and by two different people.
Is the engine at this stage trying a ssh connection or is it a xml-rpc connection to vdsm which does then a pam auth?
Hi Duncan, The engine is trying to initiate a simple SSH connection using the credentials you gave it (in this case password). There are 2 main issues if Engine fails to authenticate: 1. Allow root login: you should allow it is it's blocked in sshd_config (PermitRootLogin yes) 2. Authentication type; there's a difference between password auth' methods the ssh /server/ supports. For password based auth, these are mainly Keyboard-interactive and password types (defined in sshd_config file). Please ensure you have (PasswordAuthentication yes) as well as (UsePAM yes). Keyboard-interactive type is unsupported currently. -- /d "Willyoupleasehelpmefixmykeyboard?Thespacebarisbroken!"

On 11/15/2011 11:37 AM, Doron Fediuck wrote:
and password types (defined in sshd_config file). Please ensure you have (PasswordAuthentication yes) as well as (UsePAM yes). Keyboard-interactive type is unsupported currently.
Thanks Doron. This fixed the issue and the host is now added!. Now I have two AIs (!) Power Management is not configured for this Host. Enable Power Management (not a problem after I figure out all the options of that page) (!) NETWORK_UNREACHABLE Is this the connection from vdsm to the engine? Does it need a port open in the opposite direction? -- Duncan Mac-Vicar P. - http://www.suse.com/ SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany
participants (3)
-
Doron Fediuck
-
Duncan Mac-Vicar P.
-
Omer Frenkel