Bug 1540527
| Summary: | Exceptions in server and agent log after uninvetory of platform with storage node | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | Filip Brychta <fbrychta> | ||||
| Component: | Inventory, Agent, Plugin -- Other | Assignee: | Michael Burman <miburman> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Prachi <pyadav> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | JON 3.3.10 | CC: | loleary, pyadav, spinder | ||||
| Target Milestone: | ER01 | Keywords: | Regression, Triaged | ||||
| Target Release: | JON 3.3.11 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-10-16 17:06:49 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: | |||||||
| Attachments: |
|
||||||
|
Description
Filip Brychta
2018-01-31 10:04:07 UTC
The NPE is visible in JON 3.3.9 but the ERROR in server log is not -> it's a regression. In the master:
commit 8c8f998a197e2aabe065772abbfa5820fb247ce1 (HEAD -> master)
Author: Michael Burman <miburman>
Date: Mon Jul 9 17:01:28 2018 +0300
[BZ 1540527] If parentResourceContext is not available, stop discovery of agent
Server log does not have any error, but in agent logs we can still see the error: ************************************ ERROR [ResourceDiscoveryComponent.invoker.daemon-4] (org.rhq.plugins.agent.AgentDiscoveryComponent)- An error occurred while attempting to auto-discover the agent's own management interface java.lang.NullPointerException at org.rhq.plugins.agent.AgentDiscoveryComponent.getResourceKey(AgentDiscoveryComponent.java:133) at org.rhq.plugins.agent.AgentDiscoveryComponent.discoverResources(AgentDiscoveryComponent.java:76) at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.rhq.core.pc.util.DiscoveryComponentProxyFactory$ComponentInvocationThread.call(DiscoveryComponentProxyFactory.java:305) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) ************************************ Attached latest agent.log Created attachment 1484734 [details]
latest agent.log
That line number is from an old release, so either the agent wasn't updated or the build is missing something. Lines should be 136 & 79 for the first two items in the stack trace (133 is empty line in the current release/jon3.3.x) Problem with co-located agent is that new plugins are not downloaded after upgrade until it's restarted or operation Update all plugins is manually executed. When the agent has new plugins the issue is not visible -> marking as 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/RHSA-2018:2930 |