Bug 1774740 - Failure of logrotate to exit causes cron.daily to lock indefinitely
Summary: Failure of logrotate to exit causes cron.daily to lock indefinitely
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: openvswitch
Version: FDB 18.04
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: OVN Team
QA Contact: Jianlin Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-20 20:28 UTC by Robert McSwain
Modified: 2023-07-13 07:25 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FD-323 0 None None None 2021-11-27 16:05:02 UTC
Red Hat Knowledge Base (Solution) 4670761 0 None None None 2020-01-30 00:35:11 UTC

Description Robert McSwain 2019-11-20 20:28:44 UTC
Issue:

Failure of "ovs-appctl -t /var/run/openvswitch/ovn-controller.$pid.ctl" to exit causes logrotate run to hang and cron.daily to lock indefinitely. 

Found that logrotate run from cron.daily is hanging on running /etc/logrotate.d/openvswitch, and more specifically on rotating portion of rotating the ovn-controller log which calls for `ovs-appctl -t "$ctl"  vlog/reopen 2>/dev/null" 

This is only failing for the ovn-controller, not ovsdb-server or ovs-vswitchd. 

/var/log/cron contains multiple entries containing "Job `cron.daily' locked by another anacron - skipping


Steps to Reproduce:
Run
# ovs-appctl -t /var/run/openvswitch/ovn-controller.$pid.ctl 

Observe that this fails on any hypervisor it's run on, even when run manually, hanging indefinitely.

Other notes:
There do not seem to be any logs at this time showing why this fails. Any additional debugging steps would be appreciated.

Comment 1 Dominik Holler 2019-11-25 14:00:00 UTC
I am unsure about the FDB version, yum says:
2.9.0-104.el7fdp


Note You need to log in before you can comment on or make changes to this bug.