Closed rockwyc992 closed 2 weeks ago
Can we disable reboot feature with watchdog enabled ?
We need an options to force disable reboot feature to prevent unexpected rebooting.
Reboot is a basic feature of SNR for ensuring that workloads are fenced. Without it, using SNR would not make sense at all. So it can't be disabled. Reboot is primarily triggered by using a watchdog. Only if initializing a watchdog fails, software reboot is used, if allowed in the config. So both the annotation and code are correct, because the node can be rebooted by watchdog OR software reboot.
closing, feel free to reopen in case things are unclear
/close
@slintes: Closing this issue.
After setup
isSoftwareRebootEnabled
inSelfNodeRemediationConfig
, nodes still get annotaionis-reboot-capable.self-node-remediation.medik8s.io
istrue
https://github.com/medik8s/self-node-remediation/blob/6c2442db6f97aeb5f6fbd175d875175f2e8c30ed/pkg/utils/annotations.go#L47
I found the source code here. I think it would be
&& (And)
condition betweenwatchdogInitiated
andsoftwareRebootEnabled
, orsoftwareRebootEnabled
will never work.