Project

General

Profile

Bug #28182

Do not run cron jobs on TrueNAS passive controllers

Added by Caleb St. John almost 2 years ago. Updated 11 months ago.

Status:
Done
Priority:
Nice to have
Assignee:
Caleb St. John
Category:
Middleware
Target version:
Seen in:
TrueNAS - 11.0-U6
Severity:
Low Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
XVR-266-78661
Hardware Configuration:
ChangeLog Required:
No

Description

If a customer has configured a cron job via the webUI on the active node, the passive node will also run that cron job. An option in the webUI to only enable the cron job on the active node would be beneficial and make sense considering the passive node has no I/O on it.


Related issues

Related to FreeNAS - Umbrella #55899: Prevent Cloud Sync Tasks from overflowing /mntDone
Related to FreeNAS - Bug #57384: Do not run cron jobs on TrueNAS passive controllersDone
Has duplicate FreeNAS - Bug #55908: stop running cron jobs on passive controllerClosed

History

#1 Updated by Caleb St. John almost 2 years ago

  • Subject changed from prevent cron from running on passive node to ability to prevent cron from running on passive node

#2 Avatar?id=13649&size=24x24 Updated by Ben Gadd almost 2 years ago

  • Assignee changed from Release Council to William Grzybowski
  • Target version changed from N/A to TrueNAS 11.2

#3 Updated by William Grzybowski almost 2 years ago

  • Status changed from Not Started to Blocked
  • Reason for Blocked set to Waiting for feedback

Any reason to not just disabled the cron on standby node altogether?

#4 Updated by Caleb St. John almost 2 years ago

William, that sounds like a fine solution to me. However, there is no way to do this from the webUI (that I can see)

Also, if we disable the cron on the passive node just need to make sure
1. it doesn't effect normal HA operation
2. the passive node cron is enabled on an HA failover event

#5 Updated by William Grzybowski almost 2 years ago

  • Status changed from Blocked to Not Started

I didnt state there was a way, just proposed the solution.

#6 Updated by William Grzybowski almost 2 years ago

  • Reason for Blocked deleted (Waiting for feedback)

#8 Updated by Caleb St. John over 1 year ago

Just had another conversation about this feature. We should provide the ability (in the webUI) to either enable or disable the cron jobs from running on the passive node.

#9 Updated by William Grzybowski over 1 year ago

  • Category changed from OS to Middleware

#10 Avatar?id=14398&size=24x24 Updated by Kris Moore about 1 year ago

  • Project changed from TrueNAS to FreeNAS
  • Category changed from Middleware to Middleware
  • Private changed from No to Yes
  • Migration Needed deleted (No)
  • Hide from ChangeLog deleted (No)
  • Support Department Priority deleted (0)

#11 Updated by Dru Lavigne about 1 year ago

  • Target version changed from TrueNAS 11.2 to Backlog

#12 Updated by Dru Lavigne about 1 year ago

  • Has duplicate Bug #55908: stop running cron jobs on passive controller added

#13 Updated by Dru Lavigne about 1 year ago

  • Related to Umbrella #55899: Prevent Cloud Sync Tasks from overflowing /mnt added

#14 Updated by Caleb St. John about 1 year ago

  • Status changed from Not Started to In Progress
  • Assignee changed from William Grzybowski to Caleb St. John
  • Target version changed from Backlog to TrueNAS 11.1-U6.2

#15 Updated by Caleb St. John about 1 year ago

  • Status changed from In Progress to Not Started
  • Assignee changed from Caleb St. John to William Grzybowski
  • Target version changed from TrueNAS 11.1-U6.2 to Backlog

#16 Updated by Caleb St. John about 1 year ago

  • Status changed from Not Started to In Progress
  • Assignee changed from William Grzybowski to Caleb St. John

#18 Updated by Caleb St. John about 1 year ago

  • Status changed from In Progress to Ready for Testing
  • Needs Merging changed from Yes to No

All PR's approved and merged. Ready for testing.

Testing steps:

1. create cloud sync task in webUI on TrueNAS HA active controller
2. log into CLI via ssh on passive controller
3. vi /etc/crontab
4. verify that there are no cloudsync type entries in the file

#19 Updated by Dru Lavigne about 1 year ago

  • Subject changed from ability to prevent cron from running on passive node to Do not run cron jobs on TrueNAS passive controllers
  • Target version changed from Backlog to TrueNAS 11.1-U6.2

#20 Updated by Dru Lavigne about 1 year ago

  • Private changed from Yes to No

#21 Updated by Dru Lavigne 12 months ago

  • Related to Bug #57384: Do not run cron jobs on TrueNAS passive controllers added

#22 Updated by Bonnie Follweiler 11 months ago

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

Test Passed in TrueNAS-11.1-U6.2-INTERNAL2

#23 Updated by Dru Lavigne 11 months ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF