Bug 1691497

Summary: conversion_host_enable.yml fails if .ssh directory not present under ~vdsm
Product: Red Hat CloudForms Management Engine Reporter: David Luong <dluong>
Component: V2VAssignee: Fabien Dupont <fdupont>
Status: CLOSED CURRENTRELEASE QA Contact: Yadnyawalk Tale <ytale>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.10.0CC: bthurber, dmetzger, fdupont, jocarter, jprause, simaishi, tgolembi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: v2v
Fixed In Version: 5.11.0.9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1704295 (view as bug list) Environment:
Last Closed: 2019-12-13 15:01:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: V2V Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1704295    

Description David Luong 2019-03-21 18:20:12 UTC
Description of problem:
conversion_host_enable.yml fails if .ssh directory not present under ~vdsm

Version-Release number of selected component (if applicable):
IMS 1.1

How reproducible:
Always

Steps to Reproduce:
1.  Have a rhv host that doesn't have .ssh dir present
2.
3.

Actual results:
    "msg": "non-zero return code", 
    "rc": 1, 
    "start": "2019-03-21 13:04:31.231980", 
    "stderr": "Saving key \"/.ssh/id_rsa\" failed: No such file or directory", 
    "stderr_lines": [
        "Saving key \"/.ssh/id_rsa\" failed: No such file or directory"
    ], 
    "stdout": "Generating public/private rsa key pair.", 
    "stdout_lines": [
        "Generating public/private rsa key pair."
    ]

Expected results:
Playbook is successful.

Additional info:
Created PR for master:
https://github.com/oVirt/v2v-conversion-host/pull/48
IMS 1.1:
https://github.com/oVirt/v2v-conversion-host/pull/47

Comment 2 Tomáš Golembiovský 2019-03-22 09:01:10 UTC
Patch merged upstream. Commit ID:

    0afc7edd98f3e420cf844d121a69db7a763ff77e

Comment 8 Yadnyawalk Tale 2019-07-30 13:01:10 UTC
Fixed! Tested with v2v-conversion-host-ansible-1.14.2-1.el8ev.noarch package version.
Checked on 5.11.0.16.20190724210259_2b4aa51