<div dir="ltr">Using &quot;shadow cib&quot; in crmsh looks like a good idea, but it doesn&#39;t work with node attributes set into &quot;status&quot; section of Pacemaker config.<div>I wonder it it is possible to make it work that way.</div><div><br></div><div>Ken,</div><div>&gt;&gt; start dampening timer</div><div>Could you please elaborate more on this. I don&#39;t get how I can set this timer.</div><div>Do I need to set this timer for each node?</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Thank you,<div>Kostia</div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Nov 21, 2016 at 9:30 AM, Ulrich Windl <span dir="ltr">&lt;<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de" target="_blank">Ulrich.Windl@rz.uni-regensburg.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">&gt;&gt;&gt; Ken Gaillot &lt;<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>&gt; schrieb am 18.11.2016 um 16:17 in Nachricht<br>
&lt;<a href="mailto:d6f449da-64f8-12ad-00be-e772d8e382ca@redhat.com">d6f449da-64f8-12ad-00be-<wbr>e772d8e382ca@redhat.com</a>&gt;:<br>
<span class="">&gt; On 11/18/2016 08:55 AM, Kostiantyn Ponomarenko wrote:<br>
&gt;&gt; Hi folks,<br>
&gt;&gt;<br>
&gt;&gt; Is there a way to set a node attribute to the &quot;status&quot; section for few<br>
&gt;&gt; nodes at the same time?<br>
&gt;&gt;<br>
&gt;&gt; In my case there is a node attribute which allows some resources to<br>
&gt;&gt; start in the cluster if it is set.<br>
&gt;&gt; If I set this node attribute for say two nodes in a way - one and then<br>
&gt;&gt; another, than these resources are not distributed equally between these<br>
&gt;&gt; two nodes. That because Pacemaker picks the first node to with this<br>
&gt;&gt; attribute is set and immediately starts all allowed resources on it. And<br>
&gt;&gt; this is not the behavior i would like to get.<br>
&gt;&gt;<br>
&gt;&gt; Thank you,<br>
&gt;&gt; Kostia<br>
&gt;<br>
&gt; Not that I know of, but it would be a good feature to add to<br>
&gt; attrd_updater and/or crm_attribute.<br>
<br>
</span>With crm (shell) you don&#39;t have transactions for node attributes, but for the configuration. So if you add a location restriction preventing any resources on your nodes, then enable the nodes, and then delete the location restrictions in one transaction, you might get what you want. It&#39;s not elegant, but itt ill do.<br>
<br>
To the crm shell maintainer: Is is difficult to build transactions to node status changes? The problem I see is this: For configuration you always have transactions (requiring &quot;commit), but for nodes you traditionally have non (effects are immediate). So you&#39;d need a thing like &quot;start transaction&quot; which requires a &quot;commit&quot; or some kind of abort later.<br>
<br>
I also don&#39;t know whether a &quot;shadow CIB&quot; would help for the original problem.<br>
<span class="HOEnZb"><font color="#888888"><br>
Ulrich<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt; You can probably hack it with a dampening value of a few seconds. If<br>
&gt; your rule checks for a particular value of the attribute, set all the<br>
&gt; nodes to a different value first, which will write that value and start<br>
&gt; the dampening timer. Then set all the attributes to the desired value,<br>
&gt; and they will get written out together when the timer expires.<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
&gt; <a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
&gt;<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
&gt; Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br></div>