Project

General

Profile

Actions

Bug #65612

open

qa: logrotate fails when state file is already locked

Added by Patrick Donnelly 11 days ago.

Status:
New
Priority:
High
Assignee:
-
Category:
-
Target version:
% Done:

0%

Source:
Q/A
Tags:
Backport:
squid,reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

2024-04-21T00:00:01.951 DEBUG:teuthology.orchestra.run.smithi038:> sudo logrotate /etc/logrotate.d/ceph-test.conf
2024-04-21T00:00:01.954 DEBUG:teuthology.orchestra.run.smithi081:> sudo logrotate /etc/logrotate.d/ceph-test.conf
2024-04-21T00:00:01.986 INFO:teuthology.orchestra.run.smithi038.stderr:error: state file /var/lib/logrotate/logrotate.status is already locked
2024-04-21T00:00:01.986 INFO:teuthology.orchestra.run.smithi038.stderr:logrotate does not support parallel execution on the same set of logfiles.
2024-04-21T00:00:01.988 DEBUG:teuthology.orchestra.run:got remote process result: 3
2024-04-21T00:00:01.989 ERROR:teuthology:Uncaught exception (Hub)
Traceback (most recent call last):
  File "src/gevent/greenlet.py", line 908, in gevent._gevent_cgreenlet.Greenlet.run
  File "/home/teuthworker/src/git.ceph.com_ceph-c_0b60fd01511511bc020e1a45638ede6ead9e38ec/qa/tasks/ceph.py", line 189, in invoke_logrotate
    run.wait(procs)
  File "/home/teuthworker/src/git.ceph.com_teuthology_9481b1d62f50e7d0a4f3dd83adf6945b08d5ff17/teuthology/orchestra/run.py", line 479, in wait
    proc.wait()
  File "/home/teuthworker/src/git.ceph.com_teuthology_9481b1d62f50e7d0a4f3dd83adf6945b08d5ff17/teuthology/orchestra/run.py", line 161, in wait
    self._raise_for_status()
  File "/home/teuthworker/src/git.ceph.com_teuthology_9481b1d62f50e7d0a4f3dd83adf6945b08d5ff17/teuthology/orchestra/run.py", line 181, in _raise_for_status
    raise CommandFailedError(
teuthology.exceptions.CommandFailedError: Command failed on smithi038 with status 3: 'sudo logrotate /etc/logrotate.d/ceph-test.conf'

From: /teuthology/pdonnell-2024-04-20_23:33:17-fs-wip-pdonnell-testing-20240420.180737-debug-distro-default-smithi/7665849/teuthology.log

also

/teuthology/pdonnell-2024-04-20_23:33:17-fs-wip-pdonnell-testing-20240420.180737-debug-distro-default-smithi/7665843/teuthology.log

No data to display

Actions

Also available in: Atom PDF