Switch eventlogger to journald by default#10653
Conversation
40183c9 to
6c7fabb
Compare
6752472 to
ca54e6c
Compare
|
I'm stumped. @nalind @vrothberg @giuseppe Any idea what is going wrong? Basically podman logs is failing with journald never becoming ready. [+1194s] Error: initial journal cursor: failed to get cursor: cannot assign requested address Only on one test and it is failing on 5 different test suites. Of course when I run it locally, it works fine. Other tests within the same test suite seem to be passing with podman logs. |
|
Looking into it. |
|
@rhatdan, I did something stupid in the exponential backoff. Can you try with the following diff? diff --git a/libpod/container_log_linux.go b/libpod/container_log_linux.go
index 269f61ece6eb..a2bf298ea4a2 100644
--- a/libpod/container_log_linux.go
+++ b/libpod/container_log_linux.go
@@ -73,9 +73,9 @@ func (c *Container) readFromJournal(ctx context.Context, options *logs.LogOption
for i := 1; i <= 10; i++ {
cursor, cursorError = journal.GetCursor()
if err != nil {
+ time.Sleep(time.Duration(i*100) * time.Millisecond)
continue
}
- time.Sleep(time.Duration(i*100) * time.Millisecond)
break
}
if cursorError != nil { |
There was a problem hiding this comment.
Can you elaborate on why all the waits are needed?
There was a problem hiding this comment.
I added them because of the inherent race condition or trying to read a log while a container is still running, each one of these containers is detatched, and we could read the log before the container has written the log.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
2f3f7a9 to
6afa143
Compare
ff66500 to
bc43490
Compare
e1e1bfe to
17abe45
Compare
[NO TESTS NEEDED] Since we are just testing the default. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
|
Closing in favor of #11263. |
Signed-off-by: Daniel J Walsh dwalsh@redhat.com