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

Stream logs via podman api #99

Merged
merged 25 commits into from
Oct 9, 2021
Merged

Stream logs via podman api #99

merged 25 commits into from
Oct 9, 2021

Conversation

towe75
Copy link
Collaborator

@towe75 towe75 commented Apr 7, 2021

Up to now we where only able to forward a combined stdout/stderr stream directly from the container to the alloc fifo. This imposes problems for external log shippers and also in situations where you depend on a separate stderr output.

This PR adds a podman API based log streamer to the plugin. It needs an extra opt-in by driver config and is, for now, restricted to the podman journald mode. It addresses also a discussion back from #4

towe75 added a commit to pascomnet/nomad-driver-podman that referenced this pull request Jun 2, 2021
@towe75 towe75 mentioned this pull request Jun 4, 2021
@towe75 towe75 changed the title WIP: Stream logs via podman api Stream logs via podman api Aug 4, 2021
@towe75 towe75 marked this pull request as ready for review August 4, 2021 18:18
@towe75
Copy link
Collaborator Author

towe75 commented Aug 4, 2021

@jrasell this is a somewhat long living branch but it's in a good shape now. Please review it.

@towe75
Copy link
Collaborator Author

towe75 commented Aug 25, 2021

@jrasell @lgfa29 can somebody review it please?

Copy link
Contributor

@lgfa29 lgfa29 left a comment

Choose a reason for hiding this comment

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

Sorry for the delay on getting this reviewed @towe75.

I had some minor comments and questions, but from my tests it seems to all work well 🙂

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
api/demux.go Outdated Show resolved Hide resolved
api/demux.go Outdated Show resolved Hide resolved
driver.go Outdated Show resolved Hide resolved
@kriansa
Copy link

kriansa commented Sep 28, 2021

@towe75 just as a reminder, would you also update the known limitations section of this docs page when this is released?

@towe75
Copy link
Collaborator Author

towe75 commented Oct 9, 2021

@kriansa : i'm sorry but i have no access to this page.
@lgfa29 : can you handle it please?

@towe75 towe75 merged commit c994667 into main Oct 9, 2021
@towe75 towe75 deleted the f_logger branch October 9, 2021 15:33
@lgfa29
Copy link
Contributor

lgfa29 commented Oct 12, 2021

Website docs updated in hashicorp/nomad#11300.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants