-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
logging: new mode -l passthrough-tty #20774
Conversation
0e1ab70
to
8567079
Compare
@giuseppe is this still a draft? |
no this is ready, I was waiting for the conmon change to merge first |
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.
LGTM
given |
personally I think it is better to keep it as a separate mode, to avoid potential security issues with |
test/system/035-logs.bats
Outdated
# check if conmon supports -l passthrough-tty, we can drop this check once conmon gets in the CI images. | ||
run_podman info -f '{{.Host.Conmon.Path}}' | ||
conmon_path="$output" | ||
|
||
if ! $conmon_path -l passthrough --cid foo --cuuid foo --runtime /bin/true; then | ||
skip "conmon does not support -l passthrough-tty" | ||
fi |
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.
This is no longer applicable I assume?
test/system/035-logs.bats
Outdated
if ! tty -s; then | ||
skip "not running in a tty" | ||
fi |
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.
looking at CI this seems to always trigger so it is unable to catch any regression in CI thus effectively making the test pointless. Can we setup a tty for this test somehow?
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.
found a way to test it with python, it is hacky but seems to work fine locally
c37f0aa
to
5bd2bb4
Compare
Hi, sorry I haven't been watching this closely, before you spend too much time on this, can you look at |
5bd2bb4
to
81a46ac
Compare
thanks, that is surely better! I've moved the test to |
test/system/450-interactive.bats
Outdated
if ! tty -s; then | ||
skip "not running in a tty" | ||
fi |
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.
ummmmmm....
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.
dropped now
test/system/450-interactive.bats
Outdated
run_podman info -f '{{.Host.Conmon.Path}}' | ||
conmon_path="$output" | ||
|
||
if ! $conmon_path -l passthrough --cid foo --cuuid foo --runtime /bin/true; then |
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.
Do you know what version of conmon supports this, and where it is in the bodhi pipeline? I just spun up a rawhide VM, and even in updates-testing, I can't get a conmon that supports this. I would like to hold this PR until I can run this test against a truly working conmon.
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.
it is not released yet: containers/conmon#465
Fine by me, let's hold it until the next conmon release
81a46ac
to
356ddf2
Compare
/hold until we have a working conmon in the CI |
356ddf2
to
7b240df
Compare
Ping. We have new VMs. Conmon is now |
7b240df
to
007c42b
Compare
I've rebased and cleaned up the test but unfortunately 2.1.8 is not enough. We need at least 2.1.9 (which has a regression, so it should be 2.1.10). |
@giuseppe Could you rebase. |
007c42b
to
fd2e5ce
Compare
fd2e5ce
to
8126808
Compare
Cockpit tests failed for commit 8126808d4d96f79312a8c278e6d8652e8f1f49b4. @martinpitt, @jelly, @mvollmer please check. |
it works in a similar way to passthrough but it allows to be used also on a TTY. conmon support: containers/conmon#465 Closes: containers#20767 Signed-off-by: Giuseppe Scrivano <[email protected]>
8126808
to
950f612
Compare
Cockpit tests failed for commit 950f612. @martinpitt, @jelly, @mvollmer please check. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: edsantiago, flouthoc, giuseppe The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@containers/podman-maintainers PTAL |
/lgtm |
/hold cancel |
it works in a similar way to passthrough but it allows to be used also on a TTY.
conmon support: containers/conmon#465
Closes: #20767
Does this PR introduce a user-facing change?