Bug 863402
Summary: | Candlepin assume that root can connect to PG without password | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Miroslav Suchý <msuchy> |
Component: | Subscription Management | Assignee: | candlepin-bugs |
Status: | CLOSED DUPLICATE | QA Contact: | Katello QA List <katello-qa-list> |
Severity: | unspecified | Docs Contact: | |
Priority: | high | ||
Version: | 6.0.1 | CC: | bkearney, lzap, mastahnke |
Target Milestone: | Unspecified | ||
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-10-08 08:11:04 UTC | Type: | Bug |
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: | 771481, 850569 |
Description
Miroslav Suchý
2012-10-05 11:34:28 UTC
For testing purposses you may test it with pg_hba.conf set to: local katelloschema katellouser md5 host katelloschema katellouser 127.0.0.1/8 md5 host katelloschema katellouser ::1/128 md5 local candlepin postgres md5 host candlepin postgres 127.0.0.1/8 md5 host candlepin postgres ::1/128 md5 local foreman foreman md5 host foreman foreman 127.0.0.1/8 md5 host foreman foreman ::1/128 md5 # TYPE DATABASE USER CIDR-ADDRESS METHOD local all all ident host all all 127.0.0.1/32 ident host all all ::1/128 ident And if you run cpdb as as postgres user, you will get: [root@nec-em11 ~]# su - postgres -c '/usr/share/candlepin/cpdb --create -u postgres -d candlepin' Creating candlepin database Loading candlepin schema ########## ERROR ############ Error running command: liquibase --driver=org.postgresql.Driver --classpath=/usr/share/java/postgresql-jdbc.jar:/var/lib/tomcat6/webapps/candlepin/WEB-INF/classes/ --changeLogFile=db/changelog/changelog-create.xml --url=jdbc:postgresql:candlepin --username=postgres migrate Status code: 65280 Command output: Liquibase Update Failed: FATAL: Ident authentication failed for user "postgres" SEVERE 10/5/12 7:41 AM:liquibase: FATAL: Ident authentication failed for user "postgres" liquibase.exception.DatabaseException: org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user "postgres" So you basicaly either do not specify username at all or use both username *and* password. Please see: https://bugzilla.redhat.com/show_bug.cgi?id=850002 https://bugzilla.redhat.com/show_bug.cgi?id=850570 I am already working on it. *** This bug has been marked as a duplicate of bug 850570 *** getting rid of 6.0.0 version since that doesn't exist I can't see bug 850570 so, closing this one without resolution and having the other one be the tracker kind of stinks. Could we either make the duplicate bug public or add resolutions in here? |