Bug 1145732 - getLiveResourceConfiguration doesn't store resource configuration to DB
Summary: getLiveResourceConfiguration doesn't store resource configuration to DB
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: CLI, Configuration
Version: 4.13
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact: Filip Brychta
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-23 15:04 UTC by Filip Brychta
Modified: 2020-04-27 01:29 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1098187 0 unspecified NEW Resources with status down are not included in dynagroups which use resourceConfiguration in expression 2022-03-31 04:28:09 UTC
Red Hat Bugzilla 1129304 0 unspecified CLOSED Newly imported resources are not included in dynagroups which use resourceConfiguration in expression for several hours 2021-02-22 00:41:40 UTC

Internal Links: 1098187 1129304

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


Note You need to log in before you can comment on or make changes to this bug.