Bug 1739865 - [v2v] Enable conversion is failing on finding the oVirt.v2v-conversion-host role
Summary: [v2v] Enable conversion is failing on finding the oVirt.v2v-conversion-host role
Keywords:
Status: CLOSED DUPLICATE of bug 1738643
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: V2V
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: GA
: cfme-future
Assignee: Fabien Dupont
QA Contact: Sudhir Mallamprabhakara
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-11 10:44 UTC by Ilanit Stein
Modified: 2019-08-11 10:57 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-11 10:46:28 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
evm.log (5.28 MB, application/gzip)
2019-08-11 10:57 UTC, Ilanit Stein
no flags Details

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


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