Description of problem: In cloudforms 4.0, vms deployed in a multi-cluster rhevm environment are tied to the cluster of the template Version-Release number of selected component (if applicable): cfme-5.4.5 How reproducible: all the time Steps to Reproduce: 1. deploy a rhevm environment with multiple clusters 2. deploy from templates using prov.set_cluster 3. Actual results: the prov.set_cluster is not honored Expected results: the prov.set_cluster is honored Additional info: workaround : use prov.set_option(:placement_cluster_id)
I don't see this as RFE, We are not aligning with RHEV fonctionallities. Customer cannot deploy VMs today because you cannot select Clusters you need. SA has to enforce cluster in Ruby to fix this issue. but provision instance is broken.
So after some emailing it seems there is a deeper problem here - on RHEVM the new VM can be created only in the same datacenter as the template. CFME does not know what a datacenter is. So currently it does not even offer to choose any cluster except the one the template belongs to. We need to decide what to do with this.
Some more details: On RHEV 3.6, it is possible to create a VM from a template on the same data center, and have the VM's cluster, other than the template's cluster. On CFME side, provision a VM, can be only to the template's cluster.
https://github.com/ManageIQ/manageiq/pull/9722
https://github.com/ManageIQ/manageiq/pull/9942
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/0251c83adf2e3417bb610ff44671cdbd157ffe85 commit 0251c83adf2e3417bb610ff44671cdbd157ffe85 Author: borod108 <bodnopoz> AuthorDate: Mon Jul 11 16:06:22 2016 +0300 Commit: borod108 <bodnopoz> CommitDate: Wed Jul 20 18:28:03 2016 +0300 Changed allowed_host_obj override in rhevm provision_workflow Changing allowed_host_obj and allowed_datacenters override in redhat provision_workflow so that all hosts from same data center will be returned not only from same cluster. https://bugzilla.redhat.com/show_bug.cgi?id=1339309 .../redhat/infra_manager/provision_workflow.rb | 24 +++++++++++++++------- app/models/miq_request_workflow.rb | 8 ++++---- 2 files changed, 21 insertions(+), 11 deletions(-)
Tested on: CFME 5.7.0.0.20160906172503_12f65cb RHV-4.0.4.2-0.1.el7ev Provision VM from template, in case there are more than one cluster, now allow choosing in the Provision tab clusters other than the template cluster, and provision request start, but due to current provision bug 1374995, provision VM eventually fail. Need to be retest once bug 1374995 resolved.
Verified on CFME-5.7.0.1.20160913164703_66caf07, along with adding the fix for bug 1374995. VM provisioned from template successfully on a cluster, other than the template cluster, on the same datacenter. VM also started successfully.