Postgresql pg_hba.conf needs IP addresses
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| postgresql (Juju Charms Collection) |
Fix Released
|
Undecided
|
Mark Mims | ||
Bug Description
I add relations to postgresql and it doesn't restart because the address in pg_hba.conf
was a domain name.
Maybe we can use gethostip from the syslinux package to make sure it's an IP addresses
that we add::
host=`gethostip $(unit-get private-address) | awk '{print 2ドル}'`
Related branches
- Mark Mims (community): Approve
-
Diff: 47 lines (+7/-5) 3 files modifiedapihooks/common.sh (+2/-2)
hooks/db-relation-changed (+4/-2)
hooks/install (+1/-1)
Any progress on a fix? I think I just got burned by this :/
2012年05月11日 18:21:22,024 unit:postgresql/0: hook.output INFO: * The PostgreSQL server failed to start. Please check the log output:
2012年05月11日 23:21:21 UTC LOG: specifying both host name and CIDR mask is invalid: "ip-10-
2012年05月11日 23:21:21 UTC CONTEXT: line 100 of configuration file "/etc/postgresq
2012年05月11日 23:21:21 UTC FATAL: could not load pg_hba.conf
...fail!