Bug 1654644

Summary: ProxyFactory.getResource for StorageService fails with Could not create custom interface
Product: [JBoss] JBoss Operations Network Reporter: Filip Brychta <fbrychta>
Component: CLIAssignee: Josejulio Martínez <jmartine>
Status: CLOSED ERRATA QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: medium    
Version: JON 3.3.11CC: jmartine, loleary, spinder
Target Milestone: ER01Keywords: Triaged
Target Release: JON 3.3.12   
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: 2019-06-27 15:58:45 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 Filip Brychta 2018-11-29 10:28:00 UTC
Description of problem:
ProxyFactory.getResource(10028) where 10028 is id of Storage Service StorageService fails with java.lang.IllegalStateException: Could not create custom interface for resource with id 10028

Version-Release number of selected component (if applicable):
JON 3.3.11

How reproducible:
Always

Steps to Reproduce:
1. start JON 3.3.11
2. download command line client (e.g. wget http://<yourServer>:7080/client/download)
3. unzip and login to the JON server:  e.g. ./rhq-cli.sh -s jon3x-server.bc.jonqe.lab.eng.bos.redhat.com -u user -p passw
4. in JON UI find id of Storage Service resource (RHQ Storage Node->Database Management Services->Storage Service) 

Actual results:
StorageService fails with java.lang.IllegalStateException: Could not create custom interface for resource with id 10028

Expected results:
No failures

Additional info:
Not a regression, visible in JON 3.3.10 too

Comment 1 Filip Brychta 2018-11-29 16:08:03 UTC
Adding missing step: 5. run ProxyFactory.getResource(10028) where 10028 is id from step 4

Comment 2 Josejulio Martínez 2019-03-07 16:26:31 UTC
commit bbb17bc45c1efd85a730c2c182f5d4c38ac943a4 (HEAD -> master)
Author: Josejulio Martínez <jmartine>
Date:   Wed Mar 6 11:01:07 2019 -0600

    Bug 1654644 - Check instance type before casting to PropertyDefinitionSimple

Comment 7 errata-xmlrpc 2019-06-27 15:58:45 UTC
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-2019:1631