Bug 1261329

Summary: wrong command in /etc/cron.daily/docker-logrotate
Product: Red Hat Enterprise Linux 7 Reporter: Zhang Jiajun <jiazhang>
Component: dockerAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED CURRENTRELEASE QA Contact: atomic-bugs <atomic-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.1CC: dwalsh, lsm5, wili
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1264196 (view as bug list) Environment:
Last Closed: 2016-01-07 21:51:08 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 Zhang Jiajun 2015-09-09 07:53:08 UTC
Description of problem:

In /etc/cron.daily/docker-logrotate which is created after installing docker-logrotate, there is a following setting:

  exec $(docker exec $id logrotate -s /var/log/logstatus /etc/logrotate.conf > /dev/null 2&>1)

It should be:

  exec $(docker exec $id logrotate -s /var/log/logstatus /etc/logrotate.conf > /dev/null 2>&1)

Additional info:

# rpm -qa |grep docker
docker-1.7.1-108.el7.x86_64
docker-selinux-1.7.1-108.el7.x86_64
docker-logrotate-1.7.1-108.el7.x86_64
docker-registry-0.9.1-4.el7.x86_64

Comment 2 Daniel Walsh 2015-09-09 14:01:57 UTC
*** Bug 1261321 has been marked as a duplicate of this bug. ***

Comment 3 Daniel Walsh 2015-09-09 14:02:23 UTC
*** Bug 1261312 has been marked as a duplicate of this bug. ***

Comment 6 Daniel Walsh 2015-10-29 15:50:27 UTC
Fixed in docker-1.9

Comment 7 Lokesh Mandvekar 2015-10-29 17:48:15 UTC
This has been fixed in 1.8.2 itself. Let me include that in the errata.