-
Notifications
You must be signed in to change notification settings - Fork 3k
Switch eventlogger to journald by default #10653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 { |
test/e2e/create_test.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you elaborate on why all the waits are needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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