Skip to content
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

Fixes #30252: Make wait for port more resilient #137

Merged
merged 1 commit into from Nov 17, 2020

Conversation

ehelms
Copy link
Member

@ehelms ehelms commented Nov 11, 2020

The current method can result in journal error messages:

[System] error Error reading socket: Encountered end of file [-5938]

This updated version waits and checks for listening ports
and greps for the port in question to appear before signaling
that the service is ready.

The current method can result in journal error messages:

[System] error Error reading socket: Encountered end of file [-5938]

This updated version waits and checks for listening ports
and greps for the port in question to appear before signaling
that the service is ready.
@ehelms
Copy link
Member Author

ehelms commented Nov 16, 2020

Thanks @evgeni for that point out, I have updated it and the tests.

@ehelms ehelms requested a review from evgeni November 17, 2020 16:32
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably also solved https://projects.theforeman.org/issues/27637 or at least make it invalid.

@evgeni
Copy link
Member

evgeni commented Nov 17, 2020

Agree, it should fix that issue.

@ehelms ehelms merged commit 57b9a12 into theforeman:master Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants