ClusterLabs / anvil

The Anvil! Intelligent Availability™ Platform, mark 3
5 stars 6 forks source link

Node shows as 'Optimal' when the subnodes are offline #510

Open digimer opened 10 months ago

digimer commented 10 months ago

Should show as 'Offline' when both nodes are up but out of the cluster, or 'Shut Down' when both subnodes are powered off.

image

digimer commented 10 months ago

There's another aspect to this;

image

When I checked with 'pcs cluster status', I saw all was well. So I reloaded the dashboard, and indeed it showed as OK. So at least in some cases, the state didn't update.

After reloading;

image

digimer commented 10 months ago

I noticed that the storage doesn't update without a reload either, probably all related.

ylei-tsubame commented 5 months ago

optimal is apparently hard-coded even in the original cgi-bin scripts. We need to determine the values to show under which situations.

digimer commented 1 week ago

Optimal - Both nodes are full cluster members Degraded - Either node is not a full member Offline - Both nodes are offline

Add a storage state; Optimal - All DRBD resources are UpToDate Syncing - One or more resource is SyncTarget (show ETA) Degraded - One or more resource is disconnected (not counting DR) Offline - Same as node state above