Bug 1438821 - If host key was not added to engine machine playbook for setting up metrics fails
Summary: If host key was not added to engine machine playbook for setting up metrics f...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-metrics
Classification: oVirt
Component: Generic
Version: 1.0.1
Hardware: All
OS: All
unspecified
medium
Target Milestone: ovirt-4.1.4
: 1.0.5
Assignee: Yedidyah Bar David
QA Contact: Lukas Svaty
URL:
Whiteboard:
Depends On:
Blocks: oVirt-Metrics-and-Logs 1468892
TreeView+ depends on / blocked
 
Reported: 2017-04-04 13:35 UTC by Lukas Svaty
Modified: 2017-07-28 14:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-28 14:14:44 UTC
oVirt Team: Metrics
Embargoed:
rule-engine: ovirt-4.1+
lsvaty: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 77760 0 master MERGED ansible.cfg: Disable host key checking 2021-02-09 12:46:14 UTC

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


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