I have found a bug in the script .ocf-shellfunctions part of resource-agents-1.0.27-3 which replaces heartbeat-resources.

There are 5 locations where the command "echo" is capitalized, this produces errors such as:

lrmd: [29090]: info: RA output: (drbd_export:0:monitor:stderr) /usr/lib/ocf/resource.d/heartbeat/.ocf-shellfuncs: line 2
21: Echo: command not found

If this package is not part of pacemaker, does anybody know where should I file a bug report?

Thanks,

Diego

-------------------Diff file-----------------------------
*** .ocf-shellfuncs     2009-08-18 08:06:20.000000000 -0400
--- .ocf-shellfuncs.ORIG        2009-08-14 18:53:30.000000000 -0400
***************
*** 183,197 ****
          [ -n "$HA_LOGFILE" ]
        then
          : appending to $HA_LOGFILE
!         echo "$HA_LOGTAG:     "`hadate`"${*}" >> $HA_LOGFILE
        else
!         echo `hadate`"${*}" >&2
        fi
          if
            [ -n "$HA_DEBUGLOG" ]
          then
            : appending to $HA_DEBUGLOG
!           echo "$HA_LOGTAG:   "`hadate`"${*}" >> $HA_DEBUGLOG
          fi
  }

--- 183,197 ----
          [ -n "$HA_LOGFILE" ]
        then
          : appending to $HA_LOGFILE
!         Echo "$HA_LOGTAG:     "`hadate`"${*}" >> $HA_LOGFILE
        else
!         Echo `hadate`"${*}" >&2
        fi
          if
            [ -n "$HA_DEBUGLOG" ]
          then
            : appending to $HA_DEBUGLOG
!           Echo "$HA_LOGTAG:   "`hadate`"${*}" >> $HA_DEBUGLOG
          fi
  }

***************
*** 218,226 ****
          [ -n "$HA_DEBUGLOG" ]
        then
          : appending to $HA_DEBUGLOG
!         echo "$HA_LOGTAG:     "`hadate`"${*}" >> $HA_DEBUGLOG
        else
!         echo "$HA_LOGTAG:     `hadate`${*}:   ${HA_LOGFACILITY}" >&2
        fi
  }

--- 218,226 ----
          [ -n "$HA_DEBUGLOG" ]
        then
          : appending to $HA_DEBUGLOG
!         Echo "$HA_LOGTAG:     "`hadate`"${*}" >> $HA_DEBUGLOG
        else
!         Echo "$HA_LOGTAG:     `hadate`${*}:   ${HA_LOGFACILITY}" >&2
        fi
  }
--------------------------------------------------------

_______________________________________________
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Reply via email to