Bug 1438803

Summary: create_provision_request method result : Multiple parents found
Product: Red Hat CloudForms Management Engine Reporter: Gellert Kis <gekis>
Component: ProvidersAssignee: Adam Grare <agrare>
Status: CLOSED DUPLICATE QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: high    
Version: 5.7.0CC: gekis, jfrey, jhardy, mkanoor, obarenbo, tfitzger, william.deur
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1485278 (view as bug list) Environment:
5.7.1.3
Last Closed: 2017-04-17 12:55:58 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:    
Bug Blocks: 1485278    

Comment 2 Greg McCullough 2017-04-04 13:24:30 UTC
This is actually a known issue in the providers area.

The resolution, as far as I am aware, is to run the following script on the appliance: tools/delete_ems_metadata_relationships.rb followed by a refresh of the providers.

There was a recent fix that should address this issue in the future: https://github.com/ManageIQ/manageiq/pull/14060

Sending to the Providers team to review and update.

Comment 5 Adam Grare 2017-04-17 12:55:58 UTC
Gellert there is a hotfix attached to https://bugzilla.redhat.com/show_bug.cgi?id=1428079#c6
I'm going to close this as a duplicate, can you try applying that hotfix and see if it resolves the issue?

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

Comment 9 Gellert Kis 2017-05-23 12:50:19 UTC
Hi Adam ,

This is different because bug 1379464 is appear when 
"When clicking on instances there is an error page displayed that states: Multiple parents found. [vm_cloud/explorer]"

but this bug is during service_template_provision_task .

Yes we run the script to cleanup multiple parents :
Customer have to run periodically the delete_ems_metadata_relationships.rb. 
 
- delete_ems_metadata_relationships.rb was run by a colleague on multiple occasions.

- Performed automate reset  : The automate domain of ManageIQ and 'Red Hat' are up to date.

- Running tools/delete_ems_metadata_relationships.rb : this script temporary give workaround ? yes .

Comment 10 Adam Grare 2017-05-23 13:40:32 UTC
Right you hit the error on a different page but the root cause is still the same as https://bugzilla.redhat.com/show_bug.cgi?id=1379464

You would have to have run the delete_ems_metadata_relationships.rb script after upgrading to 5.7.2.  The idea being that fix would prevent new multiple parent relationships from being created and running the script cleans up all the old ones.

If you did that and still hit an error please re-open https://bugzilla.redhat.com/show_bug.cgi?id=1379464 and attach logs and ideally a database dump.