<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 'uname', if not whether there is a way to make the options follow 'uname', or maybe the problem is somewhere else - corosync configuration perhaps?<br></div><div>Is the corosync 'nodeid' enforced to be also CIB node 'id'?<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>    <nodes><br>      <node uname="ip-10-182-231-211" id="1"><br>        <instance_attributes id="nodes-1"><br>          <nvpair id="nodes-1-STATE" value="Active" name="STATE"/><br>          <nvpair id="nodes-1-ROLE" value="AD" name="ROLE"/><br>          <nvpair id="nodes-1-Primary" value="True" name="Primary"/><br>        </instance_attributes><br>      </node><br>      <node uname="ip-10-30-213-166" type="remote" id="ip-10-30-213-166"><br>        <instance_attributes id="nodes-ip-10-30-213-166"><br>          <nvpair id="nodes-ip-10-30-213-166-STATE" value="Active" name="STATE"/><br>          <nvpair id="nodes-ip-10-30-213-166-ROLE" value="AD" name="ROLE"/><br>          <nvpair id="nodes-ip-10-30-213-166-Primary" value="False" name="Primary"/><br>        </instance_attributes><br>      </node><br>      <node uname="ip-10-183-158-204" type="remote" id="ip-10-183-158-204"><br>        <instance_attributes id="nodes-ip-10-183-158-204"><br>          <nvpair id="nodes-ip-10-183-158-204-STATE" value="Active" name="STATE"/><br>          <nvpair id="nodes-ip-10-183-158-204-ROLE" value="AD" name="ROLE"/><br>          <nvpair id="nodes-ip-10-183-158-204-Primary" value="False" name="Primary"/><br>        </instance_attributes><br>      </node><br>      <node uname="ip-10-138-145-2" type="remote" id="ip-10-138-145-2"><br>        <instance_attributes id="nodes-ip-10-138-145-2"><br>          <nvpair id="nodes-ip-10-138-145-2-STATE" value="Active" name="STATE"/><br>          <nvpair id="nodes-ip-10-138-145-2-ROLE" value="AD" name="ROLE"/><br>          <nvpair id="nodes-ip-10-138-145-2-Primary" value="False" name="Primary"/><br>        </instance_attributes><br>      </node><br>      <node uname="ip-10-146-241-194" id="2"><br>        <instance_attributes id="nodes-2"><br>          <nvpair id="nodes-2-STATE" value="Active" name="STATE"/><br>          <nvpair id="nodes-2-ROLE" value="AH" name="ROLE"/><br>          <nvpair id="nodes-2-Primary" value="True" name="Primary"/><br>        </instance_attributes><br>      </node><br>    </nodes><br><br><br></div><br>And automatic changes after nodes check-in:<br><br>    <nodes><br>      <node uname="ip-10-146-241-194" id="1"><br>        <instance_attributes id="nodes-1"><br>          <nvpair id="nodes-1-STATE" value="Active" name="STATE"/><br>          <nvpair id="nodes-1-ROLE" value="AD" name="ROLE"/><br>          <nvpair id="nodes-1-Primary" value="True" name="Primary"/><br>        </instance_attributes><br>      </node><br>      <node uname="ip-10-30-213-166" type="remote" id="ip-10-30-213-166"><br>        <instance_attributes id="nodes-ip-10-30-213-166"><br>          <nvpair id="nodes-ip-10-30-213-166-STATE" value="Active" name="STATE"/><br>          <nvpair id="nodes-ip-10-30-213-166-ROLE" value="AD" name="ROLE"/><br>          <nvpair id="nodes-ip-10-30-213-166-Primary" value="False" name="Primary"/><br>        </instance_attributes><br>      </node><br>      <node uname="ip-10-183-158-204" type="remote" id="ip-10-183-158-204"><br>        <instance_attributes id="nodes-ip-10-183-158-204"><br>          <nvpair id="nodes-ip-10-183-158-204-STATE" value="Active" name="STATE"/><br>          <nvpair id="nodes-ip-10-183-158-204-ROLE" value="AD" name="ROLE"/><br>          <nvpair id="nodes-ip-10-183-158-204-Primary" value="False" name="Primary"/><br>        </instance_attributes><br>      </node><br>      <node uname="ip-10-138-145-2" type="remote" id="ip-10-138-145-2"><br>        <instance_attributes id="nodes-ip-10-138-145-2"><br>          <nvpair id="nodes-ip-10-138-145-2-STATE" value="Active" name="STATE"/><br>          <nvpair id="nodes-ip-10-138-145-2-ROLE" value="AD" name="ROLE"/><br>          <nvpair id="nodes-ip-10-138-145-2-Primary" value="False" name="Primary"/><br>        </instance_attributes><br>      </node><br>      <node uname="ip-10-182-231-211" id="2"><br>        <instance_attributes id="nodes-2"><br>          <nvpair id="nodes-2-STATE" value="Active" name="STATE"/><br>          <nvpair id="nodes-2-ROLE" value="AH" name="ROLE"/><br>          <nvpair id="nodes-2-Primary" value="True" name="Primary"/><br>        </instance_attributes><br>      </node><br>    </nodes><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>