Bug 1378116

Summary: [RFE] Cluster selection when deploying a vm on VMWare
Product: Red Hat CloudForms Management Engine Reporter: Chris Pelland <cpelland>
Component: AutomateAssignee: Adam Grare <agrare>
Status: CLOSED ERRATA QA Contact: Satyajit Bulage <sbulage>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.6.0CC: agrare, cpelland, dajohnso, fdewaley, gmccullo, jhardy, lavenel, mfeifer, mkanoor, obarenbo, sbulage, ssainkar, tfitzger
Target Milestone: GAKeywords: FutureFeature, ZStream
Target Release: 5.6.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.6.3.0 Doc Type: Enhancement
Doc Text:
There was a feature request to be able to provision a virtual machine without specifying a host but validating a cluster. This release of CloudForms validates if either a host or cluster is selected when provisioning on VMware.
Story Points: ---
Clone Of: 1377975 Environment:
Last Closed: 2016-11-30 19:54:32 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:
Bug Depends On: 1377975    
Bug Blocks:    

Comment 1 Adam Grare 2016-10-11 13:20:09 UTC
https://github.com/ManageIQ/manageiq/pull/11437 and https://github.com/ManageIQ/manageiq/pull/11665 have been backported to darga

Comment 2 CFME Bot 2016-10-11 13:21:16 UTC
New commit detected on ManageIQ/manageiq/darga:
https://github.com/ManageIQ/manageiq/commit/a6a212a019cb8191c022dbe97d6496aa20fd482e

commit a6a212a019cb8191c022dbe97d6496aa20fd482e
Author:     Brandon Dunne <brandondunne>
AuthorDate: Tue Sep 27 14:53:16 2016 -0400
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Tue Oct 11 09:16:24 2016 -0400

    Merge pull request #11437 from agrare/vmware_infra_provision_no_host
    
    Allow VMware provision without needing to specify a host
    (cherry picked from commit de4f24f31c66681066a0b85931653d872818c4ab)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1378116

 .../vmware/infra_manager/provision/cloning.rb      | 27 +++++++---
 .../provision/configuration/network.rb             | 61 ++++++++++------------
 .../vmware/infra_manager/provision/placement.rb    | 31 ++++++++---
 .../infra_manager/provision/state_machine.rb       |  5 +-
 .../infra_manager/provision/placement_spec.rb      | 14 +++--
 .../vmware/infra_manager/provision_spec.rb         | 35 ++++++++++++-
 6 files changed, 122 insertions(+), 51 deletions(-)

Comment 3 CFME Bot 2016-10-11 13:21:23 UTC
New commit detected on ManageIQ/manageiq/darga:
https://github.com/ManageIQ/manageiq/commit/8263d1b798be931ce5bc53ee6015dd2b26538a05

commit 8263d1b798be931ce5bc53ee6015dd2b26538a05
Author:     Brandon Dunne <brandondunne>
AuthorDate: Wed Oct 5 09:54:44 2016 -0400
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Tue Oct 11 09:17:58 2016 -0400

    Merge pull request #11665 from agrare/vmware_infra_provisioning_cluster_validation
    
    Validate either a host or cluster is selected when provisioning on VMware
    (cherry picked from commit 5ef33b185bfc6f961089595ef5ab4b142efcc45c)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1378116

 .../providers/vmware/infra_manager/provision_workflow.rb  |  2 ++
 .../provision_workflow/dialog_field_validation.rb         | 15 +++++++++++++++
 .../miq_provision_vmware_dialogs_template.yaml            |  4 ++--
 3 files changed, 19 insertions(+), 2 deletions(-)
 create mode 100644 app/models/manageiq/providers/vmware/infra_manager/provision_workflow/dialog_field_validation.rb

Comment 4 Satyajit Bulage 2016-11-23 08:22:17 UTC
Successfully provisioned a VM, by selecting only cluster field from Environment. It never gives any error for Host selection as Host Selection was done by Vmware.

Verified Version:- 5.6.3.1.20161121165709_0acddf6

Comment 6 errata-xmlrpc 2016-11-30 19:54:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2839.html