Created attachment 924590 [details] agent.log Description of problem: Warning in agent.log file after clean install and server start. WARN [ResourceDiscoveryComponent.invoker.daemon-10] (org.rhq.plugins.postgres.PostgresDiscoveryComponent)- PostgreSQL data directory (/var/lib/pgsql/data) does not exist or is not readable. Make sure the user the RHQ Agent is running as has read permissions on the directory and its parent directory. WARN [ResourceDiscoveryComponent.invoker.daemon-12] (org.rhq.plugins.postgres.PostgresDiscoveryComponent)- PostgreSQL data directory (/var/lib/pgsql/data) does not exist or is not readable. Make sure the user the RHQ Agent is running as has read permissions on the directory and its parent directory. WARN [ResourceDiscoveryComponent.invoker.daemon-13] (org.rhq.plugins.postgres.PostgresDiscoveryComponent)- PostgreSQL data directory (/var/lib/pgsql/data) does not exist or is not readable. Make sure the user the RHQ Agent is running as has read permissions on the directory and its parent directory. WARN [ResourceDiscoveryComponent.invoker.daemon-15] (org.rhq.plugins.postgres.PostgresDiscoveryComponent)- PostgreSQL data directory (/var/lib/pgsql/data) does not exist or is not readable. Make sure the user the RHQ Agent is running as has read permissions on the directory and its parent directory. WARN [ResourceDiscoveryComponent.invoker.daemon-18] (org.rhq.plugins.postgres.PostgresDiscoveryComponent)- PostgreSQL data directory (/var/lib/pgsql/data) does not exist or is not readable. Make sure the user the RHQ Agent is running as has read permissions on the directory and its parent directory. WARN [ResourceDiscoveryComponent.invoker.daemon-1] (org.rhq.plugins.postgres.PostgresDiscoveryComponent)- PostgreSQL data directory (/var/lib/pgsql/data) does not exist or is not readable. Make sure the user the RHQ Agent is running as has read permissions on the directory and its parent directory. WARN [ResourceDiscoveryComponent.invoker.daemon-21] (org.rhq.plugins.postgres.PostgresDiscoveryComponent)- PostgreSQL data directory (/var/lib/pgsql/data) does not exist or is not readable. Make sure the user the RHQ Agent is running as has read permissions on the directory and its parent directory. WARN [ResourceDiscoveryComponent.invoker.daemon-22] (org.rhq.plugins.postgres.PostgresDiscoveryComponent)- PostgreSQL data directory (/var/lib/pgsql/data) does not exist or is not readable. Make sure the user the RHQ Agent is running as has read permissions on the directory and its parent directory. WARN [ResourceDiscoveryComponent.invoker.daemon-24] (org.rhq.plugins.postgres.PostgresDiscoveryComponent)- PostgreSQL data directory (/var/lib/pgsql/data) does not exist or is not readable. Make sure the user the RHQ Agent is running as has read permissions on the directory and its parent directory. WARN [ResourceDiscoveryComponent.invoker.daemon-2] (org.rhq.plugins.postgres.PostgresDiscoveryComponent)- PostgreSQL data directory (/var/lib/pgsql/data) does not exist or is not readable. Make sure the user the RHQ Agent is running as has read permissions on the directory and its parent directory. WARN [ResourceDiscoveryComponent.invoker.daemon-3] (org.rhq.plugins.postgres.PostgresDiscoveryComponent)- PostgreSQL data directory (/var/lib/pgsql/data) does not exist or is not readable. Make sure the user the RHQ Agent is running as has read permissions on the directory and its parent directory. WARN [ResourceDiscoveryComponent.invoker.daemon-5] (org.rhq.plugins.postgres.PostgresDiscoveryComponent)- PostgreSQL data directory (/var/lib/pgsql/data) does not exist or is not readable. Make sure the user the RHQ Agent is running as has read permissions on the directory and its parent directory. WARN [ResourceDiscoveryComponent.invoker.daemon-7] (org.rhq.plugins.postgres.PostgresDiscoveryComponent)- PostgreSQL data directory (/var/lib/pgsql/data) does not exist or is not readable. Make sure the user the RHQ Agent is running as has read permissions on the directory and its parent directory. WARN [ResourceDiscoveryComponent.invoker.daemon-9] (org.rhq.plugins.postgres.PostgresDiscoveryComponent)- PostgreSQL data directory (/var/lib/pgsql/data) does not exist or is not readable. Make sure the user the RHQ Agent is running as has read permissions on the directory and its parent directory. Version-Release number of selected component (if applicable): JON 3.3 DR01 How reproducible: Steps to Reproduce: 1. Install and start JON. 2. 3. Actual results: Warnings in agent.log after clean install/start. Expected results: Should be zero silent Warnings in server.log Additional info:
This warning won't go away, it's the way to indicate the users that we cannot edit the config file because of file perms. But we can certainly make the agent log it only once.
Fixed in master commit c2b6f256d0f045e8cdb741e78e3c79254c203af8 Author: Thomas Segismont <tsegismo> Date: Mon Aug 25 22:38:17 2014 +0200 Log at debug level in discovery code (which is called often) Log problems with the config file only once when the resource component is started Also, some code cleanup
release/jon3.3.x commit 70628464957ba4a4aed04353fa2abf6bde7899e7 Author: Thomas Segismont <tsegismo> Date: Mon Aug 25 22:38:17 2014 +0200 (cherry picked from commit c2b6f256d0f045e8cdb741e78e3c79254c203af8) Signed-off-by: Jay Shaughnessy <jshaughn>
Moving to ON_QA as available for test with the following brew build: https://brewweb.devel.redhat.com//buildinfo?buildID=381194