Project

General

Profile

Bug #60417

Ensure crontab contains created Cron Jobs

Added by Dru Lavigne 7 months ago. Updated 5 months ago.

Status:
Done
Priority:
No priority
Assignee:
Waqar Ahmed
Category:
Middleware
Target version:
Severity:
High
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Cron jobs created in legacy/new UI are not being reflected in /etc/crontab and thus they don't execute as desired.

Risk
We risk breaking how cron jobs are written to crontab and thus finally executed

Acceptance Criteria
A cron job should be created i.e `touch /tmp/abc.txt` and it should be seen that does that file exist. After that, it should be checked that the changes of cron job are currently reflected in /etc/crontab i.e how the cron jobs are supposed to run weekly, monthly etc


Related issues

Copied from FreeNAS - Bug #56592: Ensure crontab contains created Cron JobsDone

History

#1 Updated by Dru Lavigne 7 months ago

  • Copied from Bug #56592: Ensure crontab contains created Cron Jobs added

#3 Updated by Eric Turgeon 6 months ago

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

I tested the cronjob API v1 and also the old and new UI, everything works fine.

#4 Updated by Dru Lavigne 6 months ago

  • Status changed from Passed Testing to Done

#5 Updated by Claas Lisowski 5 months ago

I updated from 11.1-U6.3 to U7 and was unable to enable/disable any existing crontab via ui (haven't tried API).
The error message was something like "User xxx could not be found".
I tried root user and other users but same result.
This happened for crontabs which existed before the update to U7.
I haven't created new crontab - I had to revert to U6.3 and all is fine for now.

Sorry that I can't offer log files or debug output.

#6 Updated by Waqar Ahmed 5 months ago

Hello Claas. Can you please file a new ticket with details and a system debug ? ( system -> advanced -> save debug ) Thank you

#7 Updated by Claas Lisowski 5 months ago

#8 Updated by Waqar Ahmed 5 months ago

Thank you, we will have it resolved as soon as possible.

Also available in: Atom PDF