Re: [ClusterLabs] Location not working

2023-04-10 Thread Miro Igov
Ken Galliot, Not true. See this: And this: According to the rsc_order when nginx_1 starts nginx_1_active also starts which sets it's active_value to 1. The opposite operation nginx_1_active stops before

Re: [ClusterLabs] Location not working

2023-04-10 Thread Ken Gaillot
On Mon, 2023-04-10 at 16:33 +0300, Andrei Borzenkov wrote: > On Mon, Apr 10, 2023 at 4:26 PM Ken Gaillot > wrote: > > On Mon, 2023-04-10 at 14:18 +0300, Miro Igov wrote: > > > Hello, > > > I have a resource with location constraint set to: > > > > > > location intranet-ip_on_any_nginx

Re: [ClusterLabs] Location not working

2023-04-10 Thread Andrei Borzenkov
On Mon, Apr 10, 2023 at 4:26 PM Ken Gaillot wrote: > > On Mon, 2023-04-10 at 14:18 +0300, Miro Igov wrote: > > Hello, > > I have a resource with location constraint set to: > > > > location intranet-ip_on_any_nginx intranet-ip \ > > rule -inf: opa-nginx_1_active eq 0 \ > > rule

Re: [ClusterLabs] Location not working

2023-04-10 Thread Ken Gaillot
On Mon, 2023-04-10 at 14:18 +0300, Miro Igov wrote: > Hello, > I have a resource with location constraint set to: > > location intranet-ip_on_any_nginx intranet-ip \ > rule -inf: opa-nginx_1_active eq 0 \ > rule -inf: opa-nginx_2_active eq 0 You haven't specified a score for the

Re: [ClusterLabs] Location not working

2023-04-10 Thread Miro Igov

Re: [ClusterLabs] Location not working

2023-04-10 Thread Andrei Borzenkov
On Mon, Apr 10, 2023 at 2:19 PM Miro Igov wrote: > Hello, > > I have a resource with location constraint set to: > > > > location intranet-ip_on_any_nginx intranet-ip \ > > rule -inf: opa-nginx_1_active eq 0 \ > > rule -inf: opa-nginx_2_active eq 0 > > > > In syslog I see the

[ClusterLabs] Location not working

2023-04-10 Thread Miro Igov
Hello, I have a resource with location constraint set to: location intranet-ip_on_any_nginx intranet-ip \ rule -inf: opa-nginx_1_active eq 0 \ rule -inf: opa-nginx_2_active eq 0 In syslog I see the attribute transition: Apr 10 12:11:02 intranet-test2