Bug 1030082 - RFE: Shutdown server if server entity removed or missing
Summary: RFE: Shutdown server if server entity removed or missing
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core Server
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: GA
: RHQ 4.11
Assignee: John Mazzitelli
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-13 21:38 UTC by Stefan Negrea
Modified: 2014-07-21 10:13 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-07-21 10:13:38 UTC
Embargoed:


Attachments (Terms of Use)

Description Stefan Negrea 2013-11-13 21:38:35 UTC
Description of problem:
Currently, when a server is removed from the database via the Admin UI -> Servers, the removed continues to run. The server will be fully operational for a while after the removal however operational integrity cannot be guaranteed. So far this functionality was intended to clear the database from previously decommissioned servers in an HA environment. It was not intended to remove servers that are still operational.

An enhancement was requested to shutdown the server if the server entity is removed from the database. 

Use case for enhancement:
1. Install at least one RHQ server
2. Go to Admin UI -> Servers 
3. Remove a server from the list of servers
4. The removed servers stops itself (on the next run of the internal heartbeat)

Notes:
1. The removal can be initiated from any server for any other server
2. The shutdown might not be immediate, as it will happen on the next heartbeat of the removed server.
3. The removed server will recreate the it's database entry if restarted later.
4. It is the user responsibility to properly decommission the server before or after this removal. 
5. The removal will only ensure that the server shutdown, it cannot prevent restarts (for example, if tied to system life-cycle) and thus getting the server fully operational.

Comment 1 John Mazzitelli 2014-04-16 17:52:24 UTC
git commit to master: 02513a8a0c8703bdb4804e31ac0ffd7ec35a2819
git commit to release/3.2.x: 2a4a2476c5300eb63838c055f4953cbff181c07f

Comment 2 Heiko W. Rupp 2014-07-21 10:13:38 UTC
Bulk closing of RHQ 4.11 issues, now that RHQ 4.12 is out.

If you find an issue with those, please open a new BZ, linking to the old one.


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