Bug 1595149
Summary: | dro.destroy: not removed from service | ||
---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Cyril Coupel <ccoupel> |
Component: | Automate | Assignee: | Patrik Kománek <pkomanek> |
Status: | CLOSED ERRATA | QA Contact: | Shveta <sshveta> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 5.9.0 | CC: | cpelland, mkanoor, mshriver, obarenbo, simaishi, sshveta, tfitzger |
Target Milestone: | GA | ||
Target Release: | 5.10.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 5.10.0.4 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-02-07 23:03:14 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: |
Description
Cyril Coupel
2018-06-26 08:49:16 UTC
Work-around is to remove the generic object from the service before deleting the object using the remove_from_service method. Patrik - I can see two possible solutions here and both likely make sense to implement. 1. Remove the generic object from all services in a before_destroy callback. 2. Call ".compact" on the services "generic_object" relationship so any nil objects are removed from the return. solved in PR: https://github.com/ManageIQ/manageiq/pull/17679 Fixed , Verified in 5.10.0.32.20190115185124_c957ada. The object was also removed from service once the generic object was destroyed . 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/RHSA-2019:0212 |