Bug 803783

Summary: [as7] shutdown, restart, and reload operations do not work on AS7 Server types
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: PluginsAssignee: Heiko W. Rupp <hrupp>
Status: CLOSED DUPLICATE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: 4.3CC: ccrouch, hrupp
Target Milestone: ---   
Target Release: RHQ 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
AS 7.1.1.Final
Last Closed: 2012-03-26 15:15:17 UTC Type: ---
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: 707223    

Description Ian Springer 2012-03-15 16:10:36 UTC
---shutdown---
For a Standalone Server, shutdown returns the following error:

<Operation <Operation{operation='shutdown', address=Address{path: }, additionalProperties={}}> returned <"JBAS010850: No handler for operation shutdown at address []","rolled-back":true}>, rolled-back=false>

For a Domain Server, shutdown does not fail with this error, but it does not appear to actually shutdown the server.

---restart---
For a Standalone Server, restart fails with the same error, because under the covers it calls the shutdown operation.

---reload---
For a Standalone Server, reload returns the following error:

<Operation <Operation{operation='reload', address=Address{path: }, additionalProperties={}}> returned <"JBAS010850: No handler for operation reload at address []","rolled-back":true}>, rolled-back=false>

---start---
Due to the design of my integration tests, I am unable to test the start operation until the shutdown operation is fixed, so I am not sure whether the start operation is working on either Server type.

Comment 2 Heiko W. Rupp 2012-03-16 10:44:11 UTC
comment #1 was bogus and for a different BZ

Comment 3 Heiko W. Rupp 2012-03-16 12:39:13 UTC

-- domain --

- shutdown works, but sometimes the server returns 'strange results' -- See also https://issues.jboss.org/browse/AS7-4192


-- standalone
- reload always works for me
- shutdown and start (and re-start) also work


For restart commit 7228af6170578 adds a larger (dynamic) wait time between shutdown and start to make sure the server is no longer responding to management requests before starting again.

Comment 4 Heiko W. Rupp 2012-03-16 12:39:37 UTC
Ian can you check if that helps you?

Comment 5 Mike Foley 2012-03-19 15:34:47 UTC
per BZ triage (crouch, loleary, mfoley)

Comment 6 Heiko W. Rupp 2012-03-19 16:28:18 UTC
finally pushed as 7228af6170578 to master

Comment 7 Heiko W. Rupp 2012-03-26 15:15:17 UTC
Closing - further work is done in Bug 804102

*** This bug has been marked as a duplicate of bug 804102 ***