Skip to content

Commit

Permalink
daemon: add log and event for uncordoning node
Browse files Browse the repository at this point in the history
For better debugging in future for bugs like
https://bugzilla.redhat.com/show_bug.cgi?id=1975907,
let's explicitly log and add event when a node has
been successfully uncordoned by MCO.
  • Loading branch information
sinnykumari committed Jul 2, 2021
1 parent 68e602d commit 95ede9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/daemon/daemon.go
Expand Up @@ -1292,7 +1292,8 @@ func (dn *Daemon) completeUpdate(desiredConfigName string) error {
return err
}

dn.logSystem("completed update for config %s", desiredConfigName)
dn.logSystem("Update completed for config %s and node has been successfully uncordoned", desiredConfigName)
dn.recorder.Eventf(getNodeRef(dn.node), corev1.EventTypeNormal, "Uncordon", fmt.Sprintf("Update completed for config %s and node has been uncordoned", desiredConfigName))

return nil
}
Expand Down

0 comments on commit 95ede9b

Please sign in to comment.