Bug 1145732

Summary: getLiveResourceConfiguration doesn't store resource configuration to DB
Product: [Other] RHQ Project Reporter: Filip Brychta <fbrychta>
Component: CLI, ConfigurationAssignee: Nobody <nobody>
Status: NEW --- QA Contact: Filip Brychta <fbrychta>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.13CC: hrupp, theute
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 2014-09-23 15:04:40 UTC
Description of problem:
getLiveResourceConfiguration doesn't store resource configuration to DB so next invocation of getResourceConfiguration can still return empty configuration.

Here is my problem:
Dynagroup expressions can use resource configuration as a part of expression. I have a cli test which checks if created dynagroups contain correct resources after recalculation. This test imports new resource and recalculates dynagroups. Newly imported resource has empty configuration so it is not included into tested dynagroups which is wrong. So I need a way how to load resource's configuration via CLI. Right now the only way how to do it is to wait until the configuration is loaded automatically (which could take a long time so it is not suitable for this test) or call getLiveResourceConfiguration, update the configuration and update it again to revert original values which is really just a workaround.

So it would be much easier if the getLiveResourceConfiguration operation would store resource's configuration to DB so it would be not empty and next dynagroup recalculation would include the resource to tested group.

Version-Release number of selected component (if applicable):
4.13.0-SNAPSHOT
Build Number :	
0ee7953