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 1441524

Summary: logrotate spam if openvswitch does not start after boot
Product: Red Hat Enterprise Linux 7 Reporter: Jiri Belka <jbelka>
Component: openvswitchAssignee: Timothy Redaelli <tredaelli>
Status: CLOSED ERRATA QA Contact: Junhan <juyan>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.3CC: atragler, bugs, cbolz, danken, fleitner, qding, rhartman, troels
Target Milestone: pre-dev-freeze   
Target Release: 7.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openvswitch-2.7.0-6.git20170530.el7fdb Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-12 15:48:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Belka 2017-04-12 07:42:31 UTC
Description of problem:

i'm receiving this spam from SHE host:

/etc/cron.daily/logrotate:

logrotate_script: line 4: cd: /var/run/openvswitch: No such file or directory

[root@slot-2 ~]# grep openvswitch /etc/logrotate.d/*
/etc/logrotate.d/openvswitch:/var/log/openvswitch/*.log {
/etc/logrotate.d/openvswitch:        for pidfile in `cd /var/run/openvswitch && echo *.pid`; do
[root@slot-2 ~]# cat /etc/logrotate.d/openvswitch 
# Copyright (C) 2009, 2010, 2011, 2012 Nicira, Inc.
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.  This file is offered as-is,
# without warranty of any kind.

/var/log/openvswitch/*.log {
        daily
        compress
        sharedscripts
        missingok
        postrotate
        # Tell Open vSwitch daemons to reopen their log files
        for pidfile in `cd /var/run/openvswitch && echo *.pid`; do
            ovs-appctl -t "${pidfile%%.pid}" vlog/reopen
        done
        endscript
}

of course the is no /var/run/openvswitch dir

Version-Release number of selected component (if applicable):
openvswitch-2.6.1-10.git20161206.el7fdb.x86_64
vdsm-4.19.10.1-1.el7ev.x86_64
4.1.1-9

How reproducible:
just happens

Steps to Reproduce:
1. usual rhv setup, legacy mode for bridge
2.
3.

Actual results:
i'm receiving spam daily from logrotate script

Expected results:


Additional info:

Comment 2 Timothy Redaelli 2017-04-13 10:00:29 UTC
Fix sent upstream:

https://mail.openvswitch.org/pipermail/ovs-dev/2017-April/330760.html