"Fossies" - the Fresh Open Source Software Archive

Member "pacemaker-Pacemaker-2.1.2/xml/test-2/024-rsc-requires-no-selfclash.xml" (24 Nov 2021, 6653 Bytes) of package /linux/misc/pacemaker-Pacemaker-2.1.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) XML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <?xml-stylesheet href="../assets/upgrade-2.10-htmldiff.xsl" type="text/xsl"?>
    2 <cib validate-with="pacemaker-2.0" admin_epoch="0" epoch="0" num_updates="0">
    3   <configuration>
    4     <crm_config/>
    5     <nodes>
    6 
    7       <node id="virt-063" uname="virt-063"/>
    8       <node id="virt-064" uname="virt-064"/>
    9       <node id="virt-069" uname="virt-069"/>
   10 
   11     </nodes>
   12     <resources>
   13 
   14       <!-- potential clash between pre-existing
   15            meta_attributes/nvpair[@name = 'requires'] vs.
   16            op[@name = 'start'
   17               or
   18               @name = 'promote']/@requires
   19            and/or
   20            op[@name = 'start'
   21            or
   22            @name = 'promote']/meta_attributes/nvpair[@name = 'requires'] -->
   23       <primitive id="myAddr1" class="ocf" provider="heartbeat" type="IPaddr2">
   24         <operations>
   25           <op id="myAddr1-monitor" name="monitor" interval="30s"/>
   26           <op id="myAddr1-start" name="start" interval="0" timeout="40s"
   27               requires="nothing">
   28             <meta_attributes id="myAddr1-start-meta">
   29               <nvpair id="myAddr1-start-requires" name="requires" value="stonith"/>
   30             </meta_attributes>
   31           </op>
   32         </operations>
   33         <instance_attributes id="myAddr1-params">
   34           <nvpair id="myAddr1-ip" name="ip" value="192.0.2.10"/>
   35         </instance_attributes>
   36         <meta_attributes id="myAddr1-meta">
   37           <nvpair id="myAddr1-requires" name="requires" value="quorum"/>
   38         </meta_attributes>
   39       </primitive>
   40 
   41       <!-- potential clash between op[@name = 'start'
   42                                       or
   43                                       @name = 'promote']/@requires
   44            and op[@name = 'start'
   45                   or
   46                   @name = 'promote']/meta_attributes/nvpair[@name = 'requires']
   47            (would-eliminate-override-meta-attribute is missing,
   48            allowing for direct clash in the propagation logic) -->
   49       <primitive id="myAddr2" class="ocf" provider="heartbeat" type="IPaddr2">
   50         <operations>
   51           <op id="myAddr2-monitor" name="monitor" interval="30s"/>
   52           <op id="myAddr2-start" name="start" interval="0" timeout="40s"
   53               requires="nothing">
   54             <meta_attributes id="myAddr2-start-meta">
   55               <nvpair id="myAddr2-start-requires" name="requires" value="stonith"/>
   56             </meta_attributes>
   57           </op>
   58         </operations>
   59         <instance_attributes id="myAddr2-params">
   60           <nvpair id="myAddr2-ip" name="ip" value="192.0.2.10"/>
   61         </instance_attributes>
   62       </primitive>
   63 
   64       <!-- potential clash between multiple op[@name = 'start'
   65                                                or
   66                                                @name = 'promote']/@requires
   67            (would-eliminate-override-meta-attribute is missing,
   68            allowing for direct clash in the propagation logic) -->
   69       <clone id="master1">
   70         <meta_attributes id="master1-meta">
   71           <nvpair id="master1-promotable" name="promotable" value="true"/>
   72           <nvpair id="master1-promoted-node-max" name="promoted-node-max" value="1"/>
   73           <nvpair id="master1-clone-max" name="clone-max" value="3"/>
   74           <nvpair id="master1-promoted-max" name="promoted-max" value="1"/>
   75           <nvpair id="master1-clone-node-max" name="clone-node-max" value="1"/>
   76         </meta_attributes>
   77         <primitive id="stateful1" class="ocf" type="Stateful" provider="pacemaker">
   78           <operations>
   79             <op id="stateful1-monitor-15s" interval="15s" name="monitor" timeout="60s"/>
   80             <op id="stateful1-monitor-16s" interval="16s" name="monitor" timeout="60s" role="Master"/>
   81             <op id="stateful1-promote" interval="0" name="promote" timeout="40s"
   82                 requires="quorum"/>
   83             <op id="stateful1-start" interval="0" name="start" timeout="40s"
   84                 requires="fencing"/>
   85             <!-- demote != promote -->
   86             <op id="stateful1-demote" interval="0" name="demote" timeout="40s">
   87               <meta_attributes id="stateful1-demote-meta">
   88                 <nvpair id="stateful1-demote-requires" name="requires" value="nothing"/>
   89               </meta_attributes>
   90             </op>
   91           </operations>
   92         </primitive>
   93       </clone>
   94 
   95       <!-- potential clash between multiple
   96            op[@name = 'start'
   97               or
   98               @name = 'promote']/meta_attributes/nvpair[@name = 'requires']
   99            (would-eliminate-override-meta-attribute is missing,
  100            allowing for direct clash in the propagation logic) -->
  101       <clone id="master2">
  102         <meta_attributes id="master2-meta">
  103           <nvpair id="master2-promotable" name="promotable" value="true"/>
  104           <nvpair id="master2-promoted-node-max" name="promoted-node-max" value="1"/>
  105           <nvpair id="master2-clone-max" name="clone-max" value="3"/>
  106           <nvpair id="master2-promoted-max" name="promoted-max" value="1"/>
  107           <nvpair id="master2-clone-node-max" name="clone-node-max" value="1"/>
  108         </meta_attributes>
  109         <primitive id="stateful2" class="ocf" type="Stateful" provider="pacemaker">
  110           <operations>
  111             <op id="stateful2-monitor-15s" interval="15s" name="monitor" timeout="60s"/>
  112             <op id="stateful2-monitor-16s" interval="16s" name="monitor" timeout="60s" role="Master"/>
  113         <op id="stateful2-promote" interval="0" name="promote" timeout="40s">
  114               <meta_attributes id="stateful2-promote-meta1">
  115                 <nvpair id="stateful2-promote-requires1-1" name="requires" value="quorum"/>
  116                 <nvpair id="stateful2-promote-requires1-2" name="requires" value="nothing"/>
  117               </meta_attributes>
  118               <meta_attributes id="stateful2-promote-meta2">
  119                 <nvpair id="stateful2-promote-requires2-1" name="requires" value="unfencing"/>
  120               </meta_attributes>
  121         </op>
  122             <op id="stateful2-start" interval="0" name="start" timeout="40s">
  123               <meta_attributes id="stateful2-promote-meta3">
  124                 <nvpair id="stateful2-promote-requires3-1" name="requires" value="fencing"/>
  125               </meta_attributes>
  126         </op>
  127             <!-- demote != promote -->
  128             <op id="stateful2-demote" interval="0" name="demote" timeout="40s">
  129               <meta_attributes id="stateful2-promote-meta">
  130                 <nvpair id="stateful2-promote-requires" name="requires" value="nothing"/>
  131               </meta_attributes>
  132             </op>
  133           </operations>
  134         </primitive>
  135       </clone>
  136 
  137     </resources>
  138     <constraints/>
  139   </configuration>
  140   <status/>
  141 </cib>