Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1055549

Summary: anacron do not execute jobs run from command line
Product: Red Hat Enterprise Linux 7 Reporter: Patrik Kis <pkis>
Component: cronieAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: high Docs Contact:
Priority: high    
Version: 7.0Keywords: Regression
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 08:01:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Patrik Kis 2014-01-20 14:20:51 UTC
Description of problem:
Job execution fails when anacron started from command line. It was not tested if it also fails from scheduled execution. This is a regression introduced by cronie-1.4.11-7.el7

Version-Release number of selected component (if applicable):
cronie-1.4.11-7.el7

How reproducible:
always

Steps to Reproduce:

# cat /etc/anacrontab 
# /etc/anacrontab: configuration file for anacron

# See anacron(8) and anacrontab(5) for details.

SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# the maximal random delay added to the base delay of the jobs
RANDOM_DELAY=45
# the jobs will be started during the following hours only
START_HOURS_RANGE=3-22

#period in days   delay in minutes   job-identifier   command
1	5	cron.daily		nice run-parts /etc/cron.daily
7	25	cron.weekly		nice run-parts /etc/cron.weekly
@monthly 45	cron.monthly		nice run-parts /etc/cron.monthly
1	5	test.daily		/usr/bin/date>>/tmp/test.cron
#
#
# anacron -f -n test.daily
# cat /tmp/test.cron
cat: /tmp/test.cron: No such file or directory
# tail -3 /var/log/cron
Jan 20 09:16:34 ibm-p730-02-lp1 anacron[34188]: Anacron started on 2014-01-20
Jan 20 09:16:34 ibm-p730-02-lp1 anacron[34188]: Regex error reading /etc/anacrontab
Jan 20 09:16:34 ibm-p730-02-lp1 anacron[34188]: Aborted


Actual results:
anacron aborts

Expected results:
Like with cronie-1.4.11-6.el7 
The same /etc/anacrontab config file:

# anacron -f -n test.daily
# cat /tmp/test.cron
Mon Jan 20 09:19:21 EST 2014
# tail -6 /var/log/cron
Jan 20 09:19:21 ibm-p730-02-lp1 anacron[34227]: Anacron started on 2014-01-20
Jan 20 09:19:21 ibm-p730-02-lp1 anacron[34227]: Will run job `test.daily'
Jan 20 09:19:21 ibm-p730-02-lp1 anacron[34227]: Jobs will be executed sequentially
Jan 20 09:19:21 ibm-p730-02-lp1 anacron[34227]: Job `test.daily' started
Jan 20 09:19:21 ibm-p730-02-lp1 anacron[34227]: Job `test.daily' terminated
Jan 20 09:19:21 ibm-p730-02-lp1 anacron[34227]: Normal exit (1 job run)

Comment 3 Marcela Mašláňová 2014-01-21 08:01:12 UTC

*** This bug has been marked as a duplicate of bug 1031384 ***