Project

General

Profile

Bug #34684

Fix quota exceeded emails being sent every minute

Added by Dru Lavigne over 2 years ago. Updated about 2 years ago.

Status:
Done
Priority:
Important
Assignee:
Vladimir Vinogradenko
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
HXK-147-11727
Hardware Configuration:
ChangeLog Required:
No

Description

A customer indicates that the system is spamming every minute saying a quota has been exceeded when the dataset is only 98% full. Is there a way to silence this alert or adjust the threshold for sending the email? Very annoying when the quota hasn't actually been exceeded.


Related issues

Related to FreeNAS - Bug #41052: Bug fix for zvol/dataset tracebackDone
Copied from FreeNAS - Feature #17923: Add dataset quota email notificationsDone

Associated revisions

Revision c4af8a6a (diff)
Added by Vladimir Vinogradenko over 2 years ago

fix(zfs.quota): Fix exceed e-mails being sent every minute TIcket: #34684

Revision f09f5233 (diff)
Added by Vladimir Vinogradenko over 2 years ago

fix(zfs.quota): Fix exceed e-mails being sent every minute TIcket: #34684

Revision 7a948cfa (diff)
Added by Vladimir Vinogradenko about 2 years ago

fix(zfs.quota): Fix exceed e-mails being sent every minute TIcket: #34684

History

#1 Updated by Dru Lavigne over 2 years ago

  • Copied from Feature #17923: Add dataset quota email notifications added

#2 Updated by Dru Lavigne over 2 years ago

  • Tracker changed from Feature to Bug
  • Description updated (diff)
  • Status changed from Unscreened to Blocked
  • Support Suite Ticket changed from n/a to HXK-147-11727
  • Seen in set to Unspecified
  • ChangeLog Required set to No

#3 Updated by Dru Lavigne over 2 years ago

Updated by Vladimir Vinogradenko about 3 hours ago

I see debug only from one node. Is there a debug from another node?

It's a bug that both nodes process these alerts, it will be fixed, but nevertheless it's unclear why other node sends alerts over and over again.

#4 Updated by Joshua Sirrine over 2 years ago

The system in question is a single-node system. I'm also not sure how the other node would be doing these checks when the zpool is only mounted on 1 node. Is there something that sends all the dataset info to the other node?

Also, we should consider the fact that quota and refquota are different, and quota clearly isn't being checked. I tested this and got no emails until I set the refquota (all of my testing was done via GUI). I don't know if refquota really is calculating the sum of parents and children, including snapshots or not in the middleware. I haven't had a chance to look at the code or test this in detail.

#5 Updated by Vladimir Vinogradenko over 2 years ago

I'm also not sure how the other node would be doing these checks when the zpool is only mounted on 1 node.

It would be doing these checks against garbage. I didn't even know we have TrueNAS and HA when I was writing this code.

Also, we should consider the fact that quota and refquota are different, and quota clearly isn't being checked. I tested this and got no emails until I set the refquota (all of my testing was done via GUI). I don't know if refquota really is calculating the sum of parents and children, including snapshots or not in the middleware. I haven't had a chance to look at the code or test this in detail.

quota is checked against used and refquota is checked against usedbydataset

#6 Updated by Sam Fourman over 2 years ago

  • File jiixquotaemails.PNG added

#8 Updated by Dru Lavigne over 2 years ago

  • Private changed from No to Yes

#11 Updated by Dru Lavigne over 2 years ago

  • Status changed from Blocked to In Progress
  • Target version changed from TrueNAS-11.1-U6.1 to 11.1-U6

#12 Updated by Dru Lavigne over 2 years ago

  • File deleted (jiixquotaemails.PNG)

#13 Updated by Dru Lavigne over 2 years ago

  • Subject changed from Add dataset quota email notifications to Fix quota exceeded emails being sent every minute
  • Private changed from Yes to No

#14 Updated by Vladimir Vinogradenko over 2 years ago

  • Status changed from In Progress to Ready for Testing

#15 Updated by Dru Lavigne over 2 years ago

  • Needs QA changed from No to Yes
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#16 Updated by Bonnie Follweiler about 2 years ago

  • Status changed from Ready for Testing to Blocked
  • Reason for Blocked changed from Waiting for feedback to Dependent on a related task to be completed

https://redmine.ixsystems.com/issues/41052 needs to be fixed before we can test this

#17 Updated by Bonnie Follweiler about 2 years ago

  • Related to Bug #41052: Bug fix for zvol/dataset traceback added

#18 Updated by Dru Lavigne about 2 years ago

  • Status changed from Blocked to Ready for Testing

#19 Updated by Dru Lavigne about 2 years ago

  • Reason for Blocked deleted (Dependent on a related task to be completed)

#20 Updated by Bonnie Follweiler about 2 years ago

  • Status changed from Ready for Testing to Passed Testing
  • Needs QA changed from Yes to No

Passed Testing in FreeNAS 11.1-U6 Internal5

#21 Updated by Dru Lavigne about 2 years ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF