Skip to content

Commit 84f4705

Browse files
add error for node set down (#359)
1 parent 5399d07 commit 84f4705

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cluster/calcium/node.go

+3
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ func (c *Calcium) SetNode(ctx context.Context, opts *types.SetNodeOptions) (*typ
6666
opts.Normalize(node)
6767
n = node
6868
n.Available = (opts.StatusOpt == types.TriTrue) || (opts.StatusOpt == types.TriKeep && n.Available)
69+
if !n.Available {
70+
logger.Errorf("[SetNodeAvailable] node marked down: %s", opts.Nodename)
71+
}
6972
if opts.WorkloadsDown {
7073
workloads, err := c.store.ListNodeWorkloads(ctx, opts.Nodename, nil)
7174
if err != nil {

0 commit comments

Comments
 (0)