Closed alitvak69 closed 3 years ago
interval ,must endwith time unit, like ms s h
interval ,must endwith time unit, like ms s h
The ticket is about documentation changes. After our jobs had started failing to run we figured out what was wrong. However, current man pages don't reflect the change. Podman 1.x wait works without time unit with number in micro seconds.
This is not a documentation failure but a failure in code. We should allow for the specification of micro seconds.
This sounds like a bug if it worked in 1.x but broke in 2.x - I don't mind keeping the new units but if none are present we should default to whatever 1.x did.
On Wed, Oct 21, 2020, 04:32 alitvak69 notifications@github.com wrote:
interval ,must endwith time unit, like ms s h
The ticket is about a documentation changes. After our jobs started failing to start we figured out what was wrong. However current man pages don't reflect the change. Podman 1.x wait works without time unit with number in micro seconds.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/containers/podman/issues/8088#issuecomment-713404104, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3AOCGFLGR5P3JL4VYQKSDSL2MB3ANCNFSM4SZGI2HA .
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Podman wait command man page displayed on Read The Docs and distributed with podman package 2.x is obsolete as it doesn't reflect changes to the interval option format.
Steps to reproduce the issue:
root@foo:~# podman wait -i 200000 --latest
Describe the results you received:
Error: invalid argument "200000" for "-i, --interval" flag: time: missing unit in duration "200000"
Describe the results you expected: Wait starts, no error.
Additional information you deem important (e.g. issue happens only occasionally): The actual command in version 2.x should be
root@foo:~# podman wait -i 200ms --latest
Where numeric value follows a time unit (s,ms,us, ... etc)
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.): Ubuntu 18.04 amd64