-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Notify on UNAVAIL statechange #12630
Conversation
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.
Looks like the commit message is failing checkstyle. The actual code change LGTM.
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.
I approve, pending the commit style change
Do I need to do anything? It says it's missing |
@bitonic you'll need to force update this PR to include your signed-off-by in the commit message. This will resolve the style error. While you're at it I'd suggest rebasing against the latest version of the master branch as well. https://github.com/openzfs/zfs/blob/master/.github/CONTRIBUTING.md#signed-off-by |
@behlendorf done. |
Signed-off-by: Francesco Mazzoli <f@mazzo.li> `UNAVAIL` is maybe not quite as concerning as `DEGRADED`, but still an event of notice, in my opinion. For example it is triggered when a drive goes missing.
Unplugging a disk results in it having state UNAVAIL, but zed would only report states FAULTED, DEGRADED, and REMOVED. This commit makes it also report on state UNAVAIL. Signed-off-by: Courtney Bane <courtney.bane@gmail.com>
This also fixes #10123. I had a nearly identical fix for that that I never got around to actually sending a pull request for. |
I installed zed on my proxmox machine yesterday (apt-get install zfs-zed) and this fix was not present. |
`UNAVAIL` is maybe not quite as concerning as `DEGRADED`, but still an event of notice, in my opinion. For example it is triggered when a drive goes missing. Reviewed-by: Don Brady <don.brady@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Francesco Mazzoli <f@mazzo.li> Closes openzfs#12629 Closes openzfs#12630
UNAVAIL
is maybe not quite as concerning asDEGRADED
, but still an event of notice, in my opinion. For example it is triggered when a drive goes missing.Motivation and Context
See #12629 for the context of this change. If a drive goes missing, there are no default zedlets that send a notification.
How Has This Been Tested?
I've tested this change by modifying the
notify-statechange.sh
script on my machine.This is what the email looks once this patch is applied:
Types of changes
Checklist:
Signed-off-by
.