-
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
Cirrus: preserve podman-server logs #17153
Cirrus: preserve podman-server logs #17153
Conversation
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
Thank you!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: edsantiago, vrothberg 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 |
/lgtm |
/hold |
I don't think it's working (logs missing) but I'll look after meeting |
Yes, but only for system tests. I thought it would work for |
1e98ec5
to
a572f37
Compare
Yay logs: ...and now bud. Unfortunately, the bud log is empty apart from test names. All the other logs have stuff like "pulling images", "storing signatures". Does anyone know why there's nothing at all in the system-service logs for bud? Did I do something wrong? |
test/buildah-bud/buildah-tests.diff
Outdated
+ # static CONTAINERS_CONF needed for capabilities test. As of 2021-07-01 | ||
+ # no tests in bud.bats override this; if at some point any test does | ||
+ # so, it will probably need to be skip_if_remote()d. | ||
+ env CONTAINERS_CONF=${CONTAINERS_CONF:-$(dirname ${BASH_SOURCE})/containers.conf} $PODMAN_NATIVE system service --timeout=0 & | ||
+ env CONTAINERS_CONF=${CONTAINERS_CONF:-$(dirname ${BASH_SOURCE})/containers.conf} $PODMAN_NATIVE system service --timeout=0 &>>${PODMAN_SERVER_LOG:-/dev/stderr} & |
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.
+ env CONTAINERS_CONF=${CONTAINERS_CONF:-$(dirname ${BASH_SOURCE})/containers.conf} $PODMAN_NATIVE system service --timeout=0 &>>${PODMAN_SERVER_LOG:-/dev/stderr} & | |
+ env CONTAINERS_CONF=${CONTAINERS_CONF:-$(dirname ${BASH_SOURCE})/containers.conf} $PODMAN_NATIVE system service --timeout=0 &>>${$PODMAN_SERVER_LOG:-/dev/stderr} & |
@edsantiago could this fix the issue? Not sure though ... bash isn't my strong suit.
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.
That's actually a syntax error. The ${ VAR colon-minus default}
means to use stderr if PODMAN_SERVER_LOG
is unset:
$ echo ${PODMAN_SERVER_LOG:-/dev/stderr}
/dev/stderr
$ PODMAN_SERVER_LOG=/tmp/foo
$ echo ${PODMAN_SERVER_LOG:-/dev/stderr}
/tmp/foo
the log level is warning by default, so it could be very wall that are no warning/error logged. The fact the we see pull progress on the server side also sounds like a bug to me and not a feature, why would anybody want that. I assume bud test do not require any pulls because the images are already present in the store. |
Oh, yeah. But it's existed so long that it's probably a feature now.
I haven't actually checked, but I used to be kinda-sure that some of the |
Could be, maybe going through buildah just suppresses this output in the remote context for some reason. If you want to make sure it works you could add --log-level=info, this might actually make more sense anyway because it would log the actual requests which will be useful for debugging. |
Output from podman system service, on system tests, is being saved... it just hasn't been collected as an artifact. Start collecting it. And, remove obsolete-unused-misleading code that made me think it _was_ being collected. Also: log system-service output for bud tests, and set log-level to info per suggestion from @Luap99 Signed-off-by: Ed Santiago <[email protected]>
a572f37
to
07d297c
Compare
Good idea. Tested locally, I like the results (informative, not TOO noisy). May help someone in the future. Done and pushed. Thank you. |
...and here's the podman server log for bud tests, with log-level info /hold cancel Ready to merge, if it meets team approval. Thanks for the advice. |
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
Nice work, @edsantiago and @Luap99 !
Output from podman system service, on system tests, is
being saved... it just hasn't been collected as an artifact.
Start collecting it. And, remove obsolete-unused-misleading
code that made me think it was being collected.
Also: log system-service output for bud tests
Signed-off-by: Ed Santiago [email protected]