Commit Graph

8429 Commits

Author SHA1 Message Date
OpenShift Merge Robot 309a7f7d1b
Merge pull request #5798 from mheon/bump-1.9.0-rc1
Bump to v1.9.0-RC1
2020-04-13 16:47:22 +02:00
OpenShift Merge Robot f0d7ac9e81
Merge pull request #5797 from giuseppe/use-snprintf
rootless: use snprintf
2020-04-13 16:18:43 +02:00
Brent Baude 6f650a5129 podmanv2 history and image remove templates
remove the use of template functions images and history to allow for straight-forward user experience.  instead of templates we use structs and struct methods.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-13 09:15:24 -05:00
Matthew Heon f1397abb9b Bump to v1.9.0-dev
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-04-13 09:47:17 -04:00
Matthew Heon cbb5652a53 Bump to v1.9.0-rc1
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-04-13 09:47:17 -04:00
Giuseppe Scrivano c33371fadb
rootless: use snprintf
use directly snprintf instead of strlen+strcpy.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-13 13:35:38 +02:00
Daniel J Walsh 47b6d35bfb
build(deps): bump github.com/containers/common from 0.8.1 to 0.9.0
Bumps [github.com/containers/common](https://github.com/containers/common) from 0.8.1 to 0.9.0.
- [Release notes](https://github.com/containers/common/releases)
- [Commits](https://github.com/containers/common/compare/v0.8.1...v0.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-10 18:48:06 -04:00
OpenShift Merge Robot 1593d4c052
Merge pull request #5785 from containers/dependabot/go_modules/github.com/containers/buildah-1.14.8
build(deps): bump github.com/containers/buildah from 1.14.7 to 1.14.8
2020-04-10 18:39:39 +02:00
Daniel J Walsh daca146f9d
build(deps): bump github.com/containers/buildah from 1.14.7 to 1.14.8
Bumps [github.com/containers/buildah](https://github.com/containers/buildah) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/containers/buildah/releases)
- [Changelog](https://github.com/containers/buildah/blob/master/CHANGELOG.md)
- [Commits](https://github.com/containers/buildah/compare/v1.14.7...v1.14.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-10 08:56:27 -04:00
OpenShift Merge Robot 2a8db9d17c
Merge pull request #5782 from baude/v2containercleanup
v2podman container cleanup
2020-04-10 14:11:30 +02:00
OpenShift Merge Robot 838b5e1e38
Merge pull request #5766 from mheon/release_notes_v1.9
[CI:DOCS] Update release notes for v1.9.0-RC1
2020-04-10 03:26:30 +02:00
Matthew Heon 00deffdad4 Update release notes for v1.9.0-RC1
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-04-09 19:01:03 -04:00
Brent Baude 7d0e0a7129 v2podman container cleanup
add the ability to clean up after a container has attempted to run.  this is also important for podman run --rm --rmi.

also included are fixes and tweaks to various code bits to correct regressions on output.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-09 16:59:33 -05:00
OpenShift Merge Robot 3a4bd39516
Merge pull request #5771 from giuseppe/fix-exec-preserve-fd
test: fix exec preserve-fds test
2020-04-09 16:40:32 +02:00
OpenShift Merge Robot 1662310e51
Merge pull request #5754 from baude/v2psformat
v2podman ps alter formats
2020-04-09 15:56:26 +02:00
OpenShift Merge Robot 555b30e9eb
Merge pull request #5634 from jwhonce/wip/service
V2 podman system service
2020-04-09 14:55:45 +02:00
OpenShift Merge Robot 655139fdda
Merge pull request #5760 from vrothberg/v2-logs
podmanV2: implement logs
2020-04-09 14:51:02 +02:00
Valentin Rothberg ff52b7524a podmanV2: implement search
Also implement a new libpod endpoint to add more parameters and to
prevent us from converting between slices and maps and make use of
the filter parsing in the image backend.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-04-09 13:05:19 +02:00
Valentin Rothberg 7a3bfbf076 podmanV2: implement logs
Implement the `podman {container} logs` for the v2 client. The remote
client does not yet support it.  There's some more work needed for the
rest api; some options are missing (e.g., printing names) while others
are broken (e.g., the until http parameter).

The remote parts will be tackled in a future change.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-04-09 11:55:10 +02:00
OpenShift Merge Robot 46227e0b03
Merge pull request #5768 from mtrmac/make-vendor
Fix (make vendor)
2020-04-09 10:37:54 +02:00
Giuseppe Scrivano 4503650f41
test: enable preserve fds test for crun
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-09 10:17:43 +02:00
Giuseppe Scrivano d3cfa7a23c
test: fix exec preserve-fds test
it specifies a fd is passed down but we are not really doing it, and
it triggers the wrong fd to be closed by Podman after the OCI runtime
invocation.

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-09 10:17:42 +02:00
OpenShift Merge Robot 3c94fa9cc7
Merge pull request #5758 from rhatdan/exitcode
Set exit codes on errors.
2020-04-09 03:02:55 +02:00
OpenShift Merge Robot 1229350377
Merge pull request #5748 from baude/v2imageformat
podmanv2 images user format
2020-04-09 03:00:40 +02:00
Daniel J Walsh 82bd7589e7
Set exit codes on errors.
podmanV2 run fedora /etc
Should exit with 126
podmanV2 run fedora /etc/foobar
Should exit with 127
podmanv2 run --fobar fedora echo hello
Should exit with 125
podmanv2 run fedora bash -c "exit 100"
Should exit with 100

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-08 15:54:35 -04:00
OpenShift Merge Robot f71e4d3d3e
Merge pull request #5388 from lsm5/tests-apiv2-kill-exists
add tests for container kill and exists
2020-04-08 21:50:45 +02:00
OpenShift Merge Robot 1791fe62a3
Merge pull request #5761 from dmitris/patch-1
update the latest version to 1.8.2
2020-04-08 21:00:58 +02:00
Miloslav Trmač 55c74b6dbe Run (make vendor)
... now that it actually runs (go mod tidy).

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2020-04-08 20:43:28 +02:00
Miloslav Trmač 439485f096 Fix (make vendor)
(export a=b command args) does not run (command args) with a=b,
it sets $a to b, and marks variables $a $command $args as exported,
i.e. (command args) is not run.

So we were not actually running (go mod tidy).

Fix that.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2020-04-08 20:42:02 +02:00
Ed Santiago 55eea9127a logformat: handle apiv2 results, add anchor links
apiv2 tests emit TAP-compliant output; recognize it and
highlight it the same way we do BATS tests.

Add anchor links to TAP output, so other tools (e.g.
cirrus-flake-summarize) can link to particular lines

And, remove a "-f" from "wait" in test-apiv2; looks
like there's some version of bash used in some CI VM
that doesn't grok it.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-04-08 12:10:24 -06:00
Dmitry Savintsev e95a6d315b update the latest version to 1.8.2
Signed-off-by: Dmitry Savintsev <dsavints@gmail.com>
2020-04-08 17:14:23 +02:00
Lokesh Mandvekar ce35fe3730 add tests for kill and exists
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2020-04-08 10:46:57 -04:00
Brent Baude 8ce23775a6 v2podman ps alter formats
in order to get the go templating to work for custom input, we now use structure methods instead of template map funcs.  this requires some manipulation of fields so that the funcs can have the proper names.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-08 09:11:26 -05:00
OpenShift Merge Robot 291ad7fbd9
Merge pull request #5759 from rhatdan/fix
run/create were processing options after the image name
2020-04-08 15:58:48 +02:00
Daniel J Walsh 4829136dab
run/create were processing options after the image name
flags.SetInterspersed(false)

Needs to be added to allow options to be used within the containers.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-08 08:33:34 -04:00
OpenShift Merge Robot 522dcd604e
Merge pull request #5756 from TomSweeneyRedHat/dev/tsweeney/buildahv1.14.7
Bump Buildah to v1.14.7
2020-04-08 12:44:24 +02:00
OpenShift Merge Robot 878570bf70
Merge pull request #5724 from zypA13510/patch-1
man page: add note about issue with SELinux
2020-04-08 12:42:05 +02:00
Jhon Honce e0847f5457 V2 podman system service
* Added support for system service
* Enabled linting on the varlinkapi source, needed to support V2
  service command
* Added support for PODMAN_SOCKET

Skip linting deprecated code

Rather than introduce bugs by correcting deprecated code, linting the
code is being skipped. Code that is being ported into V2 is being
checked.

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-04-07 19:22:10 -07:00
Yuping Zuo af83322679 man page: add note about issue with SELinux
Signed-off-by: Yuping Zuo <zypA13510@users.noreply.github.com>
2020-04-08 08:07:28 +08:00
TomSweeneyRedHat 405bd5f49a Bump Buildah to v1.14.7
As the title says, bumping Buildah to v1.14.7

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-04-07 18:20:46 -04:00
OpenShift Merge Robot b4840ec0d3
Merge pull request #5753 from rhatdan/vendor
Bump containers/image to v5.4.3
2020-04-07 22:24:31 +02:00
OpenShift Merge Robot 11c8b01e1d
Merge pull request #5739 from jwhonce/wip/diff
V2 Podman diff(changes) support
2020-04-07 21:49:24 +02:00
Daniel J Walsh cfd64d3e2c
Bump containers/image to v5.4.3
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-07 14:23:59 -04:00
OpenShift Merge Robot 08fa3d511f
Merge pull request #5744 from vrothberg/update-image
vendor c/image v5.4.2
2020-04-07 20:14:59 +02:00
OpenShift Merge Robot 9d0d9df6a1
Merge pull request #5157 from QiWang19/rootless-test-login
fix rootless login/logout tests
2020-04-07 19:32:09 +02:00
OpenShift Merge Robot b3a3fc3ef6
Merge pull request #5749 from rhatdan/reset
podman info needs to be run within the user namespace
2020-04-07 19:23:05 +02:00
OpenShift Merge Robot 8289805f5d
Merge pull request #5738 from baude/v2info
podmanv2 info
2020-04-07 19:00:57 +02:00
Jhon Honce 8ae28a55ac V2 podman diff(changes) support
* Ported CLI command
* Added API endpoint
* Added bindings
* Updated swagger (TODO: n endpoints, one handler)

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-04-07 09:39:46 -07:00
Daniel J Walsh b0592e5540
podman info needs to be run within the user namespace
Accidently removed podman info from user namespace

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-07 10:02:50 -04:00
OpenShift Merge Robot 44f910c28c
Merge pull request #5728 from openSUSE/pids.current
Do not error on pids.current stats if ctr.path is empty
2020-04-07 15:56:50 +02:00