ClusterLabs / cluster-glue

Reusable Cluster Components ("glue")
http://clusterlabs.org/
GNU General Public License v2.0
18 stars 28 forks source link

What exactly does monitor (aka status) action do? #37

Closed ak2766 closed 2 years ago

ak2766 commented 2 years ago

I'm setting a highly available persistence storage cluster using DRBD + NFS and need to setup stonith. Searching led me here and I downloaded the ec2 plugin to one of the cluster instances. I tested rebooting one of the other nodes using the command below and it works - takes about ~40 secs return but I can see that the instances actually reboots - awesome:

./ec2 -n instance_name -o reboot

However, the status action always returns code 0 even when given the name of a non-existent instance - why?

dmuhamedagic commented 2 years ago

On Fri, Apr 15, 2022 at 11:34:19PM -0700, Anthony Kamau wrote:

I'm setting a highly available persistence storage cluster using DRBD + NFS and need to setup stonith. Searching led me here and I downloaded the ec2 plugin to one of the cluster instances. I tested rebooting one of the other nodes using the command below and it works - takes about ~40 secs return but I can see that the instances actually reboots - awesome:

./ec2 -n instance_name -o reboot

However, the status action always returns code 0 even when given the name of a non-existent instance - why?

By definition, the exit status of a stonith plugin shows if the plugin is functional and ready. It doesn't show the status of the host that the plugin manages.

ak2766 commented 2 years ago

@dmuhamedagic - thanks for the explanation.

I'll close this non-issue.