Skip to content

Commit

Permalink
add error for node set down (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwinger233 authored Mar 17, 2021
1 parent 5399d07 commit 84f4705
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cluster/calcium/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ func (c *Calcium) SetNode(ctx context.Context, opts *types.SetNodeOptions) (*typ
opts.Normalize(node)
n = node
n.Available = (opts.StatusOpt == types.TriTrue) || (opts.StatusOpt == types.TriKeep && n.Available)
if !n.Available {
logger.Errorf("[SetNodeAvailable] node marked down: %s", opts.Nodename)
}
if opts.WorkloadsDown {
workloads, err := c.store.ListNodeWorkloads(ctx, opts.Nodename, nil)
if err != nil {
Expand Down

0 comments on commit 84f4705

Please sign in to comment.