Bug 1057575 - From GuideMe link, adding Host using SSH PublicKey Authentication fails with "Error while executing action: Cannot install Host with empty password."
Summary: From GuideMe link, adding Host using SSH PublicKey Authentication fails with ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Infra
Version: 4.4.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ovirt-4.4.1
: 4.4.1.5
Assignee: Dana
QA Contact: Ivana Saranova
URL:
Whiteboard: infra
: 1057576 1057578 (view as bug list)
Depends On: 1057574 1057578
Blocks: 1057576
TreeView+ depends on / blocked
 
Reported: 2014-01-24 11:55 UTC by SATHEESARAN
Modified: 2020-08-05 06:25 UTC (History)
27 users (show)

Fixed In Version: ovirt-engine-4.4.1.5
Doc Type: No Doc Update
Doc Text:
Clone Of: 1057574
Environment:
Last Closed: 2020-08-05 06:25:17 UTC
oVirt Team: Infra
Embargoed:
pm-rhel: ovirt-4.4+
pm-rhel: blocker?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 24070 0 None MERGED ui: from new cluster GuideMe form adding host by pk fails 2020-07-21 07:07:34 UTC
oVirt gerrit 24226 0 None MERGED ui: from new cluster GuideMe form adding host by pk fails 2020-07-21 07:07:34 UTC
oVirt gerrit 109818 0 master MERGED engine: set authentication method on data center guide me model 2020-07-21 07:07:34 UTC

Description SATHEESARAN 2014-01-24 11:55:46 UTC
+++ This bug was initially created as a clone of Bug #1057574 +++

Description of problem:

From Guide Me link, Add Host using SSH PublicKey Authentication fails with "Error while executing action: Cannot install Host with empty password."

Version-Release number of selected component (if applicable): 
Red Hat Storage Console Version: 2.1.2-0.33.el6rhs (CB 15)
ovirt-host-deploy-java-1.1.2-1.el6ev.noarch
ovirt-host-deploy-1.1.2-1.el6ev.noarch


How reproducible: 100%


Steps to Reproduce:
1. Click on "Clusters" and create a New Cluster
2. Select the created Cluster and click on "Guide Me"
3. Click on "Configure Host"
4. Enter the mandatory fields and select the Authentication type as "	
SSH PublicKey"
5. Copy the key displayed in the SSH PublicKey field to /root/.ssh/authorized_keys on the host to use public key authentication
6. Click on OK

Actual results: Add Host fails with error "Error while executing action: Cannot install Host with empty password." as it's not detecting that the user has selected the SSH PublicKey Authentication instead of Password Authentication


Expected results: Add Host with SSH PublicKey Authentication should work from the "Guide Me" flow as well.

PS: It works fine in the normal Add New Host flow.


Additional info: Screenshot and log-collector report attached

Comment 2 Prasanth 2014-01-24 12:06:44 UTC
*** Bug 1057576 has been marked as a duplicate of this bug. ***

Comment 3 Barak 2014-01-30 16:02:32 UTC
*** Bug 1057578 has been marked as a duplicate of this bug. ***

Comment 4 Leonid Natapov 2014-03-11 14:08:09 UTC
3.4.0-0.3.master.el6ev. host can be added using SSH from guide me

Comment 5 Itamar Heim 2014-06-12 14:06:56 UTC
Closing as part of 3.4.0

Comment 6 Yedidyah Bar David 2014-11-18 10:58:06 UTC
Now happened to me on 3.5.

Added a DC, followed the link to add a Cluster, then followed the link to add a host, failed with a message saying:

Error while executing action: Cannot install Host with empty password.

A single line was added to engine.log:

2014-11-18 12:52:18,102 WARN  [org.ovirt.engine.core.bll.AddVdsCommand] (ajp--127.0.0.1-8702-8) [457abfb6] CanDoAction of action AddVds failed. Reasons:VAR__ACTION__ADD,VAR__TYPE__HOST,$server t123,VDS_CANNOT_INSTALL_EMPTY_PASSWORD

'Cancel' and then adding the host with the 'New' link in 'Hosts' worked.

OS is rhel 7.1 beta, engine is from upstream 3.5-snapshot ovirt-engine-3.5.1-0.0.master.20141112061952.git2c24911.el7.centos.noarch

Comment 9 Radek Duda 2020-05-04 15:59:49 UTC
This still does not work with rhv-4.4.0-0.33.master.el8ev
ovirt-engine-4.4.0-0.33.master.el8ev.noarch

Steps to Reproduce:
1. Select some data center
2. Choose 'Guide Me' to add host
3. Choose 'Configure host', fill in 'Name' and 'Hostname/IP'
4. In 'New Host' dialog window choose 'SSH Public Key' radio button as a kind of authentication and copy SSH key to deployed host.

Actual results:
'Operation cancelled' message-box emerges with text:
'Error while executing action: Cannot install Host with empty password.'

Expected results:
Host is successfully deployed using SSH Public key authentication.

Reproducible only when using guide to deploy host.


From engine.log:

2020-05-04 17:56:52,247+02 WARN  [org.ovirt.engine.core.bll.hostdeploy.AddVdsCommand] (default task-32) [3b1b86ca-26ec-46e7-a986-1618ca33f214] Validation of action 'AddVds' failed for user admin@internal-authz. Reasons: VAR__ACTION__ADD,VAR__TYPE__HOST,$server 10.35.32.6,VDS_CANNOT_INSTALL_EMPTY_PASSWORD

Comment 11 Michal Skrivanek 2020-06-05 12:10:09 UTC
Martin, can you review?
I don't believe it's a blocker, but still, may be trivial

Comment 12 Radek Duda 2020-06-05 12:27:31 UTC
I reproduced now again with rhv-4.4.1.2-0.10.el8ev

Comment 13 RHEL Program Management 2020-06-18 14:03:02 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 14 Nikolai Sednev 2020-07-13 14:05:45 UTC
The original issue seems to be fixed, but host still fails to be added "InstallFailed":

Cluster - Guide Me
Configuration completed
Host alma03.qa.lab.tlv.redhat.com was added by admin@internal-authz.
7/13/204:44:23 PM

Ansible host-deploy playbook execution has started on host alma03.qa.lab.tlv.redhat.com.
7/13/204:44:23 PM

Host alma03.qa.lab.tlv.redhat.com installation failed. Failed to execute Ansible host-deploy role: Internal server error. Please check logs for more details: /var/log/ovirt-engine/ansible-runner-service.log.
7/13/204:44:24 PM


InstallFailed

Tested on Software Version:4.4.1.8-0.7.el8ev.

Comment 15 Dana 2020-07-13 16:30:31 UTC
I found what the issue is,
Nikolai, can you open a different bug for this as this error isn't related to the original bug which was fixed & tested?
Thanks,

Comment 16 Ivana Saranova 2020-07-13 17:04:47 UTC
Confirming functionality tested by Nikolai and the successful installation of the host, no InstallFailed for me.

Verified in:
ovirt-engine-4.4.1.8-0.7.el8ev.noarch

Comment 17 Nikolai Sednev 2020-07-14 16:54:06 UTC
(In reply to Dana from comment #15)
> I found what the issue is,
> Nikolai, can you open a different bug for this as this error isn't related
> to the original bug which was fixed & tested?
> Thanks,

Sure, here goes https://bugzilla.redhat.com/show_bug.cgi?id=1856907.

Comment 18 Sandro Bonazzola 2020-08-05 06:25:17 UTC
This bugzilla is included in oVirt 4.4.1 release, published on July 8th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.1 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.