Bug 614456 - Resource agent for psql does not work correctly with netmask
Summary: Resource agent for psql does not work correctly with netmask
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rgmanager
Version: 5.6
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Marek Grac
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks: 614457
TreeView+ depends on / blocked
 
Reported: 2010-07-14 14:24 UTC by Marek Grac
Modified: 2016-04-26 13:49 UTC (History)
4 users (show)

Fixed In Version: rgmanager-2.0.52-6.11.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 614457 (view as bug list)
Environment:
Last Closed: 2011-01-13 23:27:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0134 0 normal SHIPPED_LIVE rgmanager bug fix and enhancement update 2011-01-12 19:20:47 UTC

Description Marek Grac 2010-07-14 14:24:47 UTC
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-----

Comment 1 Marek Grac 2010-07-14 14:46:44 UTC
Patch accepted & Fixed in upstream:

http://git.fedorahosted.org/git/?p=cluster.git;a=commit;h=4c4a0b491a95772e2f4ee3255d4c9a34e27098fc

Comment 4 errata-xmlrpc 2011-01-13 23:27:07 UTC
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


Note You need to log in before you can comment on or make changes to this bug.