Bug 1078488

Summary: NPE on storage node topology page if one or more nodes are no longer associated with a storage node resource
Product: [JBoss] JBoss Operations Network Reporter: Larry O'Leary <loleary>
Component: Core Server, Storage NodeAssignee: Jirka Kremser <jkremser>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: unspecified    
Version: JON 3.2CC: fbrychta, jkremser, lkrejci, myarboro
Target Milestone: DR02Keywords: Triaged
Target Release: JON 3.2.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1038270 Environment:
Last Closed: 2014-07-29 00:17:01 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:
Bug Depends On: 1038270    
Bug Blocks:    

Description Larry O'Leary 2014-03-19 18:59:29 UTC
+++ This bug was initially created as a clone of Bug #1038270 +++

Description of problem:
UI throws an exception because the resource id has not been assigned to the storage node yet.


Version-Release number of selected component (if applicable):
4.10.0-SNAPSHOT


How reproducible:
always few seconds after the clean installation


Steps to Reproduce:
1. install the RHQ
2. go to #Administration/Topology/StorageNodes

Actual results:
exception in server.log:

Caused by: java.lang.NullPointerException
	at org.rhq.enterprise.server.cloud.StorageNodeManagerBean.findUnackedAlertCounts(StorageNodeManagerBean.java:851) [rhq-server.jar:4.10.0-SNAPSHOT]
	at org.rhq.enterprise.server.cloud.StorageNodeManagerBean.getStorageNodeComposites(StorageNodeManagerBean.java:639) [rhq-server.jar:4.10.0-SNAPSHOT]


Expected results:
no exception

--- Additional comment from Jirka Kremser on 2013-12-04 14:21:35 EST ---

branch:  master
link:    http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=df44d50f6
time:    2013-12-04 20:10:37 +0100
commit:  df44d50f6fbbfd570335a7f40a8b98d9d8152a9a
author:  Jirka Kremser - jkremser
message: [BZ 1038270] - NPE when accessing the storage node view immediately
         after the install - NPE check added

Comment 1 Lukas Krejci 2014-03-21 14:13:40 UTC
commit bda5d648604fced83bdec5f143e43d62b4d34079
Author: Jirka Kremser <jkremser>
Date:   Wed Dec 4 20:04:49 2013 +0100

    [BZ 1038270] - NPE when accessing the storage node view immediately after the install - NPE check added
    
    (cherry picked from commit df44d50f6fbbfd570335a7f40a8b98d9d8152a9a)
    Signed-off-by: Lukas Krejci <lkrejci>

Comment 2 Jirka Kremser 2014-03-21 15:04:41 UTC
reverting ^ (bda5d648) and waiting with the cherry-picking until JON 3.2.1 GA is out

Comment 3 Simeon Pinder 2014-06-13 14:34:44 UTC
Moving to ON_QA as available for test in build:
http://jon01.mw.lab.eng.bos.redhat.com:8042/dist/release/jon/3.2.2.GA/6-13-2014_0900/

Comment 4 Filip Brychta 2014-06-16 14:35:11 UTC
Verified on
Version :	
3.2.0.GA Update 02
Build Number :	
dd34f04:ee37628

Msg There is no configuration available for this node. Is the agent running on the jon322-dr2-p.bc.jonqe.lab.eng.bos.redhat.com? is displayed

Comment 5 Larry O'Leary 2014-07-29 00:17:01 UTC
This has been verified and released in Red Hat JBoss Operations Network 3.2 Update 02 (3.2.2) available from the Red Hat Customer Portal[1].



[1]: https://access.redhat.com/jbossnetwork/restricted/softwareDetail.html?softwareId=31783