<div dir="ltr"><div>Hi, Gabriele. The `local` keyword is a bash built-in and not available in some other shells (e.g., ksh). It's used in `have_binary()`, so it's causing `check_binary(/usr/gnu/bin/awk)` to fail. It's also causing all the "local: not found" errors. I just reproduced it to make sure.<br></div><div><br></div><div style="margin-left:40px"><span style="font-family:monospace">check_binary () {<br>    if ! have_binary "$1"; then<br>    if [ "$OCF_NOT_RUNNING" = 7 ]; then<br>        # Chances are we have a fully setup OCF environment<br>        ocf_exit_reason "Setup problem: couldn't find command: $1"<br>    else<br>        echo "Setup problem: couldn't find command: $1"<br>    fi<br>    exit $OCF_ERR_INSTALLED<br>    fi<br>}<br><br>have_binary () {<br>    if [ "$OCF_TESTER_FAIL_HAVE_BINARY" = "1" ]; then<br>        false<br>    else<br>    local bin=`echo $1 | sed -e 's/ -.*//'`<br>    test -x "`which $bin 2>/dev/null`"<br>    fi<br>}</span></div><div style="margin-left:40px"><span style="font-family:monospace"><br></span></div><div>Is bash available on your system?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 27, 2020 at 8:34 AM Gabriele Bulfon <<a href="mailto:gbulfon@sonicle.com" target="_blank">gbulfon@sonicle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:Tahoma;font-size:14px;color:rgb(0,0,0)">Hello,</div>
<div style="font-family:Tahoma;font-size:14px;color:rgb(0,0,0)"> </div>
<div style="font-family:Tahoma;font-size:14px;color:rgb(0,0,0)">after configuring crm for IP automatic configuration, I stumbled upon a problem with the IPaddr utiliy that I don't understand:<br><br>IPaddr(xstha2_san0_IP)[10439]: 2020/07/27_17:26:17 ERROR: Setup problem: couldn't find command: /usr/gnu/bin/awk<br>Jul 27 17:26:17 [10258] lrmd: notice: operation_finished: xstha2_san0_IP_start_0:10439:stderr [ /usr/lib/ocf/resource.d/heartbeat/IPaddr[71]: local: not found [No such file or directory] ]<br>Jul 27 17:26:17 [10258] lrmd: notice: operation_finished: xstha2_san0_IP_start_0:10439:stderr [ /usr/lib/ocf/resource.d/heartbeat/IPaddr[354]: local: not found [No such file or directory] ]<br>Jul 27 17:26:17 [10258] lrmd: notice: operation_finished: xstha2_san0_IP_start_0:10439:stderr [ /usr/lib/ocf/resource.d/heartbeat/IPaddr[355]: local: not found [No such file or directory] ]<br>Jul 27 17:26:17 [10258] lrmd: notice: operation_finished: xstha2_san0_IP_start_0:10439:stderr [ /usr/lib/ocf/resource.d/heartbeat/IPaddr[356]: local: not found [No such file or directory] ]<br>Jul 27 17:26:17 [10258] lrmd: notice: operation_finished: xstha2_san0_IP_start_0:10439:stderr [ ocf-exit-reason:Setup problem: couldn't find command: /usr/gnu/bin/awk ]<br>Jul 27 17:26:17 [10258] lrmd: notice: operation_finished: xstha2_san0_IP_start_0:10439:stderr [ /usr/lib/ocf/resource.d/heartbeat/IPaddr[185]: local: not found [No such file or directory] ]<br>Jul 27 17:26:17 [10258] lrmd: notice: operation_finished: xstha2_san0_IP_start_0:10439:stderr [ /usr/lib/ocf/resource.d/heartbeat/IPaddr[186]: local: not found [No such file or directory] ]<br>Jul 27 17:26:17 [10258] lrmd: info: log_finished: finished - rsc:xstha2_san0_IP action:start call_id:22 pid:10439 exit-code:5 exec-time:91ms queue-time:0ms</div>
<div style="font-family:Tahoma;font-size:14px;color:rgb(0,0,0)"> </div>
<div style="font-family:Tahoma;font-size:14px;color:rgb(0,0,0)">It says it cannot find /usr/gnu/bin/awk but this is absolutely not true!</div>
<div style="font-family:Tahoma;font-size:14px;color:rgb(0,0,0)"> </div>
<div style="font-family:Tahoma;font-size:14px;color:rgb(0,0,0)">sonicle@xstorage1:/sonicle/home# ls -l /usr/gnu/bin/awk<br>-r-xr-xr-x 1 root bin 881864 Jun 1 12:25 /usr/gnu/bin/awk</div>
<div style="font-family:Tahoma;font-size:14px;color:rgb(0,0,0)"> </div>
<div style="font-family:Tahoma;font-size:14px;color:rgb(0,0,0)">sonicle@xstorage1:/sonicle/home# file /usr/gnu/bin/awk<br>/usr/gnu/bin/awk: ELF 64-bit LSB executable AMD64 Version 1, dynamically linked, not stripped, no debugging information available</div>
<div style="font-family:Tahoma;font-size:14px;color:rgb(0,0,0)"> </div>
<div style="font-family:Tahoma;font-size:14px;color:rgb(0,0,0)">what may be happening??<br><br>Thanks!<br>Gabriele<br><br><br><br><br>
<div id="gmail-m_5365213622457227777gmail-m_-8810846361514133364wt-mailcard">
<div> </div>
<div> </div>
<div><span style="font-size:14px;font-family:Helvetica"><strong>Sonicle S.r.l. </strong>: <a href="http://www.sonicle.com/" target="_blank">http://www.sonicle.com</a></span></div>
<div><span style="font-size:14px;font-family:Helvetica"><strong>Music: </strong><a href="http://www.gabrielebulfon.com/" target="_blank">http://www.gabrielebulfon.com</a></span></div>
<div><span style="font-size:14px;font-family:Helvetica"><strong>Quantum Mechanics : </strong><a href="http://www.cdbaby.com/cd/gabrielebulfon" target="_blank">http://www.cdbaby.com/cd/gabrielebulfon</a></span></div>
</div>
</div></div>_______________________________________________<br>
Manage your subscription:<br>
<a href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a><br>
<br>
ClusterLabs home: <a href="https://www.clusterlabs.org/" rel="noreferrer" target="_blank">https://www.clusterlabs.org/</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Regards,<br><br></div>Reid Wahl, RHCA<br></div><div>Software Maintenance Engineer, Red Hat<br></div>CEE - Platform Support Delivery - ClusterHA</div></div></div></div></div></div></div></div></div></div></div></div></div></div>