<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>I have a question regarding building CIB nodes scope and specifically assignment to node IDs.<br></div>It seems like the preexisting scope is not honored and nodes can get replaced based on check-in order.<br><br></div>I pre-create the nodes scope because it is faster, then setting parameters for all the nodes later (when the number of nodes is large).<br><br></div><div>From the listings below, one can see that node with ID=1 was replaced with another node (uname), however not the options. This situation causes problems when resource assignment is based on rules involving node options.<br><br></div><div>Is there a way to prevent this rearrangement of &#39;uname&#39;, if not whether there is a way to make the options follow &#39;uname&#39;, or maybe the problem is somewhere else - corosync configuration perhaps?<br></div><div>Is the corosync &#39;nodeid&#39; enforced to be also CIB node &#39;id&#39;?<br></div><div><br><br></div><div>Thanks in advance,<br></div><div><br><br></div>Below is CIB committed before nodes check-in:<br><br>    &lt;nodes&gt;<br>      &lt;node uname=&quot;ip-10-182-231-211&quot; id=&quot;1&quot;&gt;<br>        &lt;instance_attributes id=&quot;nodes-1&quot;&gt;<br>          &lt;nvpair id=&quot;nodes-1-STATE&quot; value=&quot;Active&quot; name=&quot;STATE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-1-ROLE&quot; value=&quot;AD&quot; name=&quot;ROLE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-1-Primary&quot; value=&quot;True&quot; name=&quot;Primary&quot;/&gt;<br>        &lt;/instance_attributes&gt;<br>      &lt;/node&gt;<br>      &lt;node uname=&quot;ip-10-30-213-166&quot; type=&quot;remote&quot; id=&quot;ip-10-30-213-166&quot;&gt;<br>        &lt;instance_attributes id=&quot;nodes-ip-10-30-213-166&quot;&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-30-213-166-STATE&quot; value=&quot;Active&quot; name=&quot;STATE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-30-213-166-ROLE&quot; value=&quot;AD&quot; name=&quot;ROLE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-30-213-166-Primary&quot; value=&quot;False&quot; name=&quot;Primary&quot;/&gt;<br>        &lt;/instance_attributes&gt;<br>      &lt;/node&gt;<br>      &lt;node uname=&quot;ip-10-183-158-204&quot; type=&quot;remote&quot; id=&quot;ip-10-183-158-204&quot;&gt;<br>        &lt;instance_attributes id=&quot;nodes-ip-10-183-158-204&quot;&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-183-158-204-STATE&quot; value=&quot;Active&quot; name=&quot;STATE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-183-158-204-ROLE&quot; value=&quot;AD&quot; name=&quot;ROLE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-183-158-204-Primary&quot; value=&quot;False&quot; name=&quot;Primary&quot;/&gt;<br>        &lt;/instance_attributes&gt;<br>      &lt;/node&gt;<br>      &lt;node uname=&quot;ip-10-138-145-2&quot; type=&quot;remote&quot; id=&quot;ip-10-138-145-2&quot;&gt;<br>        &lt;instance_attributes id=&quot;nodes-ip-10-138-145-2&quot;&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-138-145-2-STATE&quot; value=&quot;Active&quot; name=&quot;STATE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-138-145-2-ROLE&quot; value=&quot;AD&quot; name=&quot;ROLE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-138-145-2-Primary&quot; value=&quot;False&quot; name=&quot;Primary&quot;/&gt;<br>        &lt;/instance_attributes&gt;<br>      &lt;/node&gt;<br>      &lt;node uname=&quot;ip-10-146-241-194&quot; id=&quot;2&quot;&gt;<br>        &lt;instance_attributes id=&quot;nodes-2&quot;&gt;<br>          &lt;nvpair id=&quot;nodes-2-STATE&quot; value=&quot;Active&quot; name=&quot;STATE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-2-ROLE&quot; value=&quot;AH&quot; name=&quot;ROLE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-2-Primary&quot; value=&quot;True&quot; name=&quot;Primary&quot;/&gt;<br>        &lt;/instance_attributes&gt;<br>      &lt;/node&gt;<br>    &lt;/nodes&gt;<br><br><br></div><br>And automatic changes after nodes check-in:<br><br>    &lt;nodes&gt;<br>      &lt;node uname=&quot;ip-10-146-241-194&quot; id=&quot;1&quot;&gt;<br>        &lt;instance_attributes id=&quot;nodes-1&quot;&gt;<br>          &lt;nvpair id=&quot;nodes-1-STATE&quot; value=&quot;Active&quot; name=&quot;STATE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-1-ROLE&quot; value=&quot;AD&quot; name=&quot;ROLE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-1-Primary&quot; value=&quot;True&quot; name=&quot;Primary&quot;/&gt;<br>        &lt;/instance_attributes&gt;<br>      &lt;/node&gt;<br>      &lt;node uname=&quot;ip-10-30-213-166&quot; type=&quot;remote&quot; id=&quot;ip-10-30-213-166&quot;&gt;<br>        &lt;instance_attributes id=&quot;nodes-ip-10-30-213-166&quot;&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-30-213-166-STATE&quot; value=&quot;Active&quot; name=&quot;STATE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-30-213-166-ROLE&quot; value=&quot;AD&quot; name=&quot;ROLE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-30-213-166-Primary&quot; value=&quot;False&quot; name=&quot;Primary&quot;/&gt;<br>        &lt;/instance_attributes&gt;<br>      &lt;/node&gt;<br>      &lt;node uname=&quot;ip-10-183-158-204&quot; type=&quot;remote&quot; id=&quot;ip-10-183-158-204&quot;&gt;<br>        &lt;instance_attributes id=&quot;nodes-ip-10-183-158-204&quot;&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-183-158-204-STATE&quot; value=&quot;Active&quot; name=&quot;STATE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-183-158-204-ROLE&quot; value=&quot;AD&quot; name=&quot;ROLE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-183-158-204-Primary&quot; value=&quot;False&quot; name=&quot;Primary&quot;/&gt;<br>        &lt;/instance_attributes&gt;<br>      &lt;/node&gt;<br>      &lt;node uname=&quot;ip-10-138-145-2&quot; type=&quot;remote&quot; id=&quot;ip-10-138-145-2&quot;&gt;<br>        &lt;instance_attributes id=&quot;nodes-ip-10-138-145-2&quot;&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-138-145-2-STATE&quot; value=&quot;Active&quot; name=&quot;STATE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-138-145-2-ROLE&quot; value=&quot;AD&quot; name=&quot;ROLE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-ip-10-138-145-2-Primary&quot; value=&quot;False&quot; name=&quot;Primary&quot;/&gt;<br>        &lt;/instance_attributes&gt;<br>      &lt;/node&gt;<br>      &lt;node uname=&quot;ip-10-182-231-211&quot; id=&quot;2&quot;&gt;<br>        &lt;instance_attributes id=&quot;nodes-2&quot;&gt;<br>          &lt;nvpair id=&quot;nodes-2-STATE&quot; value=&quot;Active&quot; name=&quot;STATE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-2-ROLE&quot; value=&quot;AH&quot; name=&quot;ROLE&quot;/&gt;<br>          &lt;nvpair id=&quot;nodes-2-Primary&quot; value=&quot;True&quot; name=&quot;Primary&quot;/&gt;<br>        &lt;/instance_attributes&gt;<br>      &lt;/node&gt;<br>    &lt;/nodes&gt;<br><br><br clear="all"><div><div><div><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Best Regards,<br><br>Radoslaw Garbacz<br></div>XtremeData Incorporated<br></div></div></div></div>
</div></div></div></div></div></div></div>