<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hi:<br>
<br>
I noticed that in latest constraints schema
file(constraints-3.0.rng), <br>
"element-lifetime" is an option in location/colocation/order,
and it linked to rule-2.9.rng.<br>
<br>
</font><font face="Helvetica, Arial, sans-serif"> I can not find
the keyword "lifetime" in upstream document "Pacemaker 1.1
Configuration Explained",</font><br>
<font face="Helvetica, Arial, sans-serif"> then I guess
"date_expression" in rules means lifetime.<br>
<br>
So I write this xml section in file cons1.xml:<br>
#######################<br>
<rsc_location id="loc1" rsc="r1" score="100" node="node1"><br>
<rule id="rule1"><br>
<date_expression id="date_expr1"
operation="date_spec"><br>
<date_spec weekdays="5" monthdays="13" moon="4"/><br>
</date_expression><br>
</rule><br>
</rsc_location><br>
#######################<br>
<br>
Then run:<br>
#######################<br>
cibadmin -C --scope constraints -x cons1.xml<br>
#######################<br>
That didn't work, cibadmin said:<br>
Call cib_create failed (-203): Update does not conform to the
configured schema<br>
<br>
<br>
I try to use expression in rule this time in file cons2.xml:<br>
#######################<br>
<rsc_location id="loc2" rsc="r1"><br>
<rule id="rule2" score="-INFINITY"><br>
<expression id="rule2_exp2" attribute="#uname"
operation="eq" value="node1"/><br>
</rule><br>
</rsc_location><br>
#######################<br>
<br>
Then run:<br>
#######################<br>
cibadmin -C --scope constraints -x cons2.xml<br>
#######################<br>
And that work well<br>
<br>
So, how to configure lifetime in constraints?<br>
Thanks!<br>
<br>
Best regards,<br>
xin<br>
</font>
</body>
</html>