self-node-remediation
self-node-remediation copied to clipboard
`isSoftwareRebootEnabled` doesn't work, node still get annotation for `is-reboot-capable.self-node-remediation.medik8s.io` is `true`
After setup isSoftwareRebootEnabled in SelfNodeRemediationConfig, nodes still get annotaion is-reboot-capable.self-node-remediation.medik8s.io is true
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 between watchdogInitiated and softwareRebootEnabled, or softwareRebootEnabled will never work.
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.
In response to this:
closing, feel free to reopen in case things are unclear
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.