<html><header></header><body><div style="font-family: Tahoma; font-size: 14px; color: #000000;">Thanks, I patched all the scripts in build to have "#!/bin/bash" in head, and I receive no errors now.</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">Though, the IP is not configured :( I'm looking at it...<br /><br />Is there any easy way to debug what's doing on the IP script?</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;"> </div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">Gabriele<br /><br />
<div id="wt-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="_new">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="_new">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="_new">http://www.cdbaby.com/cd/gabrielebulfon</a></span></div>
</div>
<tt><br /><br /><br />----------------------------------------------------------------------------------<br /><br />Da: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de><br />A: users@clusterlabs.org <br />Data: 28 luglio 2020 9.12.41 CEST<br />Oggetto: [ClusterLabs] Antw: [EXT] Re: ip address configuration problem<br /><br /></tt>
<blockquote style="border-left: #000080 2px solid; margin-left: 5px; padding-left: 5px;"><tt>You could try replacing "local" with "typeset", also.<br /><br />>>> Reid Wahl <nwahl@redhat.com> schrieb am 28.07.2020 um 09:05 in Nachricht<br /><CAPiuu9_WLn77dmk_+WO_gvQzSyb5Kxc94fztK1iQuTwi7XAEJA@mail.gmail.com>:<br />> By the way, it doesn't necessarily have to be bash. Upon looking further, a<br />> lot of shells support the `local` keyword, even though it's not required by<br />> the POSIX standard. Plain ksh, however, does not :(<br />> <br />> On Monday, July 27, 2020, Reid Wahl <nwahl@redhat.com> wrote:<br />>> Hi, Gabriele. The `local` keyword is a bash built-in and not available in<br />> some other shells (e.g., ksh). It's used in `have_binary()`, so it's<br />> causing `check_binary(/usr/gnu/bin/awk)` to fail. It's also causing all the<br />> "local: not found" errors. I just reproduced it to make sure.<br />>><br />>> 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 />>> }<br />>> Is bash available on your system?<br />>> On Mon, Jul 27, 2020 at 8:34 AM Gabriele Bulfon <gbulfon@sonicle.com><br />> wrote:<br />>>><br />>>> Hello,<br />>>><br />>>> after configuring crm for IP automatic configuration, I stumbled upon a<br />> 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:<br />> couldn't find command: /usr/gnu/bin/awk<br />>>> Jul 27 17:26:17 [10258] lrmd: notice: operation_finished:<br />> xstha2_san0_IP_start_0:10439:stderr [<br />> /usr/lib/ocf/resource.d/heartbeat/IPaddr[71]: local: not found [No such<br />> file or directory] ]<br />>>> Jul 27 17:26:17 [10258] lrmd: notice: operation_finished:<br />> xstha2_san0_IP_start_0:10439:stderr [<br />> /usr/lib/ocf/resource.d/heartbeat/IPaddr[354]: local: not found [No such<br />> file or directory] ]<br />>>> Jul 27 17:26:17 [10258] lrmd: notice: operation_finished:<br />> xstha2_san0_IP_start_0:10439:stderr [<br />> /usr/lib/ocf/resource.d/heartbeat/IPaddr[355]: local: not found [No such<br />> file or directory] ]<br />>>> Jul 27 17:26:17 [10258] lrmd: notice: operation_finished:<br />> xstha2_san0_IP_start_0:10439:stderr [<br />> /usr/lib/ocf/resource.d/heartbeat/IPaddr[356]: local: not found [No such<br />> file or directory] ]<br />>>> Jul 27 17:26:17 [10258] lrmd: notice: operation_finished:<br />> xstha2_san0_IP_start_0:10439:stderr [ ocf-exit-reason:Setup problem:<br />> couldn't find command: /usr/gnu/bin/awk ]<br />>>> Jul 27 17:26:17 [10258] lrmd: notice: operation_finished:<br />> xstha2_san0_IP_start_0:10439:stderr [<br />> /usr/lib/ocf/resource.d/heartbeat/IPaddr[185]: local: not found [No such<br />> file or directory] ]<br />>>> Jul 27 17:26:17 [10258] lrmd: notice: operation_finished:<br />> xstha2_san0_IP_start_0:10439:stderr [<br />> /usr/lib/ocf/resource.d/heartbeat/IPaddr[186]: local: not found [No such<br />> file or directory] ]<br />>>> Jul 27 17:26:17 [10258] lrmd: info: log_finished: finished -<br />> rsc:xstha2_san0_IP action:start call_id:22 pid:10439 exit-code:5<br />> exec-time:91ms queue-time:0ms<br />>>><br />>>> It says it cannot find /usr/gnu/bin/awk but this is absolutely not true!<br />>>><br />>>> 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<br />>>><br />>>> sonicle@xstorage1:/sonicle/home# file /usr/gnu/bin/awk<br />>>> /usr/gnu/bin/awk: ELF 64-bit LSB executable AMD64 Version 1, dynamically<br />> linked, not stripped, no debugging information available<br />>>><br />>>> what may be happening??<br />>>><br />>>> Thanks!<br />>>> Gabriele<br />>>><br />>>><br />>>><br />>>><br />>>><br />>>><br />>>> Sonicle S.r.l. : http://www.sonicle.com <br />>>> Music: http://www.gabrielebulfon.com <br />>>> Quantum Mechanics : http://www.cdbaby.com/cd/gabrielebulfon <br />>>> _______________________________________________<br />>>> Manage your subscription:<br />>>> https://lists.clusterlabs.org/mailman/listinfo/users <br />>>><br />>>> ClusterLabs home: https://www.clusterlabs.org/ <br />>><br />>><br />>> --<br />>> Regards,<br />>><br />>> Reid Wahl, RHCA<br />>> Software Maintenance Engineer, Red Hat<br />>> CEE - Platform Support Delivery - ClusterHA<br />> <br />> -- <br />> Regards,<br />> <br />> Reid Wahl, RHCA<br />> Software Maintenance Engineer, Red Hat<br />> CEE - Platform Support Delivery - ClusterHA<br /><br /><br /><br />_______________________________________________<br />Manage your subscription:<br />https://lists.clusterlabs.org/mailman/listinfo/users<br /><br />ClusterLabs home: https://www.clusterlabs.org/<br /><br /><br /></tt></blockquote>
</div></body></html>