Red Hat Bugzilla – Bug 828938
The agent running in background is stopped after removing plugins with types in inventory.
Last modified: 2013-09-03 13:01:13 EDT
Created attachment 589558 [details]
Description of problem:
The agent running on the background is stopped after removing jBossAS7 plugin from jon.
Version-Release number of selected component (if applicable):
Build Number: 05c820d:aaa5a79
Steps to Reproduce:
1.Clean installation of jon3.1.0.CR2 + jon-plugin-pack-eap-3.1.0.CR2 is running, eap6 running and imported to jon inventory, the rhq agent is running on the background
2.go to administration>agent plugins
3.disable jBossAS7 plugin
4.delete jBossAS7 plugin
The agent is stopped.
The agent is running.
I've reproduced this with JON 3.1.0.GA EAP and Postgres plugins. Although the agent was unaffected when deleting plugins that were not being used(Ex. IIS plugin on Linux box). Not sure if that's relevant yet. Moving this to ON_DEV.
A few more data points.
- Doesn't seem to happen when agent is running in console mode.
- After background agent goes down if you restart the agent it seems then operate unaffected.
This is fixed with commit 0a0c9a990684675c to master.
Leaving this ON_DEV as this commit needs to be cherrypicked to the release branch for 3.1.1 still.
Another update(typo and thread identification) for this issue to master with commit 21ca86fc1c1be1d5c41089.
Updated title to reflect how this issue is not exclusively related to AS7 specifically but to any plugins where types have been imported into inventory and then later deleted.
This has always been a problem from we implemented resource type deletion. The problem was that the request to reboot the agent was always running as a daemon thread which meant that when the PC reboot killed all non-daemon threads that the VM would stop as it should. If you tested resource type deletion, in 'console' mode, the input loop was running as a non-daemon thread such that the vm persisted and the logic proceeded as expected.
We should update the release notes for 3.0/3.1 about this as it means that deleting imported types would cause all background agents to shutdown requiring restart.
Removing target as this was not addressed in the product and was only committed and verified in master.
Bulk closing of old issues that are in VERIFIED state.