Bug 1375225

Summary: Google provisioning not running pre and post methods.
Product: Red Hat CloudForms Management Engine Reporter: William Fitzgerald <wfitzger>
Component: AutomateAssignee: William Fitzgerald <wfitzger>
Status: CLOSED ERRATA QA Contact: Dmitry Misharov <dmisharo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: jhardy, mfalesni, mkanoor, obarenbo, simaishi, tfitzger
Target Milestone: GA   
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: automate
Fixed In Version: 5.7.0.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-04 13:00:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:

Description William Fitzgerald 2016-09-12 13:56:35 UTC
Description of problem:

When provisioning for Azure, the pre and post methods are missing.


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


How reproducible:
100%

Steps to Reproduce:
1.  Provision a VM using Google provider
2.
3.

Actual results:
Pre_provision and Post_provision methods are missing


Expected results:
Pre_provision and Post_provision methods should run.

Additional info:
These methods are vendor specific and Google is missing.   Google needs the generic methods and they are missing also. The schema needs to be updated to call the generic methods when the provider is Google.  

Please assign to wfitzger

Comment 4 CFME Bot 2016-09-13 22:51:06 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/22b4d4a8b2e4556073132c57c48b3f8663c5ac41

commit 22b4d4a8b2e4556073132c57c48b3f8663c5ac41
Author:     william fitzgerald <wfitzger>
AuthorDate: Mon Sep 12 15:57:23 2016 -0400
Commit:     william fitzgerald <wfitzger>
CommitDate: Mon Sep 12 15:57:23 2016 -0400

    Automate - Added Google pre and post provisioning.
    
    Added relationship and method fields for Google.
    
    Configured Google for generic pre and post provisioning methods.
    
    http://talk.manageiq.org/t/azure-and-amazon-vm-post-provisioning/1691
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1375225

 .../StateMachines/Methods.class/__class__.yaml     | 40 ++++++++++++++++++++++
 .../StateMachines/Methods.class/postprovision.yaml |  2 ++
 .../StateMachines/Methods.class/preprovision.yaml  |  2 ++
 3 files changed, 44 insertions(+)

Comment 5 Dmitry Misharov 2016-10-10 11:35:23 UTC
Verified in 5.7.0.4-alpha1.20161005153002_cfc8a23. Pre_provision and Post_provision methods work for GCE instances.

Comment 7 errata-xmlrpc 2017-01-04 13:00:21 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/RHBA-2017-0012.html