Bug 1691497 - conversion_host_enable.yml fails if .ssh directory not present under ~vdsm
Summary: conversion_host_enable.yml fails if .ssh directory not present under ~vdsm
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: V2V
Version: 5.10.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.11.0
Assignee: Fabien Dupont
QA Contact: Yadnyawalk Tale
Red Hat CloudForms Documentation
URL:
Whiteboard: v2v
Depends On:
Blocks: 1704295
TreeView+ depends on / blocked
 
Reported: 2019-03-21 18:20 UTC by David Luong
Modified: 2019-12-13 15:01 UTC (History)
7 users (show)

Fixed In Version: 5.11.0.9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1704295 (view as bug list)
Environment:
Last Closed: 2019-12-13 15:01:11 UTC
Category: Bug
Cloudforms Team: V2V
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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