Bug 1739865

Summary: [v2v] Enable conversion is failing on finding the oVirt.v2v-conversion-host role
Product: Red Hat CloudForms Management Engine Reporter: Ilanit Stein <istein>
Component: V2VAssignee: Fabien Dupont <fdupont>
Status: CLOSED DUPLICATE QA Contact: Sudhir Mallamprabhakara <smallamp>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: unspecified    
Version: unspecifiedCC: bthurber
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-11 10:46:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
evm.log none

Description Ilanit Stein 2019-08-11 10:44:10 UTC
Description of problem:
When trying to Enable conversion host, it fails, on not finding the oVirt.v2v-conversion-host role.

Details:
When trying to enable conversion host vi CFME UI, it fails immediately. 
Downloading the log, actually downloads an empty log.

In evm.log this is the error, that indicate the problem:
[----] E, [2019-08-11T06:04:24.010471 #56901:2ac513a565c4] ERROR -- : MIQ(ConversionHost#ansible_playbook) ansible-playbook /usr/share/v2v-conversion-host-ansible/playbooks/conversion_host_check.yml --inventory f01-h04-000-1029u.rdu2.scalelab.redhat.com, --become --extra-vars="ansible_ssh_common_args='-o StrictHostKeyChecking=no'" --user root --private-key /tmp/ansible_key20190811-56901-1johusa --extra-vars '{"v2v_host_type":"rhevm","v2v_transport_method":"vddk"}' ==> ERROR! the role 'oVirt.v2v-conversion-host' was not found in /usr/share/v2v-conversion-host-ansible/playbooks/roles:/etc/ansible/roles:/var/www/miq/vmdb/content/ansible_consolidated/roles:/usr/share/v2v-conversion-host-ansible/playbooks

checking the CFME machine indeed show that the the role oVirt.v2v-conversion-host indeed cannot be found in the expected paths.

It is located in this path: /usr/share/ansible/roles/oVirt.v2v-conversion-host

Work around for the problem:
In CFME machine, copy the role from /usr/share/ansible/roles/oVirt.v2v-conversion-host 
to /usr/share/v2v-conversion-host-ansible/playbooks/roles/oVirt.v2v-conversion-host:

   $ cd /usr/share/v2v-conversion-host-ansible/playbooks/
   $ mkdir roles
   $ cd roles/
   $ mkdir oVirt.v2v-conversion-host
   $ cd oVirt.v2v-conversion-host/
   $ cp -R /usr/share/ansible/roles/oVirt.v2v-conversion-host/* .


Version-Release number of selected component (if applicable):
CFME-5.11.0.18.20190806180636_1dd6378

How reproducible:
100%

Expected results:
1. Enable conversion host from CFME UI should work fine, as is, without the need to change anything in the CFME machine.
2. If possible, make the playbook download a file with details on the failure,
so that there will be no need to dig into evm.log, to find the failure cause.

Additional info:
On previous CFME version - CFME-5.11.0.17, enable conversion host worked fine.
(I did not change anything in the CFMe machine, to make it work.

Comment 2 Fabien Dupont 2019-08-11 10:46:28 UTC

*** This bug has been marked as a duplicate of bug 1738643 ***

Comment 3 Ilanit Stein 2019-08-11 10:57:49 UTC
Created attachment 1602600 [details]
evm.log

Look in the evm.log for this error:

[----] E, [2019-08-11T06:04:24.010471 #56901:2ac513a565c4] ERROR -- : MIQ(ConversionHost#ansible_playbook) ansible-playbook /usr/share/v2v-conversion-host-ansible/playbooks/conversion_host_check.yml --inventory f01-h04-000-1029u.rdu2.scalelab.redhat.com, --become --extra-vars="ansible_ssh_common_args='-o StrictHostKeyChecking=no'" --user root --private-key /tmp/ansible_key20190811-56901-1johusa --extra-vars '{"v2v_host_type":"rhevm","v2v_transport_method":"vddk"}' ==> ERROR! the role 'oVirt.v2v-conversion-host' was not found in /usr/share/v2v-conversion-host-ansible/playbooks/roles:/etc/ansible/roles:/var/www/miq/vmdb/content/ansible_consolidated/roles:/usr/share/v2v-conversion-host-ansible/playbooks

The error appears to be in '/usr/share/v2v-conversion-host-ansible/playbooks/conversion_host_check.yml': line 5, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  roles:
    - role: oVirt.v2v-conversion-host
      ^ here