crontab throws errors on CentOS 7

Bug #1732762 reported by Major Hayden
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Low
Major Hayden

Bug Description

The 'run-tests' script on CentOS does not have a '--report' option. This option should be omitted on CentOS 7 hosts.

The following error is emailed each time the crontab is parsed:

  Not a directory: --report

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (master)

Fix proposed to branch: master
Review: https://review.openstack.org/520682

Changed in openstack-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (master)

Reviewed: https://review.openstack.org/520682
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=c4d12eba1b5b6c27b318b84a58a442ee80aa9db0
Submitter: Zuul
Branch: master

commit c4d12eba1b5b6c27b318b84a58a442ee80aa9db0
Author: Major Hayden <email address hidden>
Date: Fri Nov 17 08:14:21 2017 -0600

    Fix crontab errors on CentOS/SUSE

    CentOS comes with a default empty crontab file that is fine for
    most deployers. It also lacks the `--report` option for `run-parts`
    that Ubuntu has.

    SUSE doesn't have run-parts at all.

    This causes the server administrator to receive emails with errors
    from cron on a regular basis. This patch limits the crontab
    deployment to Ubuntu only and skips CentOS/SUSE hosts.

    Closes-Bug: 1732762
    Change-Id: Iba714e1e20e1a27b1a5bb58a714dee3916faba8f

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/525523

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/525652

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/525653

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on openstack-ansible (stable/newton)

Change abandoned by Major Hayden (<email address hidden>) on branch: stable/newton
Review: https://review.openstack.org/525653

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 17.0.0.0b2

This issue was fixed in the openstack/openstack-ansible 17.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (stable/ocata)

Reviewed: https://review.openstack.org/525652
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=765cbc2ba03f3836fd4ef2a60a84183ad9af1df6
Submitter: Zuul
Branch: stable/ocata

commit 765cbc2ba03f3836fd4ef2a60a84183ad9af1df6
Author: Major Hayden <email address hidden>
Date: Fri Nov 17 08:14:21 2017 -0600

    Fix crontab errors on CentOS/SUSE

    CentOS comes with a default empty crontab file that is fine for
    most deployers. It also lacks the `--report` option for `run-parts`
    that Ubuntu has.

    SUSE doesn't have run-parts at all.

    This causes the server administrator to receive emails with errors
    from cron on a regular basis. This patch limits the crontab
    deployment to Ubuntu only and skips CentOS/SUSE hosts.

    Closes-Bug: 1732762
    Change-Id: Iba714e1e20e1a27b1a5bb58a714dee3916faba8f
    (cherry picked from commit c4d12eba1b5b6c27b318b84a58a442ee80aa9db0)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (stable/pike)

Reviewed: https://review.openstack.org/525523
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=b3d5ad8d5ee8d43562bb8ff63b53777850555b62
Submitter: Zuul
Branch: stable/pike

commit b3d5ad8d5ee8d43562bb8ff63b53777850555b62
Author: Major Hayden <email address hidden>
Date: Fri Nov 17 08:14:21 2017 -0600

    Fix crontab errors on CentOS/SUSE

    CentOS comes with a default empty crontab file that is fine for
    most deployers. It also lacks the `--report` option for `run-parts`
    that Ubuntu has.

    SUSE doesn't have run-parts at all.

    This causes the server administrator to receive emails with errors
    from cron on a regular basis. This patch limits the crontab
    deployment to Ubuntu only and skips CentOS/SUSE hosts.

    Closes-Bug: 1732762
    Change-Id: Iba714e1e20e1a27b1a5bb58a714dee3916faba8f
    (cherry picked from commit c4d12eba1b5b6c27b318b84a58a442ee80aa9db0)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 16.0.6

This issue was fixed in the openstack/openstack-ansible 16.0.6 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 15.1.14

This issue was fixed in the openstack/openstack-ansible 15.1.14 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.