<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Hi all,</p>
<p> I've a problem to integrate in pacemaker the apache-module for jboss, on a two-node cluster with a pacemaker configuration already existing.</p>
<p>I try to use apache:ocf mdule as follow:</p>
<p><em>primitive apache ocf:heartbeat:apache \</em><br /><em> params configfile="/opt/jboss/httpd/httpd/conf/httpd.conf" \</em><br /><em> params httpd="/opt/jboss/httpd/sbin/httpd" \</em><br /><em> op start interval="0" timeout="40" \</em><br /><em> op stop interval="0" timeout="60" \</em><br /><em> op monitor interval="120s" timeout="60s" \</em><br /><em> meta target-role="Started"</em></p>
<p>But I get following error on messages:</p>
<p><em>attrd[13343]: notice: attrd_trigger_update: Sending flush op to all hosts for: fail-count-apache (<null>)</em><br /><em>attrd[13343]: notice: attrd_perform_update: Sent delete 5565: node=toemaprend1, attr=fail-count-apache, id=<n/a>, set=(null), section=status</em><br /><em>attrd[13343]: notice: attrd_perform_update: Sent delete 5567: node=toemaprend1, attr=fail-count-apache, id=<n/a>, set=(null), section=status</em><br /><em>crmd[13345]: warning: decode_transition_key: Bad UUID (crm_resource.c) in sscanf result (4) for 35914:0:0:crm_resource.c </em><br /><em>apache(apache)[35916]: INFO: apache not running</em><br /><em>crmd[13345]: notice: process_lrm_event: LRM operation apache_monitor_0 (call=10812, rc=7, cib-update=3121, confirmed=true) not running</em><br /><em>apache(apache)[35954]: INFO: apache not running</em><br /><em>apache(apache)[35954]: INFO: waiting for apache /opt/jboss/httpd/httpd/conf/httpd.conf to come up</em><br /><em>apache(apache)[35954]: INFO: apache not running</em><br /><em>apache(apache)[35954]: INFO: waiting for apache /opt/jboss/httpd/httpd/conf/httpd.conf to come up</em><br /><em>...</em><br /><em>lrmd[13342]: warning: child_timeout_callback: apache_start_0 process (PID 35954) timed out</em><br /><em>lrmd[13342]: warning: operation_finished: apache_start_0:35954 - timed out after 40000ms</em><br /><em>crmd[13345]: error: process_lrm_event: LRM operation apache_start_0 (10815) Timed Out (timeout=40000ms)</em><br /><em>attrd[13343]: notice: attrd_ais_dispatch: Update relayed from toemaprend2</em><br /><em>attrd[13343]: notice: attrd_trigger_update: Sending flush op to all hosts for: fail-count-apache (INFINITY)</em><br /><em>attrd[13343]: notice: attrd_perform_update: Sent update 5571: fail-count-apache=INFINITY</em><br /><em>attrd[13343]: notice: attrd_ais_dispatch: Update relayed from toemaprend2</em><br /><em>attrd[13343]: notice: attrd_trigger_update: Sending flush op to all hosts for: last-failure-apache (1397641676)</em><br /><em>attrd[13343]: notice: attrd_perform_update: Sent update 5573: last-failure-apache=1397641676</em><br /><em>attrd[13343]: notice: attrd_ais_dispatch: Update relayed from toemaprend2</em><br /><em>attrd[13343]: notice: attrd_trigger_update: Sending flush op to all hosts for: fail-count-apache (INFINITY)</em><br /><em>attrd[13343]: notice: attrd_perform_update: Sent update 5575: fail-count-apache=INFINITY</em><br /><em>attrd[13343]: notice: attrd_ais_dispatch: Update relayed from toemaprend2</em><br /><em>attrd[13343]: notice: attrd_trigger_update: Sending flush op to all hosts for: last-failure-apache (1397641676)</em><br /><em>attrd[13343]: notice: attrd_perform_update: Sent update 5577: last-failure-apache=1397641676</em><br /><em>apache(apache)[39199]: INFO: apache is not running.</em><br /><em>apache(apache)[39199]: INFO: apache children were signalled (SIGTERM)</em><br /><em>apache(apache)[39199]: INFO: apache children were signalled (SIGHUP)</em><br /><em>crmd[13345]: notice: process_lrm_event: LRM operation apache_stop_0 (call=10818, rc=0, cib-update=3123, confirmed=true) ok</em></p>
<p>On crm status:</p>
<p>Failed actions:<br /> apache_start_0 (node=toemaprend2, call=551, rc=1, status=Timed Out): unknown error<br /> apache_start_0 (node=toemaprend1, call=10815, rc=1, status=Timed Out): unknown error</p>
<p>So i try to modify the config with anything:ocf and it works for start/stop and migrate:</p>
<p><em>primitive res_web_ha ocf:heartbeat:anything \</em><br /><em>params binfile="/opt/jboss/httpd/sbin/apachectl" cmdline_options="start" \</em><br /><em>operations $id="res_web_ha-operations" \</em><br /><em>op start interval="0" timeout="20" \</em><br /><em>op stop interval="0" timeout="20" \</em><br /><em>op monitor interval="10" timeout="20" start-delay="0"</em></p>
<p>But I have failure on monitoring:</p>
<p><em>lrmd[13342]: notice: operation_finished: res_web_ha_monitor_0:25962 [ /usr/lib/ocf/resource.d/heartbeat/anything: line 60: kill: (23849) - No such process ]</em><br /><em>crmd[13345]: notice: process_lrm_event: LRM operation res_web_ha_monitor_0 (call=10851, rc=0, cib-update=3143, confirmed=true) ok</em><br /><em>lrmd[13342]: notice: operation_finished: res_web_ha_monitor_10000:25977 [ /usr/lib/ocf/resource.d/heartbeat/anything: line 60: kill: (23849) - No such process ]</em><br /><em>crmd[13345]: notice: process_lrm_event: LRM operation res_web_ha_monitor_10000 (call=10854, rc=0, cib-update=3144, confirmed=false) ok</em><br /><em>lrmd[13342]: notice: operation_finished: res_web_ha_monitor_10000:26522 [ /usr/lib/ocf/resource.d/heartbeat/anything: line 60: kill: (23849) - No such process ]</em><br /><em>lrmd[13342]: notice: operation_finished: res_web_ha_monitor_10000:27030 [ /usr/lib/ocf/resource.d/heartbeat/anything: line 60: kill: (23849) - No such process ]</em><br /><em>lrmd[13342]: notice: operation_finished: res_web_ha_monitor_10000:27515 [ /usr/lib/ocf/resource.d/heartbeat/anything: line 60: kill: (23849) - No such process ]</em></p>
<p>and no error on crm status.</p>
<p>I could use the anything:ocf config, but in this way I don't know how to monitor the resource.</p>
<p>Can you help me?</p>
<p>Thanks,</p>
<p> Ste</p>
</body></html>
<br/><br/>Scopri istella, il nuovo motore per il web italiano.<br />
Istella garantisce risultati di qualità e la possibilità di condividere, in modo semplice e veloce, documenti, immagini, audio e video.<br />
Usa istella, vai su <a href='http://www.istella.it?wtk=amc138614816829636' target='_Blank'>http://www.istella.it?wtk=amc138614816829636</a><br/><br/>