<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hello,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I have a resource with location constraint set to:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>location intranet-ip_on_any_nginx intranet-ip \<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> rule -inf: opa-nginx_1_active eq 0 \<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> rule -inf: opa-nginx_2_active eq 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>In syslog I see the attribute transition:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Apr 10 12:11:02 intranet-test2 pacemaker-attrd[1511]: notice: Setting opa-nginx_1_active[intranet-test1]: 1 -> 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Current cluster status is :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Node List:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * Online: [ intranet-test1 intranet-test2 nas-sync-test1 nas-sync-test2 ]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>* stonith-sbd (stonith:external/sbd): Started intranet-test2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * admin-ip (ocf::heartbeat:IPaddr2): Started nas-sync-test2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * cron_symlink (ocf::heartbeat:symlink): Started intranet-test1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * intranet-ip (ocf::heartbeat:IPaddr2): Started intranet-test1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * mysql_1 (systemd:mariadb@intranet-test1): Started intranet-test1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * mysql_2 (systemd:mariadb@intranet-test2): Started intranet-test2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * nginx_1 (systemd:nginx@intranet-test1): Stopped<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * nginx_1_active (ocf::pacemaker:attribute): Stopped<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * nginx_2 (systemd:nginx@intranet-test2): Started intranet-test2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * nginx_2_active (ocf::pacemaker:attribute): Started intranet-test2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * php_1 (systemd:php5.6-fpm@intranet-test1): Started intranet-test1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * php_2 (systemd:php5.6-fpm@intranet-test2): Started intranet-test2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * data_1 (ocf::heartbeat:Filesystem): Stopped<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * data_2 (ocf::heartbeat:Filesystem): Started intranet-test2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * nfs_export_1 (ocf::heartbeat:exportfs): Stopped<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * nfs_export_2 (ocf::heartbeat:exportfs): Started nas-sync-test2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * nfs_server_1 (systemd:nfs-server@nas-sync-test1): Stopped<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * nfs_server_2 (systemd:nfs-server@nas-sync-test2): Started nas-sync-test2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Failed Resource Actions:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> * nfs_server_1_start_0 on nas-sync-test1 'error' (1): call=95, status='complete', exitreason='', last-rc-change='2023-04-10 12:35:12 +02:00', queued=0ms, exec=209ms<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Why intranet-ip is located on intranet-test1 while nginx_1_active is 0 ?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US># crm res constraint intranet-ip<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> cron_symlink (score=INFINITY, id=c_cron_symlink_on_intranet-ip)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>* intranet-ip<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> : Node nas-sync-test2 (score=-INFINITY, id=intranet-ip_loc-rule)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> : Node nas-sync-test1 (score=-INFINITY, id=intranet-ip_loc-rule)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Why no constraint entry for intranet-ip_on_any_nginx location ?<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div>
<br><table id="pharmya_gdpr_container" border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="600">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="border-top: 2px solid #8C8C8C; text-align:justify;">
<img src="cid:70538f31fcdced6a7dcfb79061a06761"
class="replace_cid" alt="GDPR Logo" width="126"
height="50" align="left" style="margin-right:5px;"/>
<span style="font-size:10pt;
font-family: Segoe, 'Segoe UI', 'DejaVu Sans', 'Trebuchet MS', Verdana, sans-serif;"
class="gdpr_text">
This message has been sent as a part of discussion between PHARMYA
and the addressee whose name is specified above. Should you receive
this message by mistake, we would be most grateful if you informed
us that the message has been sent to you. In this case, we also ask
that you delete this message from your mailbox, and do not forward
it or any part of it to anyone else.<br>
Thank you for your cooperation and understanding.
</span>
</td>
</tr>
</table>
</td>
<td></td>
</table>
<br></body></html>