Bug 830996

Summary: plugin container's OperationManager needs to support concurrent operations for different resources
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: Plugin ContainerAssignee: John Mazzitelli <mazz>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: high    
Version: 4.4CC: hrupp, jshaughn, rui.fc.alves
Target Milestone: ---   
Target Release: RHQ 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-01 10:12:57 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:
Attachments:
Description Flags
This one just calls rhq-cli.bat
none
This is the CLI script that runs none

Description John Mazzitelli 2012-06-11 21:35:07 UTC
The plugin container can support running operations on different resources concurrently. If you ask to invoke 2 or more operations on the same resource, those execute serially, but if you invoke an operation on resource 1 and another operation on resource 2, they can theoretically be allowed to run concurrently.

The PC doesn't do that.

Need to fix the OperationManager and write a unit test to show that this works.

Comment 1 John Mazzitelli 2012-06-11 21:38:28 UTC
git master commit: 04b75f0

the operation manager thread pool configuration needed to be adjusted. commited new unit test ParallelOperationsTest to test this.

Comment 2 Jay Shaughnessy 2012-06-11 21:39:52 UTC
I tested this using the attached scripts.  It hung before the fix and works after the fix.

Comment 3 Jay Shaughnessy 2012-06-11 21:40:59 UTC
Created attachment 591030 [details]
This one just calls rhq-cli.bat

Comment 4 Jay Shaughnessy 2012-06-11 21:41:54 UTC
Created attachment 591031 [details]
This is the CLI script that runs

Comment 5 Jay Shaughnessy 2012-06-11 21:44:15 UTC
Test Notes: Tte attached scripts would need to be updated for your environment.  Basically script-op.bat is the one which is the Script resource.  It invokes the CLI, which connects back to the server and executes an operation on RHQ Agent, via the second attachement - the CLI script.

Comment 6 Charles Crouch 2012-07-17 21:44:29 UTC
Non critical fix - retargeting at rhq4.5

Comment 7 Rui Alves 2012-07-19 09:33:17 UTC
*** Bug 718091 has been marked as a duplicate of this bug. ***

Comment 8 Heiko W. Rupp 2013-09-01 10:12:57 UTC
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.