Hi Andrei. pingd==0 won't satisfy both statements. It would if I used GTE, but I used GT. pingd lt 1 --> [0] pingd gt 0 --> [1,2,3,...]
On Tue, 12 Dec 2023 at 17:21, Andrei Borzenkov <arvidj...@gmail.com> wrote: > On Tue, Dec 12, 2023 at 4:47 PM Artem <tyom...@gmail.com> wrote: > >> > pcs constraint location FAKE3 rule score=0 pingd lt 1 or not_defined > pingd > >> > pcs constraint location FAKE3 rule score=125 pingd gt 0 or defined > pingd > > Are they really contradicting? > > Yes. pingd == 0 will satisfy both rules. My use of "always" was > incorrect, it does not happen for all possible values of pingd, but it > does happen for some. > May be defined/not_defined should be put in front of lt/gt ? It is possible that VM goes down, pingd to not_defined, then the rule evaluates "lt 1" first, catches an error and doesn't evaluate next part (after OR)?
_______________________________________________ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/