<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#444444">Thanks a bunch for the advice, but finally is easier than I thought, I will simply use a different configuration for each apache server, but still maintaning replication via DRBD (DB/FS).</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#444444"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#444444">Again, thanks for the reply @Dimitri.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#444444"> </div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#444444">Hugs from Chile!!</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#444444"> </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"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><b style="color:rgb(7,55,99);font-family:verdana,sans-serif;font-size:small"><br></b></div><div dir="ltr"><b style="color:rgb(7,55,99);font-family:verdana,sans-serif;font-size:small">---</b></div><div dir="ltr"><b style="color:rgb(7,55,99);font-family:verdana,sans-serif;font-size:small">Ronny Machado C.</b><br></div><div dir="ltr"><div style="font-size:small"><div style="font-family:verdana,sans-serif"><font color="#073763"><b>  ​IT Consultant​</b></font></div></div><div style="font-size:small"><font face="verdana, sans-serif" color="#073763"><b> +569 75199262</b></font></div><div style="font-size:small"><font face="verdana, sans-serif" color="#073763"><div style="display:inline"><a href="http://www.aaconsultoria.cl/" style="color:rgb(17,85,204)" target="_blank"><b>​</b></a></div></font></div></div><div dir="ltr"><br><div><b><font color="#666666"><br>
</font></b></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 1 December 2016 at 08:00,  <span dir="ltr">&lt;<a href="mailto:users-request@clusterlabs.org" target="_blank">users-request@clusterlabs.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Users mailing list submissions to<br>
        <a href="mailto:users@clusterlabs.org">users@clusterlabs.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:users-request@clusterlabs.org">users-request@clusterlabs.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:users-owner@clusterlabs.org">users-owner@clusterlabs.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Users digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: ocf:heartbeat:IPaddr2 - Different network segment<br>
      (Dimitri Maziuk)<br>
   2. Re: ocf:heartbeat:IPaddr2 - Different network segment<br>
      (Dimitri Maziuk)<br>
   3. Pacemaker 1.1.16 released (Ken Gaillot)<br>
   4. Re: Antw: Re: Set a node attribute for multiple nodes with<br>
      one command (Ken Gaillot)<br>
   5. Deleting a variable (Ulrich Windl)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Wed, 30 Nov 2016 12:19:03 -0600<br>
From: Dimitri Maziuk &lt;<a href="mailto:dmaziuk@bmrb.wisc.edu">dmaziuk@bmrb.wisc.edu</a>&gt;<br>
To: <a href="mailto:users@clusterlabs.org">users@clusterlabs.org</a><br>
Subject: Re: [ClusterLabs] ocf:heartbeat:IPaddr2 - Different network<br>
        segment<br>
Message-ID: &lt;<a href="mailto:057788d3-be24-05c9-c8bd-190237057b6b@bmrb.wisc.edu">057788d3-be24-05c9-c8bd-<wbr>190237057b6b@bmrb.wisc.edu</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
On 11/30/2016 09:10 AM, Ronny Machado C. wrote:<br>
...any advice on how to<br>
&gt; use  ocf:heartbeat:IPaddr2 ip=x.x.x.x but in different segments, maybe is<br>
&gt; super easy, but  right now I can&#39;t find out how.<br>
<br>
ICBW but if you bring up an ip in the wrong segment, it&#39;ll just be<br>
unroutable/unreachable. As long as outgoing packets don&#39;t have it as<br>
their from address, you should be fine.<br>
<br>
I.e. just have both ips up on either node and see what happens.<br>
<br>
--<br>
Dimitri Maziuk<br>
Programmer/sysadmin<br>
BioMagResBank, UW-Madison -- <a href="http://www.bmrb.wisc.edu" rel="noreferrer" target="_blank">http://www.bmrb.wisc.edu</a><br>
<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: signature.asc<br>
Type: application/pgp-signature<br>
Size: 190 bytes<br>
Desc: OpenPGP digital signature<br>
URL: &lt;<a href="http://clusterlabs.org/pipermail/users/attachments/20161130/2ad706d5/attachment-0001.sig" rel="noreferrer" target="_blank">http://clusterlabs.org/<wbr>pipermail/users/attachments/<wbr>20161130/2ad706d5/attachment-<wbr>0001.sig</a>&gt;<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 30 Nov 2016 12:24:05 -0600<br>
From: Dimitri Maziuk &lt;<a href="mailto:dmaziuk@bmrb.wisc.edu">dmaziuk@bmrb.wisc.edu</a>&gt;<br>
To: <a href="mailto:users@clusterlabs.org">users@clusterlabs.org</a><br>
Subject: Re: [ClusterLabs] ocf:heartbeat:IPaddr2 - Different network<br>
        segment<br>
Message-ID: &lt;<a href="mailto:d000f619-a395-1379-0259-5e0f05dfd337@bmrb.wisc.edu">d000f619-a395-1379-0259-<wbr>5e0f05dfd337@bmrb.wisc.edu</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
PS you could probably use iptables to block/log outgoing traffic from<br>
the wrong ip (different on each node) to be really really sure.<br>
<br>
--<br>
Dimitri Maziuk<br>
Programmer/sysadmin<br>
BioMagResBank, UW-Madison -- <a href="http://www.bmrb.wisc.edu" rel="noreferrer" target="_blank">http://www.bmrb.wisc.edu</a><br>
<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: signature.asc<br>
Type: application/pgp-signature<br>
Size: 190 bytes<br>
Desc: OpenPGP digital signature<br>
URL: &lt;<a href="http://clusterlabs.org/pipermail/users/attachments/20161130/2a0fc3be/attachment-0001.sig" rel="noreferrer" target="_blank">http://clusterlabs.org/<wbr>pipermail/users/attachments/<wbr>20161130/2a0fc3be/attachment-<wbr>0001.sig</a>&gt;<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 30 Nov 2016 14:05:19 -0600<br>
From: Ken Gaillot &lt;<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>&gt;<br>
To: Cluster Labs - All topics related to open-source clustering<br>
        welcomed        &lt;<a href="mailto:users@clusterlabs.org">users@clusterlabs.org</a>&gt;<br>
Subject: [ClusterLabs] Pacemaker 1.1.16 released<br>
Message-ID: &lt;<a href="mailto:b2510d57-79f4-927f-8315-67d81f03995e@redhat.com">b2510d57-79f4-927f-8315-<wbr>67d81f03995e@redhat.com</a>&gt;<br>
Content-Type: text/plain; charset=utf-8<br>
<br>
ClusterLabs is proud to announce the latest release of the Pacemaker<br>
cluster resource manager, version 1.1.15. The source code is available at:<br>
<br>
<a href="https://github.com/ClusterLabs/pacemaker/releases/tag/Pacemaker-1.1.16" rel="noreferrer" target="_blank">https://github.com/<wbr>ClusterLabs/pacemaker/<wbr>releases/tag/Pacemaker-1.1.16</a><br>
The most significant enhancements in this release are:<br>
<br>
* rsc-pattern may now be used instead of rsc in location constraints, to<br>
allow a single location constraint to apply to all resources whose names<br>
match a regular expression. Sed-like %0 - %9 backreferences let<br>
submatches be used in node attribute names in rules.<br>
<br>
* The new ocf:pacemaker:attribute resource agent sets a node attribute<br>
according to whether the resource is running or stopped. This may be<br>
useful in combination with attribute-based rules to model dependencies<br>
that simple constraints can&#39;t handle.<br>
<br>
* Pacemaker&#39;s existing &quot;node health&quot; feature allows resources to move<br>
off nodes that become unhealthy. Now, when using<br>
node-health-strategy=<wbr>progressive, a new cluster property<br>
node-health-base will be used as the initial health score of newly<br>
joined nodes (defaulting to 0, which is the previous behavior). This<br>
allows a node to be treated as &quot;healthy&quot; even if it has some &quot;yellow&quot;<br>
health attributes, which can be useful to allow clones to run on such nodes.<br>
<br>
* Previously, the OCF_RESKEY_CRM_meta_notify_<wbr>active_* variables were not<br>
properly passed to multistate resources with notification enabled. This<br>
has been fixed. To help resource agents detect when the fix is<br>
available, the CRM feature set has been incremented. (Whenever the<br>
feature set changes, mixed-version clusters are supported only during<br>
rolling upgrades -- nodes with an older version will not be allowed to<br>
rejoin once they shut down.)<br>
<br>
* Watchdog-based fencing using sbd now works better on remote nodes.<br>
This capability still likely has some limitations, however.<br>
<br>
* The build process now takes advantage of various compiler features<br>
(RELRO, PIE, as-needed linking, etc.) that enhance security and start-up<br>
performance. See the &quot;Hardening flags&quot; comments in the <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> file<br>
for more details.<br>
<br>
* Python 3 compatibility: The Pacemaker project now targets<br>
compatibility with both python 2 (versions 2.6 and later) and python 3<br>
(versions 3.2 and later). All of the project&#39;s python code now meets<br>
this target, with the exception of CTS, which is still python 2 only.<br>
<br>
* The Pacemaker coding guidelines have been replaced by a more<br>
comprehensive addition to the documentation set, &quot;Pacemaker<br>
Development&quot;. It is intended for developers working on the Pacemaker<br>
code base itself, rather than external code such as resource agents. A<br>
copy is viewable at<br>
<a href="http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html-single/Pacemaker_Development/" rel="noreferrer" target="_blank">http://clusterlabs.org/doc/en-<wbr>US/Pacemaker/1.1-pcs/html-<wbr>single/Pacemaker_Development/</a><br>
<br>
As usual, the release includes many bugfixes, including a fix for a<br>
serious security vulnerability (CVE-2016-7035). For a more detailed list<br>
of changes, see the change log:<br>
<br>
<a href="https://github.com/ClusterLabs/pacemaker/blob/1.1/ChangeLog" rel="noreferrer" target="_blank">https://github.com/<wbr>ClusterLabs/pacemaker/blob/1.<wbr>1/ChangeLog</a><br>
<br>
Many thanks to all contributors of source code to this release,<br>
including Andrew Beekhof, Bin Liu, Christian Schneider, Christoph Berg,<br>
David Shane Holden, Ferenc W?gner, Yan Gao, Hideo Yamauchi, Jan Pokorn?,<br>
Ken Gaillot, Klaus Wenninger, Kostiantyn Ponomarenko, Kristoffer<br>
Gr?nlund, Lars Ellenberg, Masatake Yamato, Michal Koutn?, Nakahira<br>
Kazutomo, Nate Clark, Nishanth Aravamudan, Oyvind Albrigtsen, Ruben<br>
Kerkhof, Tim Bishop, Vladislav Bogdanov and Yusuke Iida. Apologies if I<br>
have overlooked anyone.<br>
--<br>
Ken Gaillot &lt;<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>&gt;<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Wed, 30 Nov 2016 14:39:27 -0600<br>
From: Ken Gaillot &lt;<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>&gt;<br>
To: Kostiantyn Ponomarenko &lt;<a href="mailto:konstantin.ponomarenko@gmail.com">konstantin.ponomarenko@gmail.<wbr>com</a>&gt;<br>
Cc: Cluster Labs - All topics related to open-source clustering<br>
        welcomed        &lt;<a href="mailto:users@clusterlabs.org">users@clusterlabs.org</a>&gt;<br>
Subject: Re: [ClusterLabs] Antw: Re: Set a node attribute for multiple<br>
        nodes with one command<br>
Message-ID: &lt;<a href="mailto:62cb811f-4396-ff36-ec03-67000b4ed07b@redhat.com">62cb811f-4396-ff36-ec03-<wbr>67000b4ed07b@redhat.com</a>&gt;<br>
Content-Type: text/plain; charset=utf-8<br>
<br>
On 11/30/2016 11:31 AM, Kostiantyn Ponomarenko wrote:<br>
&gt; Hi Ken,<br>
&gt;<br>
&gt; I didn&#39;t look into the logs, but I experimented with it for a while.<br>
&gt; Here is what I found.<br>
&gt;<br>
&gt; It worked for you because this attribute - &quot;my-attr&quot; - has not ever been<br>
&gt; set before in that cluster.<br>
&gt;<br>
&gt; So if you set an attribute, then remove it, and then set it with<br>
&gt; &quot;--delay&quot;, like:<br>
&gt;<br>
&gt;     # attrd_updater -N node-0 -n my-attr --update false --delay 20<br>
&gt;<br>
&gt; , this delay (dampening) won&#39;t work.<br>
<br>
Once set, attributes are not truly deleted -- only their values are<br>
cleared. And --delay has no effect with --update if the attribute<br>
already exists, which is what you see above.<br>
<br>
To set a delay on an already existing attribute, you have to use<br>
attrd_updater --update-delay or --update-both.<br>
<br>
&gt; Moreover, when you delete this attribute the actual remove will be<br>
&gt; delayed by that &quot;--delay&quot; which was used when the attribute was set.<br>
&gt;<br>
&gt;<br>
&gt; Thank you,<br>
&gt; Kostia<br>
&gt;<br>
&gt; On Tue, Nov 29, 2016 at 1:08 AM, Ken Gaillot &lt;<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a><br>
&gt; &lt;mailto:<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     On 11/24/2016 05:24 AM, Kostiantyn Ponomarenko wrote:<br>
&gt;     &gt; Attribute dampening doesn&#39;t work for me also.<br>
&gt;     &gt; To test that I have a script:<br>
&gt;     &gt;<br>
&gt;     &gt;     attrd_updater -N node-0 -n my-attr --update false --delay 20<br>
&gt;     &gt;     sleep 3<br>
&gt;     &gt;     attrd_updater -N node-0 -n my-attr --update true<br>
&gt;     &gt;     sleep 7<br>
&gt;     &gt;     attrd_updater -N node-1 -n my-attr --update true<br>
&gt;<br>
&gt;     This sequence works for me -- the attributes are not written to the live<br>
&gt;     CIB until the end of the delay, when both are written at the same time.<br>
&gt;<br>
&gt;     The remaining issue must be with the policy engine. You could look at<br>
&gt;     the detail log on the DC when these changes were made; you should see<br>
&gt;     info-level messages with the CIB change with both values together (lines<br>
&gt;     with &quot;cib_perform_op:   ++&quot; and the attribute values), then &quot;Transition<br>
&gt;     aborted&quot; with &quot;Transient attribute change&quot;, then a bunch of &quot;pengine:&quot;<br>
&gt;     lines saying what the cluster wants to do with each resource.<br>
&gt;<br>
&gt;     There should be some information about the scores used to place the<br>
&gt;     resources.<br>
&gt;<br>
&gt;     &gt;<br>
&gt;     &gt; All my resources have this rule in Pacemaker config:<br>
&gt;     &gt;<br>
&gt;     &gt;     crm configure location res1-location-rule res1 \<br>
&gt;     &gt;         rule 0: my-attr eq true \<br>
&gt;     &gt;         rule -inf: my-attr ne true<br>
&gt;     &gt;<br>
&gt;     &gt; On a working two-node cluster I remove &quot;my-attr&quot; from both nodes.<br>
&gt;     &gt; Then run my script. And all resources start on node-0.<br>
&gt;     &gt; Am I doing something wrong?<br>
&gt;     &gt; Or maybe my understanding of an attribute dampening is not correct?<br>
&gt;     &gt;<br>
&gt;     &gt; My Pacemaker version is 1.1.13. (heh, not the last one, but it is what<br>
&gt;     &gt; it is ...)<br>
&gt;     &gt;<br>
&gt;     &gt; Thank you,<br>
&gt;     &gt; Kostia<br>
&gt;     &gt;<br>
&gt;     &gt; On Wed, Nov 23, 2016 at 7:27 PM, Kostiantyn Ponomarenko<br>
&gt;     &gt; &lt;<a href="mailto:konstantin.ponomarenko@gmail.com">konstantin.ponomarenko@gmail.<wbr>com</a><br>
&gt;     &lt;mailto:<a href="mailto:konstantin.ponomarenko@gmail.com">konstantin.<wbr>ponomarenko@gmail.com</a>&gt;<br>
&gt;     &gt; &lt;mailto:<a href="mailto:konstantin.ponomarenko@gmail.com">konstantin.<wbr>ponomarenko@gmail.com</a><br>
&gt;     &lt;mailto:<a href="mailto:konstantin.ponomarenko@gmail.com">konstantin.<wbr>ponomarenko@gmail.com</a>&gt;&gt;&gt; wrote:<br>
&gt;     &gt;<br>
&gt;     &gt;     Maybe I am doing something wrong, but I cannot set &quot;status&quot; section<br>
&gt;     &gt;     node attributes to a shadow cib, cluster applies them immediately.<br>
&gt;     &gt;     To try it out I do in a console:<br>
&gt;     &gt;<br>
&gt;     &gt;         crm_shadow --create test<br>
&gt;     &gt;         crm_attribute --type nodes --node node-0 --name my-attribute<br>
&gt;     &gt;     --update 1 --lifetime=reboot<br>
&gt;     &gt;<br>
&gt;     &gt;     And this attribute is set to the live cluster configuration immediately.<br>
&gt;     &gt;     What am I doing wrong?<br>
&gt;     &gt;<br>
&gt;     &gt;     Thank you,<br>
&gt;     &gt;     Kostia<br>
&gt;     &gt;<br>
&gt;     &gt;     On Tue, Nov 22, 2016 at 11:33 PM, Kostiantyn Ponomarenko<br>
&gt;     &gt;     &lt;<a href="mailto:konstantin.ponomarenko@gmail.com">konstantin.ponomarenko@gmail.<wbr>com</a><br>
&gt;     &lt;mailto:<a href="mailto:konstantin.ponomarenko@gmail.com">konstantin.<wbr>ponomarenko@gmail.com</a>&gt;<br>
&gt;     &gt;     &lt;mailto:<a href="mailto:konstantin.ponomarenko@gmail.com">konstantin.<wbr>ponomarenko@gmail.com</a><br>
&gt;     &lt;mailto:<a href="mailto:konstantin.ponomarenko@gmail.com">konstantin.<wbr>ponomarenko@gmail.com</a>&gt;&gt;&gt; wrote:<br>
&gt;     &gt;<br>
&gt;     &gt;         Ken,<br>
&gt;     &gt;         Thank you for the explanation.<br>
&gt;     &gt;         I will try this low-level way of shadow cib creation tomorrow.<br>
&gt;     &gt;         PS: I will sleep much better with this excellent news/idea. =)<br>
&gt;     &gt;<br>
&gt;     &gt;         Thank you,<br>
&gt;     &gt;         Kostia<br>
&gt;     &gt;<br>
&gt;     &gt;         On Tue, Nov 22, 2016 at 10:53 PM, Ken Gaillot<br>
&gt;     &gt;         &lt;<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a> &lt;mailto:<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>&gt;<br>
&gt;     &lt;mailto:<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a> &lt;mailto:<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>&gt;&gt;&gt; wrote:<br>
&gt;     &gt;<br>
&gt;     &gt;             On 11/22/2016 04:39 AM, Kostiantyn Ponomarenko wrote:<br>
&gt;     &gt;             &gt; Using &quot;shadow cib&quot; in crmsh looks like a good idea, but it doesn&#39;t work<br>
&gt;     &gt;             &gt; with node attributes set into &quot;status&quot; section of Pacemaker config.<br>
&gt;     &gt;             &gt; I wonder it it is possible to make it work that way.<br>
&gt;     &gt;<br>
&gt;     &gt;             Forgot to mention -- the shadow CIB is probably the best way<br>
&gt;     &gt;             to do this.<br>
&gt;     &gt;             I don&#39;t know if there&#39;s a way to do it in crmsh, but you can<br>
&gt;     &gt;             use it with<br>
&gt;     &gt;             the low-level commands crm_shadow and crm_attribute<br>
&gt;     &gt;             --lifetime=reboot.<br>
&gt;     &gt;<br>
&gt;     &gt;             &gt; Ken,<br>
&gt;     &gt;             &gt;&gt;&gt; start dampening timer<br>
&gt;     &gt;             &gt; Could you please elaborate more on this. I don&#39;t get how I can set this<br>
&gt;     &gt;             &gt; timer.<br>
&gt;     &gt;             &gt; Do I need to set this timer for each node?<br>
&gt;     &gt;             &gt;<br>
&gt;     &gt;             &gt;<br>
&gt;     &gt;             &gt; Thank you,<br>
&gt;     &gt;             &gt; Kostia<br>
&gt;     &gt;             &gt;<br>
&gt;     &gt;             &gt; On Mon, Nov 21, 2016 at 9:30 AM, Ulrich Windl<br>
&gt;     &gt;             &gt; &lt;<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-<wbr>regensburg.de</a><br>
&gt;     &lt;mailto:<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-<wbr>regensburg.de</a>&gt;<br>
&gt;     &gt;             &lt;mailto:<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-<wbr>regensburg.de</a><br>
&gt;     &lt;mailto:<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-<wbr>regensburg.de</a>&gt;&gt;<br>
&gt;     &gt;             &gt; &lt;mailto:<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-<wbr>regensburg.de</a><br>
&gt;     &lt;mailto:<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-<wbr>regensburg.de</a>&gt;<br>
&gt;     &gt;             &lt;mailto:<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-<wbr>regensburg.de</a><br>
&gt;     &lt;mailto:<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-<wbr>regensburg.de</a>&gt;&gt;&gt;&gt; wrote:<br>
&gt;     &gt;             &gt;<br>
&gt;     &gt;             &gt;     &gt;&gt;&gt; Ken Gaillot &lt;<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a> &lt;mailto:<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>&gt;<br>
&gt;     &gt;             &lt;mailto:<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a><br>
&gt;     &lt;mailto:<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>&gt;&gt; &lt;mailto:<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a><br>
&gt;     &lt;mailto:<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>&gt;<br>
&gt;     &gt;             &lt;mailto:<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a> &lt;mailto:<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>&gt;&gt;&gt;<wbr>&gt;<br>
&gt;     &gt;             &gt;     schrieb am 18.11.2016 um 16:17 in Nachricht<br>
&gt;     &gt;             &gt;     &lt;<a href="mailto:d6f449da-64f8-12ad-00be-e772d8e382ca@redhat.com">d6f449da-64f8-12ad-00be-<wbr>e772d8e382ca@redhat.com</a><br>
&gt;     &lt;mailto:<a href="mailto:d6f449da-64f8-12ad-00be-e772d8e382ca@redhat.com">d6f449da-64f8-12ad-<wbr>00be-e772d8e382ca@redhat.com</a>&gt;<br>
&gt;     &gt;             &lt;mailto:<a href="mailto:d6f449da-64f8-12ad-00be-e772d8e382ca@redhat.com">d6f449da-64f8-12ad-<wbr>00be-e772d8e382ca@redhat.com</a><br>
&gt;     &lt;mailto:<a href="mailto:d6f449da-64f8-12ad-00be-e772d8e382ca@redhat.com">d6f449da-64f8-12ad-<wbr>00be-e772d8e382ca@redhat.com</a>&gt;&gt;<br>
&gt;     &gt;             &gt;<br>
&gt;     &gt;<br>
&gt;     &lt;mailto:<a href="mailto:d6f449da-64f8-12ad-00be-e772d8e382ca@redhat.com">d6f449da-64f8-12ad-<wbr>00be-e772d8e382ca@redhat.com</a><br>
&gt;     &lt;mailto:<a href="mailto:d6f449da-64f8-12ad-00be-e772d8e382ca@redhat.com">d6f449da-64f8-12ad-<wbr>00be-e772d8e382ca@redhat.com</a>&gt;<br>
&gt;     &gt;<br>
&gt;      &lt;mailto:<a href="mailto:d6f449da-64f8-12ad-00be-e772d8e382ca@redhat.com">d6f449da-64f8-12ad-<wbr>00be-e772d8e382ca@redhat.com</a><br>
&gt;     &lt;mailto:<a href="mailto:d6f449da-64f8-12ad-00be-e772d8e382ca@redhat.com">d6f449da-64f8-12ad-<wbr>00be-e772d8e382ca@redhat.com</a>&gt;&gt;<wbr>&gt;&gt;:<br>
&gt;     &gt;             &gt;     &gt; On 11/18/2016 08:55 AM, Kostiantyn Ponomarenko<br>
&gt;     wrote:<br>
&gt;     &gt;             &gt;     &gt;&gt; Hi folks,<br>
&gt;     &gt;             &gt;     &gt;&gt;<br>
&gt;     &gt;             &gt;     &gt;&gt; Is there a way to set a node attribute to the<br>
&gt;     &gt;             &quot;status&quot; section for few<br>
&gt;     &gt;             &gt;     &gt;&gt; nodes at the same time?<br>
&gt;     &gt;             &gt;     &gt;&gt;<br>
&gt;     &gt;             &gt;     &gt;&gt; In my case there is a node attribute which allows<br>
&gt;     &gt;             some resources to<br>
&gt;     &gt;             &gt;     &gt;&gt; start in the cluster if it is set.<br>
&gt;     &gt;             &gt;     &gt;&gt; If I set this node attribute for say two<br>
&gt;     nodes in a<br>
&gt;     &gt;             way - one and then<br>
&gt;     &gt;             &gt;     &gt;&gt; another, than these resources are not distributed<br>
&gt;     &gt;             equally between these<br>
&gt;     &gt;             &gt;     &gt;&gt; two nodes. That because Pacemaker picks the first<br>
&gt;     &gt;             node to with this<br>
&gt;     &gt;             &gt;     &gt;&gt; attribute is set and immediately starts all<br>
&gt;     allowed<br>
&gt;     &gt;             resources on it. And<br>
&gt;     &gt;             &gt;     &gt;&gt; this is not the behavior i would like to get.<br>
&gt;     &gt;             &gt;     &gt;&gt;<br>
&gt;     &gt;             &gt;     &gt;&gt; Thank you,<br>
&gt;     &gt;             &gt;     &gt;&gt; Kostia<br>
&gt;     &gt;             &gt;     &gt;<br>
&gt;     &gt;             &gt;     &gt; Not that I know of, but it would be a good feature<br>
&gt;     &gt;             to add to<br>
&gt;     &gt;             &gt;     &gt; attrd_updater and/or crm_attribute.<br>
&gt;     &gt;             &gt;<br>
&gt;     &gt;             &gt;     With crm (shell) you don&#39;t have transactions for<br>
&gt;     node<br>
&gt;     &gt;             attributes,<br>
&gt;     &gt;             &gt;     but for the configuration. So if you add a location<br>
&gt;     &gt;             restriction<br>
&gt;     &gt;             &gt;     preventing any resources on your nodes, then enable<br>
&gt;     &gt;             the nodes, and<br>
&gt;     &gt;             &gt;     then delete the location restrictions in one<br>
&gt;     &gt;             transaction, you might<br>
&gt;     &gt;             &gt;     get what you want. It&#39;s not elegant, but itt ill do.<br>
&gt;     &gt;             &gt;<br>
&gt;     &gt;             &gt;     To the crm shell maintainer: Is is difficult to<br>
&gt;     build<br>
&gt;     &gt;             transactions<br>
&gt;     &gt;             &gt;     to node status changes? The problem I see is<br>
&gt;     this: For<br>
&gt;     &gt;             configuration<br>
&gt;     &gt;             &gt;     you always have transactions (requiring<br>
&gt;     &quot;commit), but<br>
&gt;     &gt;             for nodes you<br>
&gt;     &gt;             &gt;     traditionally have non (effects are immediate). So<br>
&gt;     &gt;             you&#39;d need a<br>
&gt;     &gt;             &gt;     thing like &quot;start transaction&quot; which requires a<br>
&gt;     &gt;             &quot;commit&quot; or some<br>
&gt;     &gt;             &gt;     kind of abort later.<br>
&gt;     &gt;             &gt;<br>
&gt;     &gt;             &gt;     I also don&#39;t know whether a &quot;shadow CIB&quot; would help<br>
&gt;     &gt;             for the original<br>
&gt;     &gt;             &gt;     problem.<br>
&gt;     &gt;             &gt;<br>
&gt;     &gt;             &gt;     Ulrich<br>
&gt;     &gt;             &gt;<br>
&gt;     &gt;             &gt;     &gt;<br>
&gt;     &gt;             &gt;     &gt; You can probably hack it with a dampening<br>
&gt;     value of a<br>
&gt;     &gt;             few seconds. If<br>
&gt;     &gt;             &gt;     &gt; your rule checks for a particular value of the<br>
&gt;     &gt;             attribute, set all the<br>
&gt;     &gt;             &gt;     &gt; nodes to a different value first, which will write<br>
&gt;     &gt;             that value and<br>
&gt;     &gt;             &gt;     start<br>
&gt;     &gt;             &gt;     &gt; the dampening timer. Then set all the<br>
&gt;     attributes to<br>
&gt;     &gt;             the desired value,<br>
&gt;     &gt;             &gt;     &gt; and they will get written out together when the<br>
&gt;     &gt;             timer expires.<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Thu, 01 Dec 2016 08:15:52 +0100<br>
From: &quot;Ulrich Windl&quot; &lt;<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-<wbr>regensburg.de</a>&gt;<br>
To: &lt;<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>&gt;<br>
Cc: <a href="mailto:users@clusterlabs.org">users@clusterlabs.org</a><br>
Subject: [ClusterLabs] Deleting a variable<br>
Message-ID: &lt;<a href="mailto:583FDC38020000A10002375E@gwsmtp1.uni-regensburg.de">583FDC38020000A10002375E@<wbr>gwsmtp1.uni-regensburg.de</a>&gt;<br>
Content-Type: text/plain; charset=US-ASCII<br>
<br>
&gt;&gt;&gt; Ken Gaillot &lt;<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>&gt; schrieb am 30.11.2016 um 21:39 in Nachricht<br>
&lt;<a href="mailto:62cb811f-4396-ff36-ec03-67000b4ed07b@redhat.com">62cb811f-4396-ff36-ec03-<wbr>67000b4ed07b@redhat.com</a>&gt;:<br>
<br>
[...]<br>
&gt; Once set, attributes are not truly deleted -- only their values are<br>
&gt; cleared. And --delay has no effect with --update if the attribute<br>
&gt; already exists, which is what you see above.<br>
<br>
Is there a difference between a &quot;deleted&quot; variable and a defined variable that has an empty string as value? I feel there should be!<br>
<br>
[...]<br>
<br>
Ulrich<br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<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>
<br>
End of Users Digest, Vol 23, Issue 1<br>
******************************<wbr>******<br>
</blockquote></div><br></div>