-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[system-health] Led color shall be controlled by configuration when system is booting #1106
[system-health] Led color shall be controlled by configuration when system is booting #1106
Conversation
|:----------------:|:--------------------:|:-------------------------------------------------------------------------:| | ||
| booting | ${led_color.booting} | System up time is less that 5 mins and not all services/devices are ready | | ||
| normal | ${led_color.normal} | All services/devices are in good state | | ||
| fault | ${led_color.fault} | Not all services/devices are in good state | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do get into fault state also when boot time is more than 5 min and not all is ok, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
@zhangyanzhao I suggest to go a head with the merge. Any objection? |
DEFAULT_LED_CONFIG = { | ||
'fault': 'red', | ||
'normal': 'green', | ||
'booting': 'red' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we have some other color other than 'red' which is already used for indicating 'fault'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before this PR, there is no booting stage. So, only two cases:
- System is all good, LED is green
- System is not all good, LED is red
Booting stage is introduced by this PR. So, setting "red" as the default value for booting stage is for backward compatible. User can override this value by using a system health configuration file.
Currently, system status LED is always red during booting stage. User cannot tell if it is a real issue or system is under initialization. This HLD change introduces a booting stage for the system health daemon and allow user to configure the system status led color for booting state.
PRs: