Re: [ClusterLabs] Remote nodes in an opt-in cluster

2024-04-24 Thread Reid Wahl
Jochen,

Just making sure you saw this, since you've replied to Andrei since then

On Tue, Apr 23, 2024 at 12:39 AM Reid Wahl  wrote:
>
> On Tue, Apr 23, 2024 at 12:03 AM Jochen  wrote:
> >
> > When trying to add a remote node to an opt-in cluster, the cluster does not 
> > start the remote resource. When I change the cluster to opt-out the remote 
> > resource is started.
> >
> > I guess I have to add a location constraint to allow the cluster to 
> > schedule the resource. Is that correct?
> >
> > And if yes, how do I create a location constraint to allow the cluster to 
> > start the remote resource anywhere on the cluster? Since I don't want to 
> > name each node in the constraint, I looked for a rule that always is true, 
> > or an attribute that is defined by default, but did not find one. I then 
> > tried
> >
> > crm configure location skylla-location skylla rule 
> > skylla-location-rule: defined '#uname'
> >
> > But this did not work either. Any help would be greatly appreciated.
>
> Strange. I wonder if this is something specific to remote connection
> resources. (I'm not able to test that right now.) What's your
> Pacemaker version and can you share the CIB XML?
>
> The rule that you've described works for me (using a resource that's
> not a remote connection resource):
>
> 
>   
> 
>operation="defined" attribute="#uname"/>
> 
>   
> 
>
>
> >
> > Regards
> > Jochen
> >
> >
> >
> > ___
> > Manage your subscription:
> > https://lists.clusterlabs.org/mailman/listinfo/users
> >
> > ClusterLabs home: https://www.clusterlabs.org/
> >
>
>
> --
> Regards,
>
> Reid Wahl (He/Him)
> Senior Software Engineer, Red Hat
> RHEL High Availability - Pacemaker



-- 
Regards,

Reid Wahl (He/Him)
Senior Software Engineer, Red Hat
RHEL High Availability - Pacemaker

___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


Re: [ClusterLabs] Remote nodes in an opt-in cluster

2024-04-23 Thread Andrei Borzenkov

On 23.04.2024 19:40, Jochen wrote:




On 23. Apr 2024, at 17:41, Andrei Borzenkov  wrote:

On 23.04.2024 10:02, Jochen wrote:

When trying to add a remote node to an opt-in cluster, the cluster does not 
start the remote resource. When I change the cluster to opt-out the remote 
resource is started.


It's not clear what do you mean. Is "remote resource" the resource used to integrate the 
remote node (i.e. ocf:pacemaker:remote) or is the "remote resource" a resource you want 
to start on the remote node itself?


The "ocf:pacemaker:remote" resource to integrate the remote node.




I guess I have to add a location constraint to allow the cluster to schedule 
the resource. Is that correct?
And if yes, how do I create a location constraint to allow the cluster to start the remote resource anywhere on the cluster? 


Quoting documentation:

If most of your resources can run on most of the nodes, then an opt-out 
arrangement is likely to result in a simpler configuration.


If your resource can run anywhere, what exactly is the point of opt-in?


Since I don't want to name each node in the constraint, I looked for a rule 
that always is true, or an attribute that is defined by default, but did not 
find one. I then tried

crm configure location skylla-location skylla rule 
skylla-location-rule: defined '#uname'
But this did not work either. Any help would be greatly appreciated.
Regards
Jochen
___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users
ClusterLabs home: https://www.clusterlabs.org/






___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


Re: [ClusterLabs] Remote nodes in an opt-in cluster

2024-04-23 Thread Jochen



> On 23. Apr 2024, at 17:41, Andrei Borzenkov  wrote:
> 
> On 23.04.2024 10:02, Jochen wrote:
>> When trying to add a remote node to an opt-in cluster, the cluster does not 
>> start the remote resource. When I change the cluster to opt-out the remote 
>> resource is started.
> 
> It's not clear what do you mean. Is "remote resource" the resource used to 
> integrate the remote node (i.e. ocf:pacemaker:remote) or is the "remote 
> resource" a resource you want to start on the remote node itself?

The "ocf:pacemaker:remote" resource to integrate the remote node.

> 
>> I guess I have to add a location constraint to allow the cluster to schedule 
>> the resource. Is that correct?
>> And if yes, how do I create a location constraint to allow the cluster to 
>> start the remote resource anywhere on the cluster? Since I don't want to 
>> name each node in the constraint, I looked for a rule that always is true, 
>> or an attribute that is defined by default, but did not find one. I then 
>> tried
>>  crm configure location skylla-location skylla rule 
>> skylla-location-rule: defined '#uname'
>> But this did not work either. Any help would be greatly appreciated.
>> Regards
>> Jochen
>> ___
>> Manage your subscription:
>> https://lists.clusterlabs.org/mailman/listinfo/users
>> ClusterLabs home: https://www.clusterlabs.org/
> 

___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


Re: [ClusterLabs] Remote nodes in an opt-in cluster

2024-04-23 Thread Andrei Borzenkov

On 23.04.2024 10:02, Jochen wrote:

When trying to add a remote node to an opt-in cluster, the cluster does not 
start the remote resource. When I change the cluster to opt-out the remote 
resource is started.



It's not clear what do you mean. Is "remote resource" the resource used 
to integrate the remote node (i.e. ocf:pacemaker:remote) or is the 
"remote resource" a resource you want to start on the remote node itself?



I guess I have to add a location constraint to allow the cluster to schedule 
the resource. Is that correct?

And if yes, how do I create a location constraint to allow the cluster to start 
the remote resource anywhere on the cluster? Since I don't want to name each 
node in the constraint, I looked for a rule that always is true, or an 
attribute that is defined by default, but did not find one. I then tried

crm configure location skylla-location skylla rule 
skylla-location-rule: defined '#uname'

But this did not work either. Any help would be greatly appreciated.

Regards
Jochen



___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


Re: [ClusterLabs] Remote nodes in an opt-in cluster

2024-04-23 Thread Reid Wahl
On Tue, Apr 23, 2024 at 12:03 AM Jochen  wrote:
>
> When trying to add a remote node to an opt-in cluster, the cluster does not 
> start the remote resource. When I change the cluster to opt-out the remote 
> resource is started.
>
> I guess I have to add a location constraint to allow the cluster to schedule 
> the resource. Is that correct?
>
> And if yes, how do I create a location constraint to allow the cluster to 
> start the remote resource anywhere on the cluster? Since I don't want to name 
> each node in the constraint, I looked for a rule that always is true, or an 
> attribute that is defined by default, but did not find one. I then tried
>
> crm configure location skylla-location skylla rule 
> skylla-location-rule: defined '#uname'
>
> But this did not work either. Any help would be greatly appreciated.

Strange. I wonder if this is something specific to remote connection
resources. (I'm not able to test that right now.) What's your
Pacemaker version and can you share the CIB XML?

The rule that you've described works for me (using a resource that's
not a remote connection resource):


  

  

  



>
> Regards
> Jochen
>
>
>
> ___
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/
>


-- 
Regards,

Reid Wahl (He/Him)
Senior Software Engineer, Red Hat
RHEL High Availability - Pacemaker

___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/