I am trying to get the drbd device promoted to master when the r_dummy resource is started, but I'm having a bit of trouble and I expect that its something simple. What I've got os far is following the wiki as best that I can. The relavent section of the CIB is below, along with the logs from the point of clicking "the-go-triangle/play" button in haclient. Using heartbeat 2.1.0-30 from the build site on FC6.

I believe this is the part of interest, as it says r_dummy can't run anywhere:

===============================
[...]
pengine: [22406]: info: master_rsc_colocation_rh: Processing: r_drbdxen0:1
pengine: [22406]: info: master_rsc_colocation_rh: Processing: r_drbdxen0:0
pengine: [22406]: WARN: native_color: Resource r_dummy cannot run anywhere
===============================

If someone who understand colocations and orders better than I can look this over I would greatly appreciate it!

-Eric

full cib is here: http://www.kaico.com/ew/cib2.xml
log text here: http://www.kaico.com/ew/hb-drbd-promote-issue.txt


Shortened CIB:



     <resources>
       <master_slave id="r_drbdxen0_clone">
         <instance_attributes id="r_drbdxen0_clone_instance_attrs">
           <attributes>
             <nvpair id="r_drbdxen0_clone_clone_max" name="clone_max" 
value="2"/>
             <nvpair id="r_drbdxen0_clone_clone_node_max" name="clone_node_max" 
value="1"/>
             <nvpair id="r_drbdxen0_clone_master_max" name="master_max" 
value="1"/>
             <nvpair id="r_drbdxen0_clone_master_node_max" 
name="master_node_max" value="1"/>
             <nvpair id="r_drbdxen0_clone_target_role" name="target_role" 
value="started"/>
           </attributes>
         </instance_attributes>
         <primitive id="r_drbdxen0" class="ocf" type="drbd" 
provider="heartbeat">
           <instance_attributes id="r_drbdxen0_instance_attrs">
             <attributes>
               <nvpair id="0f617369-0032-4121-b207-f70349e45c51" 
name="drbd_resource" value="drbdxen0"/>
               <nvpair id="r_drbdxen0:0_target_role" name="target_role" 
value="started"/>
             </attributes>
           </instance_attributes>
           <operations/>
         </primitive>
       </master_slave>

       <primitive id="r_dummy" class="ocf" type="Dummy" provider="heartbeat">
         <instance_attributes id="r_dummy_instance_attrs">
           <attributes>
             <nvpair id="r_dummy_target_role" name="target_role" 
value="started"/>
           </attributes>
         </instance_attributes>
       </primitive>

     </resources>
     <constraints>
       <rsc_location id="p_drbdxen0" rsc="r_drbdxen0_clone">
         <rule id="prefered_p_drbdxen0_trogdor.kaico.us" score="100">
           <expression attribute="#uname" 
id="11b39919-9263-46f7-9d63-9fc8070ab273" operation="eq" 
value="trogdor.kaico.us"/>
         </rule>
         <rule id="prefered_p_drbdxen0_kegdor.kaico.us" score="100">
           <expression attribute="#uname" 
id="c4fdc646-6808-426f-8788-80a1db1f1f6f" operation="eq" 
value="kegdor.kaico.us"/>
         </rule>
       </rsc_location>

       <rsc_location id="p_dummy" rsc="r_dummy">
         <rule id="prefered_p_dummy" score="100"/>
       </rsc_location>

       <rsc_colocation id="co_gnbdxen0_on_master_drbdxen0d" from="r_dummy" 
to="r_drbdxen0_clone" to_role="master" score="INFINITY"/>
       <rsc_colocation id="co_no_gnbdxen0_on_stopped_drbdxen0" from="r_dummy" 
to="r_drbdxen0_clone" to_role="stopped" score="-INFINITY"/>
       <rsc_colocation id="co_no_gnbdxen0_on_slave_drbdxen0" from="r_dummy" 
to="r_drbdxen0_clone" to_role="slave" score="-INFINITY"/>
       <rsc_order id="o_gnbdxen0_to_promote_drbdxen0" from="r_dummy" 
action="start" to="r_drbdxen0_clone" to_action="promote"/>
     </constraints>



mgmtd: [22400]: info: on_set_target_role:<primitive 
id="r_dummy"><instance_attributes 
id="r_dummy_instance_attrs"><attributes><nvpair id="r_dummy_target_role" 
name="target_role" 
value="started"/></attributes></instance_attributes></primitive>
cib: [22395]: info: cib_diff_notify: Update (client: 22400, call:15): 
0.126.3829 -> 0.126.3830 (ok)
tengine: [22405]: info: te_update_diff: Processing diff (cib_update): 
0.126.3829 -> 0.126.3830
tengine: [22405]: info: update_abort_priority: Abort priority upgraded to 
1000000
crmd: [22399]: info: do_state_transition: trogdor.kaico.us: State transition 
S_IDLE -> S_POLICY_ENGINE [ input=I_PE_CALC cause=C_IPC_MESSAGE 
origin=route_message ]
crmd: [22399]: info: do_state_transition: All 1 cluster nodes are eligible to 
run resources.
cib: [22819]: info: write_cib_contents: Wrote version 0.126.3830 of the CIB to 
disk (digest: e8cf4179b9dc9d925bd2097fd6f81877)
pengine: [22406]: info: log_data_element: process_pe_message: [generation] <cib 
admin_epoch="0" have_quorum="true" ignore_dtd="false" num_peers="1" 
cib_feature_revision="1.3" generated="true" epoch="126" num_updates="3830" 
cib-last-written="Wed Jun 27 16:49:41 2007" ccm_transition="1" 
dc_uuid="0ed79772-91c2-fb12-49b4-084ae34cbc5c"/>
pengine: [22406]: notice: cluster_option: Using default value 'reboot' for 
cluster option 'stonith-action'
pengine: [22406]: notice: cluster_option: Using default value '0' for cluster 
option 'default-resource-failure-stickiness'
pengine: [22406]: notice: cluster_option: Using default value '60s' for cluster 
option 'cluster-delay'
pengine: [22406]: notice: cluster_option: Using default value '20s' for cluster 
option 'default-action-timeout'
pengine: [22406]: notice: cluster_option: Using default value '-1' for cluster 
option 'pe-error-series-max'
pengine: [22406]: notice: cluster_option: Using default value '-1' for cluster 
option 'pe-warn-series-max'
pengine: [22406]: notice: cluster_option: Using default value '-1' for cluster 
option 'pe-input-series-max'
pengine: [22406]: notice: cluster_option: Using default value 'true' for 
cluster option 'startup-fencing'
pengine: [22406]: notice: unpack_config: On loss of CCM Quorum: Ignore
pengine: [22406]: info: determine_online_status: Node trogdor.kaico.us is online
pengine: [22406]: WARN: unpack_rsc_op: Processing failed op 
(r_gnbdxen0:0_monitor_0) on trogdor.kaico.us
pengine: [22406]: WARN: unpack_rsc_op: Processing failed op 
(r_gnbdxen0:0_start_0) on trogdor.kaico.us
pengine: [22406]: WARN: unpack_rsc_op: Handling failed start for r_gnbdxen0:0 
on trogdor.kaico.us
pengine: [22406]: WARN: unpack_rsc_op: Processing failed op 
(r_gnbdxen0:1_monitor_0) on trogdor.kaico.us
pengine: [22406]: WARN: unpack_rsc_op: Processing failed op 
(r_gnbdxen0:1_start_0) on trogdor.kaico.us
haclient: on_event: from message queue: evt:cib_changed
pengine: [22406]: WARN: unpack_rsc_op: Handling failed start for r_gnbdxen0:1 
on trogdor.kaico.us
pengine: [22406]: WARN: unpack_rsc_location: No resource (con=p_gnbdxen0_ip, 
rsc=g_gnbdxen0_ip)
pengine: [22406]: info: clone_print: Master/Slave Set: r_drbdxen0_clone
pengine: [22406]: info: native_print:     r_drbdxen0:0  (heartbeat::ocf:drbd):  
Started trogdor.kaico.us
pengine: [22406]: info: native_print:     r_drbdxen0:1  (heartbeat::ocf:drbd):  
Stopped
pengine: [22406]: info: clone_print: Clone Set: r_gnbd_serv_clone
pengine: [22406]: info: native_print:     r_gnbd_serv:0 (lsb:gnbd):     Started 
trogdor.kaico.us
pengine: [22406]: info: native_print:     r_gnbd_serv:1 (lsb:gnbd):     Stopped
pengine: [22406]: info: clone_print: Clone Set: r_gnbdxen0_clone
pengine: [22406]: info: native_print:     r_gnbdxen0:0  
(kaico::ocf:gnbd-device):       Stopped
pengine: [22406]: info: native_print:     r_gnbdxen0:1  
(kaico::ocf:gnbd-device):       Stopped
pengine: [22406]: info: native_print: r_dummy   (heartbeat::ocf:Dummy): Stopped
pengine: [22406]: WARN: native_color: Resource r_drbdxen0:1 cannot run anywhere
pengine: [22406]: info: master_color: Promoted 0 instances of a possible 1 to 
master
pengine: [22406]: notice: NoRoleChange: Leave resource r_drbdxen0:0     
(trogdor.kaico.us)
pengine: [22406]: notice: NoRoleChange: Leave resource r_drbdxen0:0     
(trogdor.kaico.us)
pengine: [22406]: WARN: native_color: Resource r_gnbd_serv:1 cannot run anywhere
pengine: [22406]: notice: NoRoleChange: Leave resource r_gnbd_serv:0    
(trogdor.kaico.us)
pengine: [22406]: WARN: native_color: Resource r_gnbdxen0:0 cannot run anywhere
pengine: [22406]: WARN: native_color: Resource r_gnbdxen0:1 cannot run anywhere
pengine: [22406]: info: master_color: Promoted 0 instances of a possible 1 to 
master
pengine: [22406]: info: master_rsc_colocation_rh: Processing constraint 
co_no_gnbdxen0_on_slave_drbdxen0: -1000000
pengine: [22406]: info: master_color: Promoted 0 instances of a possible 1 to 
master
pengine: [22406]: info: master_rsc_colocation_rh: Processing constraint 
co_no_gnbdxen0_on_stopped_drbdxen0: -1000000
pengine: [22406]: info: master_color: Promoted 0 instances of a possible 1 to 
master
pengine: [22406]: info: master_rsc_colocation_rh: Processing constraint 
co_gnbdxen0_on_master_drbdxen0d: 1000000
pengine: [22406]: info: master_rsc_colocation_rh: Processing: r_drbdxen0:1
pengine: [22406]: info: master_rsc_colocation_rh: Processing: r_drbdxen0:0
pengine: [22406]: WARN: native_color: Resource r_dummy cannot run anywhere
crmd: [22399]: info: do_state_transition: trogdor.kaico.us: State transition 
S_POLICY_ENGINE -> S_TRANSITION_ENGINE [ input=I_PE_SUCCESS cause=C_IPC_MESSAGE 
origin=route_message ]
tengine: [22405]: info: unpack_graph: Unpacked transition 5: 0 actions in 0 
synapses
tengine: [22405]: info: run_graph: Transition 5: (Complete=0, Pending=0, 
Fired=0, Skipped=0, Incomplete=0)
tengine: [22405]: info: notify_crmd: Transition 5 status: te_complete - <null>
crmd: [22399]: info: do_state_transition: trogdor.kaico.us: State transition 
S_TRANSITION_ENGINE -> S_IDLE [ input=I_TE_SUCCESS cause=C_IPC_MESSAGE 
origin=route_message ]
pengine: [22406]: WARN: process_pe_message: Transition 5: WARNINGs found during 
PE processing. PEngine Input stored in: 
/var/lib/heartbeat/pengine/pe-warn-118.bz2
pengine: [22406]: info: process_pe_message: Configuration WARNINGs found during 
PE processing.  Please run "crm_verify -L" to identify issues.

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to