Skip to content

play kube default log driver#14060

Merged
openshift-merge-robot merged 1 commit intocontainers:mainfrom
nicrowe00:13781
May 4, 2022
Merged

play kube default log driver#14060
openshift-merge-robot merged 1 commit intocontainers:mainfrom
nicrowe00:13781

Conversation

@nicrowe00
Copy link
Copy Markdown
Collaborator

The default log driver is not used when using play kube
without --log-driver. The LogDriver function needs to
be called in order to use the default log driver.

fixes #13781
Signed-off-by: Niall Crowe nicrowe@redhat.com

@nicrowe00
Copy link
Copy Markdown
Collaborator Author

@vrothberg PTAL

Copy link
Copy Markdown
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

LGTM
@containers/podman-maintainers PTAL

Copy link
Copy Markdown
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

/lgtm
/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 29, 2022
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 29, 2022
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 29, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: giuseppe, nicrowe00

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 29, 2022
Copy link
Copy Markdown
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

I am not sure how the test actually makes sure the correct default is chosen. It should not rely on the default value. Instead use a custom containers.conf and test with both journald and k8s-file as default.

The current patch will also not work via remote. The defaults must be set on server side.

@rhatdan rhatdan removed the lgtm Indicates that a PR is ready to be merged. label Apr 29, 2022
@vrothberg
Copy link
Copy Markdown
Member

I am not sure how the test actually makes sure the correct default is chosen. It should not rely on the default value. Instead use a custom containers.conf and test with both journald and k8s-file as default.

The entire point is to use the default value. podman info returns the one from the server, so I don't think we need a custom containers.conf.

The current patch will also not work via remote. The defaults must be set on server side.

Good point. I didn't test it with remote yet. We'll probably need some further tweaks for the remote code.

@TomSweeneyRedHat
Copy link
Copy Markdown
Member

All kinds of tests unhappiness.
Code LGTM, I'll let you all thumb wrestle over the test completeness.

Copy link
Copy Markdown
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

The remote int flakes are unrelated.

The default log driver is not used when using play kube
without --log-driver. The LogDriver function needs to
be called in order to use the default log driver.

fixes #13781
Signed-off-by: Niall Crowe <nicrowe@redhat.com>
@vrothberg
Copy link
Copy Markdown
Member

@containers/podman-maintainers PTAL

I restarted the flaked job.

@mheon
Copy link
Copy Markdown
Member

mheon commented May 4, 2022

LGTM

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented May 4, 2022

/lgtm
/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 4, 2022
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 4, 2022
@openshift-merge-robot openshift-merge-robot merged commit b1e9ea3 into containers:main May 4, 2022
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

play kube does not use default log driver

9 participants