Specifying both host name and CIDR mask is invalid

Bug #998301 reported by Timothy R. Chavez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
postgresql (Juju Charms Collection)
New
Undecided
Unassigned

Bug Description

I'm getting the following when deploying to precise / postgresql 9.1 and forming a relationship between services:

2012-05-11 18:21:17,903 unit:offspring-web/5: hook.output DEBUG: hook db-relation-changed exited, exit code 0.
2012-05-11 18:21:17,998 unit:offspring-web/5: hook.executor DEBUG: Hook complete: /var/lib/juju/units/offspring-web-5/charm/hooks/db-relation-changed
2012-05-11 18:21:20,186 unit:postgresql/0: hook.output INFO: * The PostgreSQL server failed to start. Please check the log output:
2012-05-11 23:21:19 UTC LOG: specifying both host name and CIDR mask is invalid: "ip-10-190-103-176.ec2.internal/32"
2012-05-11 23:21:19 UTC CONTEXT: line 100 of configuration file "/etc/postgresql/9.1/main/pg_hba.conf"
2012-05-11 23:21:19 UTC FATAL: could not load pg_hba.conf
   ...fail!

This is very similar to #918825 though rather than "/0" it's "/32" which I believe was introduced in the last commit (revno 21)

Revision history for this message
Mark Mims (mark-mims) wrote :

dang... finally I see what's going on here. The interface used to pass the explicit IP address... now it's using `relation-get private-address` to get the client's name.

The charm is getting inconsistent responses to `relation-get private-address` across providers... some give the dns name, some the ip address.

The fix is to make sure it's an actual address before adding it into pg_hba.conf. I'll test that theory across different providers.

Revision history for this message
Reprepro Bot (reprepro) wrote :

Curious to know if any progress has been made on this one?

Revision history for this message
Timothy R. Chavez (timrchavez) wrote :

Wow... completely forgot I was logged in as that user :) Doh!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.