| Summary: | Negative test for Drift (no agent running) produces unhandled exception | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Mike Foley <mfoley> | ||||||||
| Component: | drift | Assignee: | RHQ Project Maintainer <rhq-maint> | ||||||||
| Status: | CLOSED NOTABUG | QA Contact: | Mike Foley <mfoley> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | high | ||||||||||
| Version: | 4.1 | CC: | jsanda, jshaughn | ||||||||
| 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: | 2011-11-01 20:21:21 UTC | Type: | --- | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Bug Depends On: | |||||||||||
| Bug Blocks: | 707225 | ||||||||||
| Attachments: |
|
||||||||||
Created attachment 521245 [details]
drift error 2
Created attachment 521246 [details]
server log
This situation is not specific to drift. This situation occurs any time the server sends a request to an agent that is down or otherwise unreachable. I believe that we display a message in the UI indicating as such, and I also think that the exception in the log is very descriptive. Here is the exception message from the attached server log file, Caused by: java.lang.IllegalStateException: Agent could not be reached and may be down (see server logs for more). Could not perform drift detection request [DriftConfiguration [id=10001, name=File System, enabled=true, interval=60, resource=Resource[id=10001, type=Linux, key=foleymonsterbox1.foleyhomenetwork, name=foleymonsterbox1.foleyhomenetwork, parent=<null>, version=Linux 2.6.35.12-88.fc14.x86_64], basedir=BaseDirectory [context=fileSystem, name=/home/mfoley/folderwatchedbyDrift], includes=[], excludes=[]]] What more are you looking for? +1 this is working as expected. Unless there is something we're missing, please close. |
Created attachment 521244 [details] drift error 1 Description of problem: Negative test for Drift (no agent running) produces unhandled exception Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. make sure agent is not running 2. setup a Drift Configuration 3. do Drift Detection Actual results: Illegal State Exception Expected results: Negative test is handled more gracefully Additional info: attachments