[Pacemaker] RFC: Is anyone using constraint 'lifetime's?

Andrew Beekhof andrew at beekhof.net
Thu Mar 11 13:31:17 UTC 2010


I suspect no-one is using this, since time-based expressions can be included in the regular sets of constraint rules.

For example:

 <rsc_location id="cli-prefer-rsc_pcmk-1" rsc="rsc_pcmk-1">
   <lifetime>
      <rule id="cli-lifetime-rule-rsc_pcmk-1" score="INFINITY">
        <date_expression id="cli-prefer-lifetime-end-rsc_pcmk-1" operation="lt" end="2010-04-11 13:22:39Z" />
      </rule>
   </lifetime>
   <rule id="cli-prefer-rule-rsc_pcmk-1" score="INFINITY">
     <expression id="cli-prefer-expr-rsc_pcmk-1" attribute="#uname" operation="eq" value="pcmk-2" type="string" />
   </rule>
 </rsc_location>


Is normally written as:

 <rsc_location id="cli-prefer-rsc_pcmk-1" rsc="rsc_pcmk-1">
   <rule id="cli-prefer-rule-rsc_pcmk-1" score="INFINITY" boolean-op="and" >
     <expression id="cli-prefer-expr-rsc_pcmk-1" attribute="#uname" operation="eq" value="pcmk-2" type="string" />
     <date_expression id="cli-prefer-lifetime-end-rsc_pcmk-1" operation="lt" end="2010-04-11 13:22:39Z" />
   </rule>
 </rsc_location>

For this reason I'm considering removing support for the <lifetime> tag in 1.1.
Please speak up if you're using this functionality and want to keep it.

-- Andrew



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2890 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100311/e53925d1/attachment-0003.p7s>


More information about the Pacemaker mailing list