Bug 1242132
| Summary: | update or delete on table "taxonomies" violates foreign key constraint "hosts_organization_id_fk" on table "hosts" | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Mahesh Taru <mtaru> |
| Component: | Discovery Plugin | Assignee: | Marek Hulan <mhulan> |
| Status: | CLOSED ERRATA | QA Contact: | Sachin Ghai <sghai> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.0.8 | CC: | bbuckingham, cwelton, lzap, mhulan, ohadlevy, sghai |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | http://projects.theforeman.org/issues/14294 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-07-27 11:14:24 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
Mahesh Taru
2015-07-11 09:14:56 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release. Can I get some suitable doc text to add to a rel note for this? thanks Upstream bug component is Discovery Plugin Moving to POST since upstream bug http://projects.theforeman.org/issues/14294 has been closed ------------- Marek Hulán Applied in changeset commit:foreman_discovery|6feb649b997ea3669b67051cf5ae18e6d1b5b821. Reset docs contact <> daobrien @mhulan: Hey.. Could you please help to provide verification steps. As per comment6, I guess, user should get proper error when he tries to delete org/location and when a discovered host is already associated to same org/location. Please confirm. Thanks Exactly, create a discovered host in org/loc, then try to delete that org/loc, it should display error message instead of 500. Thanks Marek. To verify this ba with sat62 GA snap13.1
I discovered a host with an org/location named mordo. Later, I tried to delete same location and got following error:
]# hammer -u admin -p changeme location delete --name mordo
Could not delete the location:
mordo is used by mac5254008e4530
On deleting the location from webUI:
2016-05-30 07:46:50 [app] [I] Processing by LocationsController#destroy as HTML
2016-05-30 07:46:50 [app] [I] Parameters: {"authenticity_token"=>"39f8c1o1kqJWvubXrv5F5W0T0xybyRSJr993F399Eak=", "id"=>"4-mordo"}
2016-05-30 07:46:50 [app] [E] You may not destroy mordo as it is in use!
2016-05-30 07:46:50 [app] [I] Failed to save: mordo is being used by a hidden Host::Discovered resource
2016-05-30 07:46:50 [app] [I] Redirected to https://cloud-qe-3.idmqe.lab.eng.bos.redhat.com/locations
Moving this to verified. 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-2016:1501 |