Bug 1511214
Summary: | EmsRefresh.update_relats_by_ids error for 'base_class' for deleted VM | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | vaclav.miller | ||||||
Component: | Providers | Assignee: | James Wong <jwong> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Kedar Kulkarni <kkulkarn> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 5.8.0 | CC: | akarol, gblomqui, jfrey, jhardy, jwong, obarenbo, simaishi, vaclav.miller | ||||||
Target Milestone: | GA | ||||||||
Target Release: | 5.10.0 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2019-02-07 23:00:36 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | Bug | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | VMware | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Please assess the impact of this issue and update the severity accordingly. Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition. If it's something like a tracker bug where it doesn't matter, please set the severity to Low. Which provider is this for? It is VMware vCenter (although managed by vCloud Director. But vCD is not enabled at Cloudforms as provider) Is the VM getting deleted? VM was provisioned approximately one hour before error. VM was terminated approximately 30 minutes before error appeared. I remember we looked at this before and it was caused by deleted folders and didn't have any negative impact. If you have having issues I doubt it is caused by this exception, can you attach the full log set and describe any negative behavior you are seeing? James can you see if there is anything we can do to prevent this exception? Check for nil before removing children maybe? Created attachment 1375841 [details]
Current logs
Attaching current fresh logs.
Although it may look like this bug does not have impact, it exist in current code base and may be misleading in identification of another issues. Any progress on this case? Thx. New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/d456dec81c3d0dfd962a3325cddcab2c7566e23a commit d456dec81c3d0dfd962a3325cddcab2c7566e23a Author: James Wong <jwong> AuthorDate: Thu Feb 22 22:33:01 2018 -0500 Commit: James Wong <jwong> CommitDate: Fri Mar 2 16:14:05 2018 -0500 removal of nil before remove_children Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1511214 app/models/mixins/relationship_mixin.rb | 2 +- spec/models/mixins/relationship_mixin_spec.rb | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) On Build, 5.10.0.23, After trying to provision and retire VM, I reviewed logs and did not find any errors like in https://bugzilla.redhat.com/attachment.cgi?id=1349612 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 |
Created attachment 1349612 [details] base_class error trace Description of problem: we are getting refresh ems refresh error: (EmsRefresh.update_relats_by_ids) An error occurred while disconnecting id [1000000000374]: undefined method `base_class' for NilClass:Class Version-Release number of selected component (if applicable): CloudForms Version 5.8.1.5.20170725160636_e433fc0 VM was provisioned cca 1 hour before error and was retired cca 30 min before error. We are getting several errors of the same kind. Attached is part of log with error trace. How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: