<div dir="ltr">Hi All,<div><br></div><div>I have a necessity to apply the whole cib.xml instead of using command line tools like</div><div>> crm configure ...</div><div><br></div><div>I have generated proper XML according to predefined templates and apply it via</div><div>> cibadmin --replace --xml-file cib.xml</div><div><br></div><div>However I have encountered an issue when resources (in particular VIP addresses) which were completely removed/replaced by others continue to run on the interface after XML replacing.</div><div><br></div><div>Orphaned resources appear and VIP actually is kept started.</div><div>```</div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"> </span><span style="font-weight:bold;color:rgb(0,0,0)">haproxy-10.0.0.111</span><span style="color:rgb(0,0,0)">     (ocf::haproxy):         ORPHANED FAILED 738741-ip2 (blocked)
</span><br> <span style="font-weight:bold;color:rgb(0,0,0)">vip-10.0.0.111</span><span style="color:rgb(0,0,0)"> (ocf::IPaddr2):         ORPHANED FAILED 738741-ip2 (blocked)</span><br>
<br></span></div><div>```</div><div><br></div><div>What I have tried:</div><div>1. Replace pure cib.xml without <status> element (only <configuration>)</div><div>2. Take active CIB from "cibadmin -Q" and replace only <configuration> element while keeping <status> as is. </div><div>3. Create shadow replace cib.xml with/without status and commit. </div><div>Indeed crm_simulate -LS shows intention to stop vip-1.1.1.1, but in fact it will not after shadow commit.<br></div><div><br></div><div></div><div>Sometimes I can manage to automatically clear removed/replaced VIP addresses from the interface after replacing XML, so it is definitely possible, but I can not understand how to achieve this.<br></div><div><br></div><div>So I wonder is there a way to replace XML but at the same time stop resources which are removed in a new XML?<br></div><div><br></div><div>Thanks!</div></div>