Reported and proposed patch by: Hirotaka Igarashi In a case defining postgres-8 resource under ip resource and this ip-address has net-mask, postgres-8.sh does not generate appropriate configuration file. Example configuration: <ip address="10.3.1.10/24 monitor_link="1""> <postgres-8 name="db_svr"/> </ip> From this kind of cluster.conf, postgres-8.sh generates postgresql.conf as follows, ---------------------- listen_addresses = '10.3.1.10/24' ---------------------- it causes postmaster's unsuccessful startup. Patch: ---- Modified From Here----- for i in $ip_addressess; do # modified by hiro so that it supports netmask i=`echo $i|sed -e 's/\/.*$//'` if [ $x -eq 1 ]; then x=0 ip_comma=$i else ip_comma=$ip_comma,$i fi done ---- Modified Till Here-----
Patch accepted & Fixed in upstream: http://git.fedorahosted.org/git/?p=cluster.git;a=commit;h=4c4a0b491a95772e2f4ee3255d4c9a34e27098fc
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0134.html