| Summary: | Re-deploy of a plugin with changed resource type name and created children fails | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Heiko W. Rupp <hrupp> | ||||
| Component: | Core Server | Assignee: | Nobody <nobody> | ||||
| Status: | NEW --- | QA Contact: | |||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 4.3 | CC: | hrupp | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | Type: | Bug | |||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
Created attachment 577306 [details]
Stack trace from console
Commented on wrong bz In fact set priority and blocking bugs incorrectly too. Fixing Setting medium as per Apr 16 BZ triage |
I have a plugin (as7), where I have a service "JVM-Definition". And have already created child resources of that type. Now I have changed the name to "JVM Definition". Redeploy leads to a huge stack trace with 13:38:30,781 ERROR [ResourceMetadataManagerBean] Failure during removal of obsolete ResourceTypes and Subcategories. java.lang.Exception: Failed to remove {jboss-as-7}JVM-Definiton. at org.rhq.enterprise.server.resource.metadata.ResourceMetadataManagerBean.removeResourceTypes(ResourceMetadataManagerBean.java:256) at org.rhq.enterprise.server.resource.metadata.ResourceMetadataManagerBean.removeObsoleteTypes(ResourceMetadataManagerBean.java:185) caused by a foreign-key violation 13:38:30,773 ERROR [JDBCExceptionReporter] FEHLER: Aktualisieren oder Löschen in Tabelle »rhq_resource_type« verletzt Fremdschlüssel-Constraint »rhq_create_res_hist_resource_type_id_fkey« von Tabelle »rhq_create_res_hist« Detail: Auf Schlüssel (id)=(10471) wird noch aus Tabelle »rhq_create_res_hist« verwiesen.