Bug 1780110 - [v2v] Possible to configure a VM, as a conversion host successfully, though v2v required packages do not exist.
Summary: [v2v] Possible to configure a VM, as a conversion host successfully, though v...
Keywords:
Status: CLOSED DUPLICATE of bug 1810135
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: V2V
Version: 5.11.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.11.z
Assignee: Fabien Dupont
QA Contact: Ilanit Stein
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-05 12:19 UTC by Ilanit Stein
Modified: 2020-03-05 16:50 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-05 16:50:53 UTC
Category: Bug
Cloudforms Team: V2V
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ilanit Stein 2019-12-05 12:19:43 UTC
Description of problem:
On CFME-5.11.1.1, using the bellow rest api request, I managed to enable a RHV running VM, that contain a RHEL-7.6 OS, without the required virt-v2v repos or packages. The enable process took ~1 minute, much shorter than a valid  Conversion host enable would normally take. 

I did not try to use it a conversion host, but I would expect it to fail.

Enable Conversion host api request:
==================================
URL: https://<cfme-fqdn>/api/conversion_hosts

Method: POST
Body:

{
    "action": "create",
    "resource": {
        "name": "<vm name>",
        "auth_user": "root",
        "conversion_host_ssh_private_key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----",
        "max_concurrent_tasks": 10,
        "resource_id": "39",    
        "resource_type": "ManageIQ::Providers::Redhat::InfraManager::Vm",
        "vmware_vddk_package_url": "http://...VMware-vix-disklib-stable.tar.gz"
    }
}

Version-Release number of selected component (if applicable):
CFME-5.11.1.1
RHV-4.3.7

Expected results:
The Enable conversion host should have failed, on missing repos/packages.

Additional info:
On CFME-5.11.1.

Comment 3 Fabien Dupont 2019-12-11 15:52:10 UTC
In the test environment, the VM had no IP address, so the Ansible playbook inventory was empty, so the playbook successfully did nothing.
We need to check that the resource of the conversion host has at least one IP address.

Comment 4 Fabien Dupont 2020-03-05 16:50:53 UTC

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


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