Skip to content

Commit

Permalink
Require reboot if drain is needed for systemd mode
Browse files Browse the repository at this point in the history
We need to reboot the node in a systemd mode if any changes are
required to be applied to re-stert sriov config service.
  • Loading branch information
e0ne committed Mar 5, 2024
1 parent 860daa8 commit 2d623a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,8 @@ func (dn *Daemon) nodeStateSyncHandler() error {
}
}
reqDrain = reqDrain || systemdConfModified
reqReboot = reqReboot || systemdConfModified
// require reboot if drain needed for systemd mode
reqReboot = reqReboot || systemdConfModified || reqDrain
log.Log.V(0).Info("nodeStateSyncHandler(): systemd mode WriteConfFile results",
"drain-required", reqDrain, "reboot-required", reqReboot, "disable-drain", dn.disableDrain)

Expand Down

0 comments on commit 2d623a0

Please sign in to comment.