<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hi,</div> <div id="bloop_sign_1442575413359673088" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px"><br></div></div><p class="airmail_on" style="color:#000;">On 18 Sep 2015 at 11:11:02, dan (<a href="mailto:dan.oscarsson@intraphone.com">dan.oscarsson@intraphone.com</a>) wrote:</p> <div><blockquote type="cite" class="clean_bq" style="color: rgb(0, 0, 0); font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span><div><div></div><div>> > Can you comment on this Marek?<br>> This is surely a problem in fence agents. I believe that it was fixed<br>> in August in a<br>><span class="Apple-converted-space"> </span><br>> https://github.com/ClusterLabs/fence-agents/commit/155a51f01e6a806e17d70519f2d1507b09d9d137<br><br>I am not that good at python but does not that fix say that if I use<br>port_as_ip, ipaddr and port are not required?</div></div></span></blockquote></div><p>Almost, required=0 means that the attribute may not be required. More complex checking is done in fence agent during run-time. In that case:</p><p>previously)</p><p>* ip address was required</p><p>now)</p><p>any of these condition is enough</p><p>* ip adress</p><p>* port and port_as_ip</p><div><div><blockquote type="cite" class="clean_bq" style="color: rgb(0, 0, 0); font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span><div><div><br>I tested to add that code into the installed code<br>(/usr/share/fence/fencing.py) and changed by configuration to the old<br>one. It still fails in the same way.<br>I there a way I can get the system to output what arguments are used<br>when calling fence_ipmilan?</div></div></span></blockquote></div><p>pacemaker uses interface over standard input. So attributes are those that you se in configuration (with some exceptions like pcmk_* that are used by pacemaker itself).</p><p>With upstream:</p><p>fence_ipmilan —lanplus -a IP -> works</p><p>fence_ipmilan -n IP —port-as-ip -> works</p><p>m,</p><div><blockquote type="cite" class="clean_bq" style="color: rgb(0, 0, 0); font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span><div><div><br>Now my config that fails is:<br>Resource: ipmi-fencing-host1 (class=stonith type=fence_ipmilan)<br>Attributes: pcmk_host_list=host1 lanplus=1 ipaddr=192.168.1.10 login=xxxxx passwd=xxxx power_wait=4<span class="Apple-converted-space"> </span><br>Operations: monitor interval=60s (ipmi-fencing-host1-monitor-interval-60s)<br><br>What works is:<br>the same as above but with added: port_as_ip=1 port=192.168.1.10<br><br>Dan<br><br><br>_______________________________________________<br>Users mailing list: Users@clusterlabs.org<br>http://clusterlabs.org/mailman/listinfo/users<br><br>Project Home: http://www.clusterlabs.org<br>Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf<br>Bugs: http://bugs.clusterlabs.org<br></div></div></span></blockquote></div></div></body></html>