Skip to content

Commit

Permalink
Merge pull request #4202 from jrasell/gh_4183
Browse files Browse the repository at this point in the history
Update node-drain logging message to be clearer for operators.
  • Loading branch information
schmichael committed Apr 24, 2018
2 parents 639662d + 805b527 commit 98ed560
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (n *Nodes) monitorDrainNode(ctx context.Context, nodeID string, index uint6
}

if node.DrainStrategy == nil {
msg := Messagef(MonitorMsgLevelInfo, "Node %q drain complete", nodeID)
msg := Messagef(MonitorMsgLevelInfo, "Node %q has marked all allocations for migration", nodeID)
select {
case nodeCh <- msg:
case <-ctx.Done():
Expand Down
2 changes: 1 addition & 1 deletion command/node_drain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func TestNodeDrainCommand_Monitor(t *testing.T) {
out := outBuf.String()
t.Logf("Output:\n%s", out)

require.Contains(out, "drain complete")
require.Contains(out, "marked all allocations for migration")
for _, a := range allocs {
if *a.Job.Type == "system" {
if strings.Contains(out, a.ID) {
Expand Down

0 comments on commit 98ed560

Please sign in to comment.