Commit graph

9983 commits

Author SHA1 Message Date
Marco Munizaga a8cb43d3a9 Set PATH env in systemd timer.
This fixes an issue where binaries that are in the path of the original
podman process are not found in the transient systemd timer for
healthchecks.

This showed up for me on a NixOS machine since binaries are not installed
in the usual places.

Signed-off-by: Marco Munizaga <git@marcopolo.io>
2020-11-23 10:26:02 -08:00
OpenShift Merge Robot e239bfa15b
Merge pull request #8391 from baude/networkconnectdisconnect
add network connect|disconnect compat endpoints
2020-11-19 16:54:29 +01:00
baude a3e0b7d117 add network connect|disconnect compat endpoints
this enables the ability to connect and disconnect a container from a
given network. it is only for the compatibility layer. some code had to
be refactored to avoid circular imports.

additionally, tests are being deferred temporarily due to some
incompatibility/bug in either docker-py or our stack.

Signed-off-by: baude <bbaude@redhat.com>
2020-11-19 08:16:19 -06:00
OpenShift Merge Robot 70f91fb96d
Merge pull request #8405 from jwhonce/wip/version
Fix sed regex to update version in version/version.go
2020-11-19 00:57:20 +01:00
Jhon Honce b59465d1cc Fix sed regex to update version in version/version.go
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-11-18 15:21:26 -07:00
OpenShift Merge Robot b1007caca5
Merge pull request #8379 from rhatdan/remote2
Remove build \!remote flags from test phase 2
2020-11-18 22:51:52 +01:00
OpenShift Merge Robot 4434bd7978
Merge pull request #8395 from Luap99/podman-pod-ps-filters
Align the podman pod ps --filter behavior with podman ps
2020-11-18 21:16:21 +01:00
OpenShift Merge Robot 8672c4dea0
Merge pull request #8170 from rhatdan/remote
Remove build \!remote flags from test
2020-11-18 20:27:49 +01:00
OpenShift Merge Robot 6f44d2dfcd
Merge pull request #8394 from mheon/bump-2.2.0-rc1
[CI:DOCS] Bump to v2.2.0-RC1
2020-11-18 19:42:45 +01:00
Paul Holzinger e7fd9234cd Align the podman pod ps --filter behavior with podman ps
Filters with the same key work inclusive with the only exception being
`label` which is exclusive. Filters with different keys always work exclusive.

Also update the documentation with the new behavior.

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
2020-11-18 19:31:25 +01:00
Matthew Heon ac39493453 Bump to v2.2.0-dev
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-11-18 13:15:55 -05:00
Matthew Heon 02843f881f Bump to v2.2.0-rc1
Also bump API version to v2.1.0.

Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-11-18 13:15:11 -05:00
Daniel J Walsh 3b6d7a3669
Remove build \!remote flags from test phase 2
Add some more tests, document cases where remote will not work
Add FIXMEs for tests that should work on podman-remote but currently
do not.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-11-18 13:02:44 -05:00
Daniel J Walsh 72b67715f8
podman-remote network rm --force is broken
The --force parameter was not being handled correctly.
This is leading to some race conditions in testing failures.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-11-18 12:57:39 -05:00
OpenShift Merge Robot 6ece1d97c4
Merge pull request #8383 from mheon/release_notes_220_rc1
[CI:DOCS] Add release notes for v2.2.0-RC1
2020-11-18 18:56:56 +01:00
OpenShift Merge Robot 61a82159db
Merge pull request #8376 from Luap99/podman-filters
Align the podman ps --filter behavior with docker
2020-11-18 18:55:05 +01:00
Matthew Heon 2fc1d44d36 Add release notes for v2.2.0-RC1
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-11-18 11:53:46 -05:00
OpenShift Merge Robot dcd498a688
Merge pull request #8389 from rhatdan/docs
[CI:DOCS] correct numbering typo
2020-11-18 16:59:41 +01:00
Daniel J Walsh 080ccf512d
Remove build \!remote flags from test
Add some more tests, document cases where remote will not work
Add FIXMEs for tests that should work on podman-remote but currently
do not.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-11-18 10:44:35 -05:00
Seth Jones 03762a893c
correct numbering typo
Based on PR from @sethjones.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-11-18 10:41:54 -05:00
OpenShift Merge Robot 286d356db0
Merge pull request #8337 from cevich/weekly_nix_cache_invalidate
Cirrus: Invalidate static cache on VM image update
2020-11-18 12:42:31 +01:00
OpenShift Merge Robot e4e92d6104
Merge pull request #8386 from zhangguanzhang/pod-inspect-mac
Fix podman pod inspect show wrong StaticMAC
2020-11-18 12:19:57 +01:00
Paul Holzinger 4f427a89cb Align the podman ps --filter behavior with docker
All of our filters worked exclusive resulting in `--filter status=created --filter status=exited` to return nothing.

In docker filters with the same key work inclusive with the only exception being `label` which is exclusive. Filters with different keys always work exclusive.

This PR aims to match the docker behavior with podman.

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
2020-11-18 11:36:06 +01:00
zhangguanzhang 76a38fc3f2 Fix podman pod inspect show wrong MAC string
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
2020-11-18 18:06:06 +08:00
OpenShift Merge Robot a6f7afd417
Merge pull request #8382 from dbaker-rh/helppage
[CI:DOCS] Fix example for manifest push
2020-11-18 04:33:49 +01:00
Dave Baker bd104d2948 Fix example for manifest push
Signed-off-by: Dave Baker <dbaker@redhat.com>
2020-11-17 20:54:37 -05:00
OpenShift Merge Robot 4bbf2b64ca
Merge pull request #8378 from jwhonce/issues/8366
Swap out json-iterator for golang default
2020-11-18 01:21:19 +01:00
OpenShift Merge Robot 8a0c3d878b
Merge pull request #8355 from baude/compatnetworkconnectdisconnect
add network connect|disconnect compat endpoints
2020-11-17 23:18:48 +01:00
OpenShift Merge Robot 0f745272e7
Merge pull request #8381 from Luap99/rename-test-files
Rename e2e test files to include _test.go suffix
2020-11-17 22:42:21 +01:00
OpenShift Merge Robot 770b03a50c
Merge pull request #8363 from AlbanBedel/play-kube-create-only
Add an option to control if play kube should start the pod
2020-11-17 22:40:28 +01:00
OpenShift Merge Robot 0886fabbc2
Merge pull request #8380 from AlbanBedel/fix-client-play-kube-tls-verify
Client call to /play/kube incorrectly set tlsVerify
2020-11-17 22:38:28 +01:00
baude d3e794bda3 add network connect|disconnect compat endpoints
this enables the ability to connect and disconnect a container from a
given network. it is only for the compatibility layer. some code had to
be refactored to avoid circular imports.

additionally, tests are being deferred temporarily due to some
incompatibility/bug in either docker-py or our stack.

Signed-off-by: baude <bbaude@redhat.com>
2020-11-17 14:22:39 -06:00
Paul Holzinger d4446501f3 Rename e2e test files to include _test.go suffix
The test were working fine. Just my IDE doesn't like the files
without the suffix and I don't like red errors.

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
2020-11-17 21:18:27 +01:00
Alban Bedel c6c6b23393 Client call to /play/kube incorrectly set tlsVerify
The API parameter `tlsVerify` should be the invert of the internal
option `SkipTLSVerify`, fix this conversion.

Signed-off-by: Alban Bedel <albeu@free.fr>
2020-11-17 20:33:33 +01:00
OpenShift Merge Robot 65880e5563
Merge pull request #8377 from jwhonce/wip/formats
Fix missing headers in `network ls`
2020-11-17 20:30:56 +01:00
OpenShift Merge Robot f500fc955c
Merge pull request #8371 from vrothberg/rm-gate
remove contrib/gate
2020-11-17 20:29:04 +01:00
OpenShift Merge Robot eefa18f2b6
Merge pull request #8356 from rhatdan/docs
[CI:DOCS] Cleanup tutorials
2020-11-17 20:11:51 +01:00
Alban Bedel 7ab936eafa Add an option to control if play kube should start the pod
Having play kube start the pod is not always appropriate, one might
for example like to have the pod running as a set of systemd services.
Add a `start` option to the command line and API to control if the pod
should be started or not; it defaults to true for backward
compatibility.

Signed-off-by: Alban Bedel <albeu@free.fr>
2020-11-17 20:00:58 +01:00
Jhon Honce 4ed1ef533a Swap out json-iterator for golang default
json-iterator library failed to pretty print json for all inspection
types.

Fixes #8366

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-11-17 11:45:03 -07:00
OpenShift Merge Robot 3a172c5999
Merge pull request #8373 from TomSweeneyRedHat/dev/tsweeney/nitpick
[CI:DOCS] fix an apostrophe nit in man page
2020-11-17 19:42:03 +01:00
Jhon Honce ca9276640f Fix missing headers in network ls
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-11-17 11:13:32 -07:00
OpenShift Merge Robot 12de330094
Merge pull request #8370 from rhatdan/wrap
Remove some more excessive wrapping and stuttering
2020-11-17 18:45:36 +01:00
TomSweeneyRedHat 586a7d97c2 [CI:DOCS] fix an apostrophe nit in man page
A quick follow up to #8367 to add a missing apostrophe in three
man pages.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-11-17 11:43:03 -05:00
Valentin Rothberg c2c7dd8ff3 remove contrib/gate
Remove references on contrib/gate.  The gating image is currently not
maintained and was replaced in the CI rewrite.  We can disable builds
in Quay once the change is merged.

Note that running `make validate` in a container is still desired.
A similar approach may be re-added in the future.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-11-17 15:21:50 +01:00
Daniel J Walsh 389dcb5c29
Remove some more excessive wrapping and stuttering
Stop over wrapping API Calls

The API calls will return an appropriate error, and this wrapping
just makes the error message look like it is stuttering and a
big mess.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-11-17 09:19:22 -05:00
OpenShift Merge Robot 42ec4cf87f
Merge pull request #8290 from vrothberg/fix-8265
use container cgroups path
2020-11-17 14:00:09 +01:00
Daniel J Walsh d200801152
Cleanup tutorials
Inspired by @kannkyo PR.

Eliminate sudo when commands will work fine in rootless mode.

Make all commands in tutorials easily cut and pastable, by eliminating
$ and > symbols.

This should make them all consistant agross different tutorials.

Also make all systemctl enable calls use the --now option.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-11-17 06:49:53 -05:00
OpenShift Merge Robot 7d067afac7
Merge pull request #8347 from rhatdan/hostname
Make sure /etc/hosts populated correctly with networks
2020-11-17 12:45:50 +01:00
OpenShift Merge Robot d30f9ae8b6
Merge pull request #8346 from Luap99/shell-completion
Improve the shell completion api
2020-11-17 12:42:06 +01:00
OpenShift Merge Robot c92bdf550c
Merge pull request #8359 from TomSweeneyRedHat/dev/tsweeney/buildahv1.18.0
Bump Buildah to v1.18.0, c/storage to v1.24.0
2020-11-17 12:36:19 +01:00