Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1438821

Summary: If host key was not added to engine machine playbook for setting up metrics fails
Product: [oVirt] ovirt-engine-metrics Reporter: Lukas Svaty <lsvaty>
Component: GenericAssignee: Yedidyah Bar David <didi>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.0.1CC: bugs, sradco, stirabos
Target Milestone: ovirt-4.1.4Keywords: ZStream
Target Release: 1.0.5Flags: rule-engine: ovirt-4.1+
lsvaty: testing_ack+
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-28 14:14:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Metrics RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1402901, 1468892    

Description Lukas Svaty 2017-04-04 13:35:21 UTC
Description of problem:
When there was no ssh connection, and host is not saved in .ssh/known_hosts ansible playbook becomes interactive and need yes to add ECDSA key fingerprint. Not sure how I got to the state that host wasn't in the .ssh/known_hosts, but it was quite fresh engine upgraded from older 4.1.0 version.

For reproducer you just need to remove the host from it.


Version-Release number of selected component (if applicable):
ovirt-engine-metrics-1.0.1-1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. remove Host from .ssh/known_hosts
2. run /usr/share/ovirt-engine-metrics/setup/ansible/configure_ovirt_hosts_for_metrics.sh 

Actual results:
Ansible playbook waits for yest input on adding host to known

Expected results:
Should add unrecognized hosts automatically

Additional info:
[root ~]# /usr/share/ovirt-engine-metrics/setup/ansible/configure_ovirt_hosts_for_metrics.sh 

PLAY [Get ca cert from local file] *********************************************

TASK [setup] *******************************************************************
The authenticity of host 'ip.me (ip.me)' can't be established.
ECDSA key fingerprint is 8c:e0:7a:fb:1a:e3:a1:b5:87:80:aa:40:0c:00:00:b9.
Are you sure you want to continue connecting (yes/no)? yes
ok: [ip.me]

Comment 1 Yedidyah Bar David 2017-07-05 13:30:30 UTC
Filed bug 1467898 so that we try to find a better solution, as I do not like current. But could not find something simple and better.

Comment 2 Lukas Svaty 2017-07-18 16:28:32 UTC
verified in ovirt-engine-metrics-1.0.5-1.el7ev.noarch