Bug 822968

Summary: RFE: ProxyFactory should make resource configuration always available
Product: [Other] RHQ Project Reporter: Lukas Krejci <lkrejci>
Component: CLIAssignee: Lukas Krejci <lkrejci>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: 4.4CC: fbrychta, hrupp, jsanda
Target Milestone: ---Keywords: FutureFeature
Target Release: JON 3.1.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 847804 (view as bug list) Environment:
Last Closed: 2013-09-03 15:19:42 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:    
Bug Blocks: 847804    

Description Lukas Krejci 2012-05-18 16:09:28 UTC
Description of problem:

Directly after import, the resource has no attached resource configuration object. This object is only attached with the first configuration report from the agent or at a request for live configuration of the resource.

The GUI makes sure to always get the configuration of the resource, reaching out to the agent to get the live values.

The ProxyFactory doesn't provide such ability but it should, being the convenience wrapper that we use in the CLI.

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


How reproducible:
always

Steps to Reproduce:
1. Import a resource
2. Instantly after that create a proxy for that resource in the CLI
3. do: pretty.print(resource.resourceConfiguration.properties)
  
Actual results:
0 rows

Expected results:
a configuration object containing the true resource configuration

Additional info:

Comment 1 Charles Crouch 2012-05-21 13:50:14 UTC
Mis-added as7-plugin as blocker, removing

Comment 2 Charles Crouch 2012-05-21 15:43:28 UTC
I'd like to see this in 3.1.1 as it makes our scripts more complex

Comment 3 John Sanda 2012-08-02 18:52:26 UTC
JON 3.1.1 ER1 build is available. Moving to ON_QA.

https://brewweb.devel.redhat.com/buildinfo?buildID=226942

Comment 4 John Sanda 2012-08-03 01:17:03 UTC
Moving back to ON_DEV. This was incorrectly moved to ON_QA in comment 3.

Comment 5 Lukas Krejci 2012-08-14 11:48:30 UTC
release/jon3.1.x http://git.fedorahosted.org/cgit/rhq/rhq.git/diff/?id=e789b4e53ee6989e2f1abeb9b006eb56e725a900
Author: Lukas Krejci <lkrejci>
Date:   Tue Aug 14 13:44:58 2012 +0200

    [BZ 847804] - make sure to fetch the latest known resource config through
    the proxy factory.
    (cherry picked from commit bbdcaee2ca23717a53277fe0bb479f761f46025e)

Comment 6 John Sanda 2012-08-22 05:51:55 UTC
Moving to ON_QA. The JON 3.1.1 ER3 build is available at https://brewweb.devel.redhat.com/buildinfo?buildID=230321.

Comment 7 Filip Brychta 2012-08-24 12:22:41 UTC
Verified on JON 3.1.1 ER3

Comment 8 Heiko W. Rupp 2013-09-03 15:19:42 UTC
Bulk closing of old issues in VERIFIED state.