8000 Reposyncs hang forever when log is rotated during reposync · Issue #3888 · cobbler/cobbler · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Reposyncs hang forever when log is rotated during reposync #3888
Open
@garbled1

Description

@garbled1

Describe the bug

Due to the following of the log file /var/log/cobbler/cobbler.log during a reposync, if the logfile is rotated during the reposync the reposync will just hang forever waiting for a logfile message that will never come.

Perhaps the correct fix is to tail the log in the tasks dir instead?

Steps to reproduce

  1. Run cobbler reposync
  2. force log rotation in the middle of a reposync
  3. wait for godot

Expected behavior

Reposync should finish, or maybe the code to watch the log should realize the log has rotated out and return an error/failure. Either way, it shouldn't hang for infinity.

Cobbler version

Cobbler 3.3.6

Operating system

RHEL7

Cobbler log

Screenshots

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0