[ClusterLabs] Pacemaker 2.0.4-rc2 now available

2020-05-15 Thread Klaus Wenninger
The second release candidate for Pacemaker 2.0.4 is now available at:

https://github.com/ClusterLabs/pacemaker/releases/tag/Pacemaker-2.0.4-rc2

This has minor bug fixes and documentation improvements compared torc1.
Improved parameter handling for RHCS-style fence-agents is complete now.
Bugs in new output features of crm_mon are fixed.
When the DC requests suicide and that fails history is handled properly
and we don't have remaining 'pending' actions anymore.

For details, please see the changelog:

https://github.com/ClusterLabs/pacemaker/blob/Pacemaker-2.0.4-rc2/ChangeLog

My goal is to have the final release out in about 2 weeks.

Everyone is encouraged to download, compile and test the new release.
We do many regression tests and simulations, but we can't cover all
possible use cases, so your feedback is important and appreciated.

-- 
Klaus Wenninger 

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

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


Re: [ClusterLabs] Parallel execution of resources in resource group

2020-05-15 Thread Ken Gaillot
On Fri, 2020-05-08 at 20:47 +0200, Kab Naj wrote:
> Hello,
> 
> thank you very much for possible alternatives.
> I still prefer if group unordered resources were possible, but
> probably there was no demand for it.
> 
> I understand that in all three provided options I wouldn't use
> resource groups at all.

Correct

> In option 2 - "all with A" trick, I would use A as element to move
> the whole "group".
> In option 3 - I would use a tag as reference the whole "group",
> right?

Correct

> In pcs implementation, can I move a "group" by naming a tag of
> ordering or colocation resource sets ?

Not with the "move" command, which looks for a particular resource to
stop then start. But all "move" does is create a location constraint
for the resource, and you can do that with a tag.

Unfortunately the pcs constraint command currently checks that the
given name exists as a resource, so you can't create the constraint
that way. But you could use pcs cluster edit or cibadmin to add the XML
directly. Instead of:

 pcs resource move rsc1

or equivalently with the pacemaker tools

 crm_resource --move -r rsc1

you can add this XML to the configuration:

 


> I will need to test the behavior of cluster while moving, clearing,
> cleanup,..
> All my co-workers are used to "resource/service groups" as reference
> points, so I will need to change the procedures and the way of
> thinking.
> 
> Regards
> 
> Jan
> 
> 
> On Thu, May 7, 2020 at 7:04 PM Ken Gaillot 
> wrote:
> > Hi,
> > 
> > You have a few alternatives to groups.
> > 
> > 1 - You can configure independent colocation constraints for each
> > resource. E.g. "B with A", "C with B", etc. This has the advantage
> > that
> > if you just want all the resources on the same node, you could
> > colocate
> > all later resources with the first one ("B with A", "C with A",
> > etc.),
> > so that there's no dependency between later resources (only the
> > first
> > resource has to be active for any of the others to be active,
> > taking
> > into account any ordering constraints).
> > 
> > 2 - You can use resource sets in colocation constraints. You can do
> > the
> > "all with A" trick with this method using two resource sets, one
> > with
> > just A and the other non-sequential with all the rest. See:
> > 
> > https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/2.0/html-single/Pacemaker_Explained/index.html#s-resource-sets-colocation
> > 
> > 3 - You can use tags, and use a tag in a colocation constraint
> > resource
> > set. The main advantage of this approach would be if you want to
> > use
> > the logical group in more than one place. See:
> > 
> > https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/2.0/html-single/Pacemaker_Explained/index.html#_tagging_configuration_elements
> > 
> > 
> > On Thu, 2020-05-07 at 18:06 +0200, Kab Naj wrote:
> > > Hello,
> > > 
> > > I was trying to set parallel execution of resources in resource
> > > group, but I was not successful.
> > > The goal was to have resources within one resource group in one
> > > location but order of resources would rely on Ordering
> > constraints,
> > > thus possibly resources could run in parallel if constraints
> > allowed
> > > it.
> > > 
> > > By default it is not the case and resources run one by one in
> > their
> > > order of resource group.
> > > I found the option that is designed to be used in resource clones
> > -
> > > "ordered"
> > > ordered - Should the copies be started in series (instead of in
> > > parallel). Allowed values: false, true.
> > > 
> > > I tried to use this option in my resource group by setting
> > > "ordered=false"
> > > Resources could be started in parallel then, but I encountered
> > > strange and unpredictable behavior when some resource start was
> > not
> > > successful.
> > > 
> > > I understand that "ordered=false" is documented to be used only
> > in
> > > resource clones, not in resource groups.
> > > 
> > > Do we have other option that resources within resource group
> > would
> > > start in parallel and rely on Ordering constraints, not their
> > > resource group order?
> > > We have many logical resource groups, so we don't want to have
> > > resources without being added to any resource group.
> > > 
> > > Regards
> > > 
> > > Jan
> > ___
> > Manage your subscription:
> > https://lists.clusterlabs.org/mailman/listinfo/users
> > 
> > ClusterLabs home: https://www.clusterlabs.org/
-- 
Ken Gaillot 

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

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


Re: [ClusterLabs] Adding node in existing cluster pcs constraint not setting properly

2020-05-15 Thread Ken Gaillot
On Thu, 2020-05-14 at 08:41 +, S Sathish S wrote:
> Hi Team,
> 
> Recently during installation at the customer environments we came
>  across an issue where o/p of "pcs status" of the node to be added in
> the cluster was as follows:
> 
> Command triggered at NodeC
> 
> # sudo pcs status
> Cluster name: XXX
> 
> WARNINGS:
> No stonith devices and stonith-enabled is not false
> 
> Stack: corosync
> Current DC: NODE C (version 2.0.2-744a30d655) - partition WITHOUT
> quorum
> Last updated: Wed May 13 14:49:40 2020
> Last change: Wed May 13 14:39:04 2020 by hacluster via crmd on NODE C
> 
> 3 nodes configured
> 0 resources configured
> 
> Node A: UNCLEAN (offline)
> Node B: UNCLEAN (offline)
> Online: [ NODE C ]
> 
> No resources
> 
>   Daemon Status:
>   corosync: active/enabled
>   pacemaker: active/enabled
>   pcsd: active/enabled
>   
> Problem Statement: Node A and B were the nodes that have already
> formed a cluster and Node C was the node that had to be added as a
> new member into the cluster. The above output was fetched from NodeC.
> 
> The authorization and addition of NodeC in our case is done from
> NodeB.
> 
> On TroubleShooting we found that the necessary pcs constraints
> stonith setting did not get set for NodeC and hence the above
> reported warning was seen.

Actually the above output indicates that node C couldn't communicate
with nodes A or B at the corosync level, so it's starting with an empty
configuration.

There's some communication problem such as a firewall or networking
issue.

> In our project from the start, we configure the resources and set the
> necessary pcs constraints stonith setting of the new node(NodeC) will
> be triggered from existing cluster (NodeB). 
> 
> Once the authorization is complete is it the right procedure to set
> the constraints of NodeC in NodeB (or)  the constraints need to be
> set at NodeC itself.
> 
> Kindly let us know if we have followed the right procedure. If not,
> kindly suggest an alternative.
>  
> Thanks and Regards,
> S Sathish S

Configuration can be done from any node and will be sync'd to all
nodes, but the nodes have to form a corosync membership first.
-- 
Ken Gaillot 

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

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


Re: [ClusterLabs] resource-agent stack has dependencies with samba

2020-05-15 Thread Ken Gaillot
On Wed, 2020-05-13 at 17:53 +, S Sathish S wrote:
> Hi Team,
>  
> I have query regarding resource-agent stack has dependencies with
> samba , whether resource-agent will do its functionally without samba
> rpm installed on it . Please advise us.
>  
> https://github.com/ClusterLabs/resource-agents
>  
> Thanks and Regards,
> S Sathish

It depends on samba so that the Filesystem resource can mount samba
volumes. If you don't use that capability, you can safely remove samba.
-- 
Ken Gaillot 

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

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