Postgres server fails because of hostname + CIDR
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql (Juju Charms Collection) |
Fix Released
|
Undecided
|
Marco Ceppi |
Bug Description
When troubleshooting issues with the charm, the following occurs
2013-02-06 17:45:40 UTC LOG: specifying both host name and CIDR mask is invalid: "ip-10-
2013-02-06 17:45:40 UTC CONTEXT: line 9 of configuration file "/etc/postgresq
2013-02-06 17:45:40 UTC FATAL: could not load pg_hba.conf
The pg_hba.conf looks like this:
#------
# This file is managed by Juju
#------
# Database administrative login by UNIX sockets
local all postgres ident map=superusers
host discourse db_2_discourse_
Related branches
- Clint Byrum (community): Approve
-
Diff: 15 lines (+2/-2)1 file modifiedtemplates/pg_hba.conf.tmpl (+2/-2)
- Kapil Thangavelu (community): Approve
- Diff: 0 lines
Changed in postgresql (Juju Charms Collection): | |
assignee: | nobody → Marco Ceppi (marcoceppi) |
Changed in postgresql (Juju Charms Collection): | |
status: | In Progress → Fix Released |
Not all environments provide an IP address or a hostname[1]. `private-address` can be either. The hook needs to verify if it's an IP address and append the /32 when passing the ip address to the template.
[1]: http:// meta.discourse. org/t/deploying -discourse- to-amazon- and-other- clouds/ 1632/14