-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Why does the Events parameter until
need to be a negative value if a duration is used?
#11158
Comments
Interested in opening a PR to fix? @cdoern PTAL |
I am not familiar with Go and don't feel comfortable opening a PR. |
I will look at this today, the way podman has handled |
@arctic-alpaca the lines |
@cdoern By output, do you mean they both "wait" 5 seconds for new events and then return? |
on my main branch (synced with master) and on the current version of podman, both of these commands sit for 5 seconds and then output the requested data @arctic-alpaca |
@cdoern Can you try with a higher value for until. It could be that podman takes that long to read all your events. I see this:
|
thanks @Luap99, that will help me figure this out. I will get on it today |
we were adding a negative duration in podman events, causing inputs like -5s to be correct and 5s to be incorrect. fixes containers#11158 Signed-off-by: cdoern <[email protected]>
we were adding a negative duration in podman events, causing inputs like -5s to be correct and 5s to be incorrect. fixes containers#11158 Signed-off-by: cdoern <[email protected]>
we were adding a negative duration in podman events, causing inputs like -5s to be correct and 5s to be incorrect. fixes #11158 Signed-off-by: cdoern <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When using the podman CLI or API, the
until
parameter for the events command/endpoint can be a timestamp or a duration according to the documentation. When a positive value like10s
is used for the duration, podman returns immediately, even thought it is used in streaming mode. This seems to be caused by this and this line, which subtracts the duration from the current time and uses it asuntil
timestamp. This isn't documented or intuitive.Steps to reproduce the issue:
./podman events --since 3m --until 5s
returns immediately./podman events --since 3m --until -5s
takes 5 seconds to returnDescribe the results you received:
See previous point.
Describe the results you expected:
Documentation to use a negative value in
until
or the possibility to use a positive value.Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
The linked code line is in the current master.
The text was updated successfully, but these errors were encountered: