Bug 1677575

Summary: [RFE] Support Export/Import of Domain with Ansible Method
Product: Red Hat CloudForms Management Engine Reporter: Loic Avenel <lavenel>
Component: AutomateAssignee: Patrik Kománek <pkomanek>
Status: CLOSED ERRATA QA Contact: Ganesh Hubale <ghubale>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: unspecifiedCC: ghubale, mfeifer, mkanoor, obarenbo, pkomanek, simaishi, smallamp, tfitzger
Target Milestone: GAKeywords: RFE
Target Release: 5.11.0Flags: mfeifer: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-12 13:35:26 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:
Bug Depends On: 1677548    
Bug Blocks:    

Description Loic Avenel 2019-02-15 09:34:21 UTC
[RFE] Support Export/Import of Domain with Ansible Method

Comment 1 Tina Fitzgerald 2019-02-15 15:31:06 UTC
Hi Patrik,

This is what we discussed the other day.
 
We decided to implement this by modifying the UI code to capture unique values for these fields:

repository
playbook
credentials
vault credentials

Please let me know if you have any questions.

Thanks,
Tina

Comment 3 Patrik Kománek 2019-05-22 12:21:49 UTC
fixed in PR: https://github.com/ManageIQ/manageiq-automation_engine/pull/303

Comment 5 Ganesh Hubale 2019-05-25 03:48:37 UTC
Hi Patrik and Tina,

Please provide test steps for verifying this RFE. It will be very helpful to verify this BZ.

Thanks, 
Ganesh

Comment 6 Patrik Kománek 2019-05-27 11:37:11 UTC
Steps for QE:
1) Go to Automation -> Automate -> Explorer ... and create a new automate method wit playbook type. 
2) Fill the required fields, for instance repository and playbook. You can create these fields by using the UI or rails console (before step 1).
   (there are 5 fields, which will be converted: repository, playbook, credentials, vault credentials, cloud credentials)
3) Go to Automation -> Automate -> Import/Export .... and click on the datastore export.
   -> You can check, that these 5 playbook method fields are stored as a names insted of IDs.
4) Go to Automation -> Automate -> Import/Export .... and select the exported file and import it.
   -> In case where you have all linked objects with the same name the import will be successful. 
   -> In other case(you can remove the linked object) you will get the error with specific error message for every invalid attribute. 
   -> You can also modify the exported file and change these name fields to something else to be able to produce the error messages.

Comment 7 Ganesh Hubale 2019-05-27 14:28:47 UTC
Embedded Ansible role is not getting enabled on 5.11.0.5
Waiting for this BZ to get fixed: https://bugzilla.redhat.com/show_bug.cgi?id=1677548

Comment 9 Ganesh Hubale 2019-07-22 12:29:13 UTC
Fixed!

Verified on version: 5.11.0.15.20190718144823_3d0108f

Comment 12 errata-xmlrpc 2019-12-12 13:35:26 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://access.redhat.com/errata/RHBA-2019:4199