Bug 924304

Summary: Agent's operation 'Update All Plugins' is not blocking, subsequent operation fails because the Plugin container is still in shutdown process.
Product: [Other] RHQ Project Reporter: Filip Brychta <fbrychta>
Component: Agent, CLI, OperationsAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.6CC: hrupp
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 2013-03-21 14:21:00 UTC
Description of problem:
We have the following scenario in our CLI automation:
1- invoke 'Update All Plugins' operation
2- wait for operation result (wait for Success)
3- invoke another operation

Result:
Operation from step 3 fails because of bug 924281. So event though 'Update All Plugins' operation is successfully finished, subsequent operation fails because the Plugin container is still in shutdown process.

Expected result:
When the result of 'Update All Plugins' operation is Success, plugin container is in correct state and subsequent operation doesn't fail.

Version-Release number of selected component (if applicable):
Version: 4.7.0-SNAPSHOT
Build Number: 6a32fb9

How reproducible:
last 4 CLI automation runs failed because of this


Additional info:
Another consequence of this is that ConfigurationManager.getLiveResourceConfiguration(agent.id,false); 
returns null.

Similar scenario:
1- invoke 'Update All Plugins' operation
2- wait for operation result (wait for Success)
3- var conf = ConfigurationManager.getLiveResourceConfiguration(agent.id,false);

Result: 
conf is null