6885 Commits

Author SHA1 Message Date
c1ff17acfa Merge pull request #5561 from jwhonce/wip/entities
[CI:DOCS] Add guidelines for writing podman V2 CLI commands
2020-03-19 20:48:08 +01:00
798d82951e Merge pull request #5558 from mheon/bump-1.8.2
Bump to v1.8.2
2020-03-19 20:45:26 +01:00
46b338c77d Add guildline for writing podman V2 CLI commands
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-03-19 11:54:27 -07:00
cccd05cb5b Merge pull request #5557 from baude/removebinary
[CI:DOCS]remove podmanv2 binary
2020-03-19 19:38:55 +01:00
aef32407eb Bump to v1.8.3-dev
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-03-19 13:38:44 -04:00
028e3317eb Bump to v1.8.2
Signed-off-by: Matthew Heon <mheon@redhat.com>
v1.8.2
2020-03-19 13:38:41 -04:00
9e886d3a4a [CI:DOCS]remove podmanv2 binary
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-19 12:23:08 -05:00
1cb3e3a705 Merge pull request #5556 from mheon/release_notes_182_final
[CI:DOCS] Update release notes for v1.8.2 final release
2020-03-19 18:21:59 +01:00
093d9ef673 Merge pull request #5546 from jwhonce/wip/entities
V2 podman command
2020-03-19 18:19:43 +01:00
b43e249b1d Merge pull request #5554 from baude/compatfix
fix reported compat issues
2020-03-19 17:34:39 +01:00
0286023437 Update release notes for v1.8.2 final release
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-03-19 12:24:55 -04:00
49a7856f2e Merge pull request #5465 from edsantiago/man_page_option_checker
New test: man page cross-ref against --help
2020-03-19 16:53:02 +01:00
edcc73eeb2 Merge pull request #5551 from rhatdan/windows
Don't include SUBDIR in windows.zip
2020-03-19 16:06:27 +01:00
d375424854 fix reported compat issues
honor -1 in in list containers for compatibility mode.  it is commonly used to indicate no limit.

change the json id parameter to Id in container create.

Fixes: #5553

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-19 10:05:10 -05:00
1be6178915 Merge pull request #5445 from sujil02/podFilter-new
Filter pods through pod list api
2020-03-19 15:50:50 +01:00
e87fe4dbbb Merge pull request #5550 from giuseppe/rootless-hidepid
rootless: fix usage with hidepid=1
2020-03-19 14:07:58 +01:00
fea5f913e3 Don't include SUBDIR in windows.zip
The zip file should returne podman.exe plus the documentation
directory.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-03-19 08:57:54 -04:00
1091440e5d rootless: fix usage with hidepid=1
when /proc is mounted with hidepid=1 a process doesn't see processes
from the outer user namespace.  This causes an issue reading the
cmdline from the parent process.

To address it, always read the command line from /proc/self instead of
using /proc/PARENT_PID.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-03-19 11:18:23 +01:00
fbe743501e V2 podman command
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-03-18 16:41:12 -07:00
bd9386ddac Merge pull request #5542 from rhatdan/vendor
Vendor in containers/buildah v1.14.3
2020-03-18 22:16:23 +01:00
464a1cd485 Merge pull request #5540 from jwhonce/issues/5531
Reduce CPU usage when --timeout=0
2020-03-18 21:55:09 +01:00
d66d542820 Merge pull request #5544 from baude/apiv2serveswagger
serve swagger when present
2020-03-18 21:26:52 +01:00
c9c95a7e0b Merge pull request #5543 from edsantiago/swagger_fixes
swagger: more consistency fixes
2020-03-18 21:24:21 +01:00
52c8350530 serve swagger when present
register the swagger endpoint and add some error handling for when the swagger file does not exist

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-18 14:34:14 -05:00
f557cf91d2 swagger: more consistency fixes
Some new 'manifests' entries have the wrong {name} parameter

Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-03-18 13:33:07 -06:00
67d0d1e509 Vendor in containers/buildah v1.14.3
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-03-18 14:26:40 -04:00
45e7cbfef6 Merge pull request #5480 from vrothberg/auto-updates
auto update containers in systemd units
2020-03-18 18:27:33 +01:00
651ddd3560 Reduce CPU usage when --timeout=0
* Add second go routine for when a Timer is not needed.
* goimports updated some project files

Fixes #5531

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-03-18 10:27:25 -07:00
81005f463e New test: man page cross-ref against --help
New hack/xref-helpmsgs-manpages script, added to CI 'gate'
task, runs 'podman [subcommand] --help' and cross-references
against man pages in docs/source/markdown/podman*.1.md

See #5453 and #5460 for instances of the problems the
script has found.

The careful reader will find an alarming number of special-case
bypasses. These are a tradeoff I am making: to get perfect
coverage with no handwaving, it would be necessary to make
drastic changes to some man pages, and I believe those would
be counterproductive.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-03-18 11:03:26 -06:00
d9eb078e2a Merge pull request #5532 from baude/filetimeoutflake
fix timeout file flake
2020-03-18 16:01:31 +01:00
de43a00b55 Merge pull request #5533 from mheon/bump-1.8.2-rc1
Bump to v1.8.2-RC1
2020-03-18 15:28:50 +01:00
f08b992f3b Merge pull request #5536 from giuseppe/avoid-conmon-zombie
podman: avoid conmon zombie on exec
2020-03-18 15:10:41 +01:00
a6f5b6a485 podman: avoid conmon zombie on exec
conmon forks itself, so make sure we reap the first process and not
leave a zombie process.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-03-18 12:58:14 +01:00
15326f051d Filter pods through pod list api
Refactored current filter pods flow through the shared pod functions
so filter pod functionalities can be shared between api and cmd.

Signed-off-by: Sujil02 <sushah@redhat.com>
2020-03-17 17:46:20 -04:00
e9846b962a Bump to v1.8.2-dev
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-03-17 17:38:47 -04:00
c617484c15 Bump to v1.8.2-rc1
Signed-off-by: Matthew Heon <mheon@redhat.com>
v1.8.2-rc1
2020-03-17 17:38:44 -04:00
f3a28de324 Merge pull request #5528 from mheon/fix_master_vendor
Fix vendoring on master
2020-03-17 22:36:56 +01:00
d47dc63cf5 Fix vendoring on master
It looks like something snuck in and now make vendor fails on
master. This should make things happy.

Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-03-17 16:01:41 -05:00
14186ca28e fix timeout file flake
this is a temporary fix for the flake that has been troubling us.  once conmon is in fedora 30 and 31 stable, we can remove this fix.  the images will just need to be rebuilt.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-17 15:44:39 -05:00
bcdcfeb3e3 Merge pull request #5529 from mheon/release_notes_182_rc1
[CI:DOCS] Update release notes for v1.8.2-RC1
2020-03-17 21:11:36 +01:00
7c5ffe3772 Update release notes for v1.8.2-rc1
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-03-17 15:47:39 -04:00
83d2686f46 Fix vendoring on master
It looks like something snuck in and now make vendor fails on
master. This should make things happy.

Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-03-17 15:20:14 -04:00
8f1ce4bddd Merge pull request #5524 from rhatdan/vendor
Update containers/storage to v1.16.5
2020-03-17 17:25:21 +01:00
f4e873c4e1 auto updates
Add support to auto-update containers running in systemd units as
generated with `podman generate systemd --new`.

`podman auto-update` looks up containers with a specified
"io.containers.autoupdate" label (i.e., the auto-update policy).

If the label is present and set to "image", Podman reaches out to the
corresponding registry to check if the image has been updated.  We
consider an image to be updated if the digest in the local storage is
different than the one of the remote image.  If an image must be
updated, Podman pulls it down and restarts the container.  Note that the
restarting sequence relies on systemd.

At container-creation time, Podman looks up the "PODMAN_SYSTEMD_UNIT"
environment variables and stores it verbatim in the container's label.
This variable is now set by all systemd units generated by
`podman-generate-systemd` and is set to `%n` (i.e., the name of systemd
unit starting the container).  This data is then being used in the
auto-update sequence to instruct systemd (via DBUS) to restart the unit
and hence to restart the container.

Note that this implementation of auto-updates relies on systemd and
requires a fully-qualified image reference to be used to create the
container.  This enforcement is necessary to know which image to
actually check and pull.  If we used an image ID, we would not know
which image to check/pull anymore.

Fixes: #3575
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-03-17 17:18:56 +01:00
9ef5d28759 Merge pull request #5449 from baude/manifests
apiv2 addition of manifests
2020-03-17 16:00:05 +01:00
c4a62733ae Merge pull request #5520 from giuseppe/make-warning-clearer
config: make warning clearer
2020-03-17 15:42:14 +01:00
8081d9c745 Update containers/storage to v1.16.5
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-03-17 09:52:11 -04:00
a255d7986a pkg/systemd: add dbus support
Move the dbus-connection code from libpod's healthcheck to pkg/systemd
to allow for sharing the logic.  Needed for the auto-updates work.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-03-17 11:29:37 +01:00
cc57b88f77 config: make warning clearer
make clearer that the warning could also happen because the logger is
set to use systemd.

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-03-17 10:31:32 +01:00
2b2996d09d Merge pull request #5515 from edsantiago/ci_sundry_small_fixes
Four small CI fixes:
2020-03-16 20:47:07 +01:00