Bug 548172
Summary: | Bad query in Postgres agent plugin | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Mark Wagner <mwagner> |
Component: | Database | Assignee: | Heiko W. Rupp <hrupp> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Sunil Kondkar <skondkar> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 1.4 | CC: | cwelton, mwagner |
Target Milestone: | --- | Keywords: | SubBug |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 2.4 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-08-12 16:51:38 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 565628, 591531 |
Description
Mark Wagner
2009-12-16 20:14:22 UTC
Mark, what rights does the agent user have ? (or better: what are role name/password in the postgres servers connection properties ? ) When you log into postgres as this user(role) and issue (via psql) select pg_relation_size('rhq_agent') ; does this work? The query does seem to work: # /opt/PostgreSQL/8.4/bin/psql -U rhqadmin -w -d rhq psql (8.4.1) Type "help" for help. rhq=> select pg_relation_size('rhq_agent') ; pg_relation_size ------------------ 974848 (1 row) for permissions: rhq=# select * from pg_authid; rolname | rolsuper | rolinherit | rolcreaterole | rolcreatedb | rolcatupdate | rolcanlogin | rolconnlimit | rolpassword | rolvaliduntil | rolconfig ----------+----------+------------+---------------+-------------+--------------+-------------+--------------+-------------------------------------+---------------+----------- postgres | t | t | t | t | t | t | -1 | md53175bce1d3201d16594cebf9d7eb3f9d | | rhqadmin | f | t | f | f | f | t | -1 | md595e13780358466b08514bca98d7f1386 | | If it matters, there are also permission errors in the log that I believe are coming from the hourly analyze. Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs. keyword: new = Tracking + FutureFeature + SubBug making sure we're not missing any bugs in rhq_triage n 8.4, pg_relation_size was changed to use the regclass type, which means that pg_relation_size(data_type_name) no longer works. For whatever reason, pg_relation_size('table') still works, but pg_relation_size(relation) not. Switching to OID works in 8.1+ databases. QE: please also test against 8.3 Fix is in 7bb4095 Verified on jon build#160 (Revision: 10620) on postgres versions 8.2.4, 8.3.8 and 8.4.2 Postgres plugin is able to get metrics for postgres tables and no exception is observed in agent.log file. Mass-closure of verified bugs against JON. |