3481 Commits

Author SHA1 Message Date
33be9e6845 Merge pull request #2523 from jwhonce/bug/2521
Fix #2521
2019-03-04 12:24:26 -08:00
e6e6cb384c Globally increase test timeout to 90-minutes
Signed-off-by: Chris Evich <cevich@redhat.com>
2019-03-04 15:19:15 -05:00
ae47a7c47e Fix #2521
* Bad merge against podman stop, restored overwritten code

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2019-03-04 12:20:37 -07:00
b00a456dc8 Update release notes for v1.1.2
Signed-off-by: Matthew Heon <mheon@redhat.com>
2019-03-04 14:20:04 -05:00
29ade7f6af Change timestamp format for podman logs
The Golang standard library implementation of RFC3339Nano will
trim trailing 0s from the nanoseconds portion of timestamps. This
is undesirable for lining everything up nicely during terminal
output. As the Golang developers have not seen fit to give us a
better way, use the one that was proposed on the issue tracker
but rejected.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-03-04 13:43:04 -05:00
34bf58c5db Merge pull request #2513 from mheon/log_timestamps_newline
Ensure that each log line is newline-terminated
2019-03-04 08:38:18 -08:00
54eecb02f0 Merge pull request #2511 from rhatdan/test
Add missing short flag -l for run/create
2019-03-04 08:08:58 -08:00
8a90f83d18 Merge pull request #2517 from QiWang19/i2509
Don't extract tar file in podman cp
2019-03-04 07:39:03 -08:00
c8bf73883c Don't extract tar file in podman cp
Signed-off-by: Qi Wang <qiwan@redhat.com>
2019-03-04 09:48:17 -05:00
c07b55b4a0 Merge pull request #2515 from giuseppe/fill_tmp_dir_for_conf
runtime: fill a proper default tmpdir when --config is used
2019-03-04 06:19:03 -08:00
9171702379 Merge pull request #2512 from edsantiago/yet_more_usage_fixes
A few more usage-message tweaks
2019-03-04 06:18:54 -08:00
d63c8b0032 Merge pull request #2364 from jwhonce/wip/remote_stop
Support podman-remote stop container
2019-03-04 03:58:47 -08:00
9bf8bd7bcb runtime: fill a proper default tmpdir when --config is used
Closes: https://github.com/containers/libpod/issues/2408

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-04 10:35:04 +01:00
ff609a5ade Add additional defense against 0-length log segfaults
Signed-off-by: Matthew Heon <mheon@redhat.com>
2019-03-03 23:30:45 -05:00
429f2e63a0 When logging with timestamps, append only until newline
When we log time timestamps, don't print a new timestamp for each
input - instead, print one at the start of every line, and then
wait until we hit a newline to print a new timestamp.

This still doesn't exactly mirror the Docker behavior (they don't
print until they receive an entire line, while we print any time
the logs file is appended to - so you can see partial lines being
typed in our system). Also, timestamps are recorded as the start
of a line being typed, as opposed to when the enter key is
pressed (on Docker).

(Worth noting that, while characters are printed as they are
typed, logs does respect the backspace key - so you'll also see
them disappear as the person typing realizes they've made a
mistake and retypes their command).

This is the closest we can get to Docker without major surgery on
the Kubernetes log-printing library, so I'm content to call this
an adequate solution.

Signed-off-by: Matthew Heon <mheon@redhat.com>
2019-03-03 23:06:32 -05:00
e372837eb0 Ensure that each log line is newline-terminated
When writing logs with timestamps to the terminal, ensure that
each line is newline-terminated, so we don't end up with an
unreadable mess with timestamps interspersed with the actual
content being displayed.

Signed-off-by: Matthew Heon <mheon@redhat.com>
2019-03-03 21:13:49 -05:00
0a0c1fa23e A few more usage-message tweaks
Minor stuff, but it corrects some errors in usage messages.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2019-03-03 19:09:12 -07:00
e3358585b3 Add missing short flag -l for run/create
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-03-03 20:38:43 -05:00
f3a3d8e28e Merge pull request #2477 from rhatdan/test
Add tests to make sure podman container and podman image commands work
2019-03-03 07:12:12 -08:00
d231cfba92 Fix aliased commands to actually work
The current aliased commands

podman container list

and

podman image list
podman image rm

Do not work properly.  The global storage options are broken.

This patch fixes this issue.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-03-03 06:14:20 -05:00
4d13a80fa4 Support podman-remote stop container(s)
* Clean up adapter code
* Add GetContainersByContext to Varlink API
* Add missing comments
* Restore save command
* Restore error type mapping when using varlink

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2019-03-02 08:57:20 -07:00
4c618875f6 Add tests to make sure podman container and podman image commands work
We have little to no testing to make sure we don't break podman image and
podman container commands that wrap traditional commands.

This PR adds tests for each of the commands.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-03-02 07:15:26 -05:00
0b34327ad4 exec: support --preserve-fds
Allow to pass additional FDs to the process being executed.

Closes: https://github.com/containers/libpod/issues/2372

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-02 11:45:42 +01:00
9adcda7389 Merge pull request #2499 from mheon/bump-1.1.1
Bump to v1.1.1
2019-03-01 16:05:59 -08:00
c8e8732ee1 Bump gitvalidation epoch
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-03-01 18:03:53 -05:00
d737546360 Bump to v1.2.0-dev
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-03-01 18:03:53 -05:00
d5997dcb95 Bump to v1.1.1
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
v1.1.1
2019-03-01 18:03:50 -05:00
cabfc9b6fb Merge pull request #2497 from mheon/release_notes_v1.1.1
Update release notes for v1.1.1
2019-03-01 14:24:35 -08:00
8ee471f800 Merge pull request #2495 from baude/runlabelpulldefault
Pull image for runlabel if not local
2019-03-01 12:50:50 -08:00
467b677451 Merge pull request #2482 from edsantiago/podman_image_rm
Fix usage messages for podman image list, rm
2019-03-01 12:35:59 -08:00
bd7326e3df Update release notes for v1.1.1
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-03-01 15:33:44 -05:00
e4746f9b4b Merge pull request #2452 from edsantiago/no_more_args
Command-line input validation: reject unused args
2019-03-01 12:22:12 -08:00
ce8d7b8539 Merge pull request #2451 from baude/playrenamepodoncollision
rename pod when we have a name collision with a container
2019-03-01 12:22:07 -08:00
2747c20867 Merge pull request #2485 from adrianreber/oci-check
Verify that used OCI runtime supports checkpoint
2019-03-01 12:04:29 -08:00
c0bc88decc Merge pull request #2483 from cevich/important_contrib_note
[ci skip] Add critical note about skip-ci and merge bot
2019-03-01 09:13:34 -08:00
0bf06b9e3b Merge pull request #2486 from edsantiago/podman_command_compare
podman-commands script: refactor
2019-03-01 09:54:45 -07:00
6060113967 Merge pull request #2493 from edsantiago/broken_doc_links
Fix link inconsistencies in man pages
2019-03-01 09:50:00 -07:00
55f80719a6 Merge pull request #2481 from cevich/sysexec_waitcomplete
Fix SystemExec completion race
2019-03-01 08:43:25 -08:00
a4b82c03d3 Pull image for runlabel if not local
In cases where a user issues the podman container runlabel
command and the image is not local, we now default to pulling
the image automatically to mimic the atomic cli behavior.

Fixes: BZ #1677905

Signed-off-by: baude <bbaude@redhat.com>
2019-03-01 09:20:12 -06:00
f67859ffb3 Fix SystemExec completion race
Some callers assume when SystemExec returns, the command has completed.
Other callers explicitly wait for completion (as required).  However,
forgetting to do that is an incredibly easy mistake to make.  Fix this
by adding an explicit parameter to the function.  This requires
every caller to deliberately state whether or not a completion-check
is required.

Also address **many** resource naming / cleanup completion-races.

Signed-off-by: Chris Evich <cevich@redhat.com>
2019-03-01 09:18:45 -05:00
6f474c5704 Fix link inconsistencies in man pages
Found via:

    for i in docs/*.md;do x=$(perl -ne 'if (/\[(podman-.*?)\(1\)\]\((podman-.*?)\.1\.md/) { print "  $1 != $2\n" if $1 ne $2; print " ENOENT $2\n" unless -e "docs/$2.1.md" }' <$i); if [ -n "$x" ]; then echo $i; echo "$x";fi;done

...which is probably a good candidate for another CI hook,
except I have no idea how to rewrite it in awk.

Additionally, mark `podman refresh` and `podman container refresh`
as hidden, remove its man page, and remove references to it from
all other man pages.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2019-03-01 06:53:52 -07:00
c80416f034 Merge pull request #2492 from rhatdan/pull
Should be defaulting to pull not pull-always
2019-03-01 02:23:41 -08:00
43fe2bf064 Verify that used OCI runtime supports checkpoint
To be able to use OCI runtimes which do not implement checkpoint/restore
this adds a check to the checkpoint code path and the checkpoint/restore
tests to see if it knows about the checkpoint subcommand. If the used
OCI runtime does not implement checkpoint/restore the tests are skipped
and the actual 'podman container checkpoint' returns an error.

Signed-off-by: Adrian Reber <areber@redhat.com>
2019-03-01 08:08:55 +01:00
f539500884 Should be defaulting to pull not pull-always
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-02-28 17:20:29 -05:00
9137315133 Merge pull request #2484 from rhatdan/man
No podman container ps command exists
2019-02-28 14:12:58 -08:00
03b236a754 Merge pull request #2461 from adrianreber/disable
Skip checkpoint/restore tests on Fedora for now
2019-02-28 13:51:13 -08:00
e30628eeda Merge pull request #2490 from TomSweeneyRedHat/dev/tsweeney/fixbase
Fix -s to --storage-driver in baseline test
2019-02-28 13:32:32 -08:00
a680144f71 Merge pull request #2487 from haircommander/exec_attahc
Allow Exec API user to override streams
2019-02-28 13:18:05 -08:00
af848ae377 Merge pull request #2479 from giuseppe/rootless-give-uidmaptools-error
rootless, new[ug]idmap: on failure add output
2019-02-28 12:20:28 -08:00
742028e255 podman-commands script: refactor
Make more general-purpose: instead of hardcoding a list
of known subcommands, and duplicating sed pipelines for
each, rely on 'podman help' itself to tell us which
podman commands have subcommands; and examine each
in turn. Should there ever be new subcommands, this
will identify and test them.

A special case is needed for 'podman image trust', whose
documentation format doesn't match the others.

The change to `common.go` fixes an inconsistency: the
Usage message for commands with subcommands had an
unnecessary blank line, making it harder to parse
automatically. This simply produces consistent
Usage messages for all podman commands.

This script will not pass until #2480 is merged.
After that, the goal is to add this as a CI hook.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2019-02-28 13:16:24 -07:00