Bug 757178 - Non processed IOE prevents drift report
Summary: Non processed IOE prevents drift report
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: drift
Version: 4.2
Hardware: All
OS: All
urgent
urgent
Target Milestone: ---
: RHQ 4.3.0,JON 3.0.0
Assignee: Heiko W. Rupp
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: jon30-sprint9
TreeView+ depends on / blocked
 
Reported: 2011-11-25 17:23 UTC by Heiko W. Rupp
Modified: 2012-02-07 19:21 UTC (History)
2 users (show)

Fixed In Version: 4.3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-07 19:21:17 UTC
Embargoed:


Attachments (Terms of Use)

Description Heiko W. Rupp 2011-11-25 17:23:08 UTC
I am checking files in /etc/ and can not access /etc/aliases.db (as the agent user has no rights)
this prevents drift detection:


2011-11-25 18:20:47,835 ERROR [pool-3-thread-1] (rhq.core.pc.drift.DriftDetector)- Drift detection failed: An error occurred while generati
ng a drift change set
org.rhq.core.pc.drift.DriftDetectionException: An error occurred while generating a drift change set
        at org.rhq.core.pc.drift.DriftDetector$1.visit(DriftDetector.java:239)
        at org.rhq.core.pc.drift.FilterFileVisitor.visit(FilterFileVisitor.java:136)
        at org.rhq.core.util.file.FileUtil.forEachFile(FileUtil.java:361)
        at org.rhq.core.pc.drift.DriftDetector.generateDriftChangeSet(DriftDetector.java:213)
        at org.rhq.core.pc.drift.DriftDetector.run(DriftDetector.java:114)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:680)
Caused by: java.io.FileNotFoundException: /etc/aliases.db (Permission denied)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at org.rhq.core.util.MessageDigestGenerator.calcDigest(MessageDigestGenerator.java:255)
        at org.rhq.core.util.MessageDigestGenerator.calcDigestString(MessageDigestGenerator.java:291)
        at org.rhq.core.pc.drift.DriftDetector.sha256(DriftDetector.java:514)
        at org.rhq.core.pc.drift.DriftDetector.access$200(DriftDetector.java:51)
        at org.rhq.core.pc.drift.DriftDetector$1.visit(DriftDetector.java:233)
        ... 13 more

Comment 1 Heiko W. Rupp 2011-11-25 18:54:13 UTC
master b9ef6c8

Comment 2 John Sanda 2011-11-28 18:51:04 UTC
release_jon3.x commit hash: 20c2bae9c4c9aa6f9127c0a9d81ebada8d4dfd23

Comment 3 Mike Foley 2011-11-28 19:28:32 UTC
i encountered an error verifying this BZ.

https://bugzilla.redhat.com/show_bug.cgi?id=757827

could the fix for this BZ have caused 757827?

Comment 4 Mike Foley 2011-11-28 19:36:16 UTC
reassigning to ON_QA ... 757827 was environmental  (not a regression)

Comment 5 Mike Foley 2011-11-28 19:36:59 UTC
verified jon 3 branch

Comment 6 Mike Foley 2012-02-07 19:21:17 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE


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