Commit graph

17837 commits

Author SHA1 Message Date
OpenShift Merge Robot
39ec022cae
Merge pull request #17361 from openshift-cherrypick-robot/cherry-pick-17343-to-v4.4
[v4.4] test: adapt test to work on cgroupv1
2023-02-05 13:50:44 +01:00
Giuseppe Scrivano
7407ccdc37 test: adapt test to work on cgroupv1
when running on a cgroupv1 host validate that the memory controller is
mounted ro.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-02-03 22:33:05 +00:00
OpenShift Merge Robot
9c5b249e12
Merge pull request #17355 from openshift-cherrypick-robot/cherry-pick-17262-to-v4.4
[v4.4] Fix default handling of pids-limit
2023-02-03 22:34:49 +01:00
Jason T. Greene
322802e409 Fix default handling of pids-limit
Add test to verify that updates without a pids-limit specified no longer
overwrite the previous value.

Also fixes erroneous warning generated by remote clients:

"Resource limits are not supported and ignored on cgroups V1 rootless
systems"

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2023-02-03 16:13:22 +00:00
OpenShift Merge Robot
3988540467
Merge pull request #17344 from openshift-cherrypick-robot/cherry-pick-17327-to-v4.4
[v4.4] system tests: fix volume exec/noexec test
2023-02-03 11:00:26 +01:00
Toshiki Sonoda
6ce1a11b7f system tests: fix volume exec/noexec test
The return code is "126" in the current version of runc.

Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
2023-02-02 18:51:38 +00:00
OpenShift Merge Robot
33574f5dec
Merge pull request #17314 from ashley-cui/440f
Bump to v4.4.0
2023-02-01 23:44:36 +01:00
Ashley Cui
e2a40dfa2f Bump to v4.4.1-dev
Signed-off-by: Ashley Cui <acui@redhat.com>
2023-02-01 15:00:21 -05:00
Ashley Cui
3443f453e2
Bump to v4.4.0
Signed-off-by: Ashley Cui <acui@redhat.com>
2023-02-01 14:59:39 -05:00
Ashley Cui
f429727143 Final release notes for v4.4.0
Signed-off-by: Ashley Cui <acui@redhat.com>
2023-02-01 14:59:11 -05:00
OpenShift Merge Robot
cd73289361
Merge pull request #17301 from giuseppe/4.4-fix-tty
[4.4] fix regression with runc --privileged rootless containers
2023-02-01 17:53:52 +01:00
OpenShift Merge Robot
0e446a3768
Merge pull request #17311 from edsantiago/rhel8_systemd_has_no_dash_P
Emergency fix for RHEL8 gating tests
2023-02-01 16:29:33 +01:00
Ed Santiago
c927ad03b9 Emergency fix for RHEL8 gating tests
...because systemd on RHEL8 is too old, has no -P

Signed-off-by: Ed Santiago <santiago@redhat.com>
2023-02-01 07:29:30 -07:00
OpenShift Merge Robot
19890bc1e8
Merge pull request #17299 from openshift-cherrypick-robot/cherry-pick-17291-to-v4.4
[v4.4] [NO NEW TESTS NEEDED] Fixes port collision issue on use of --publish-all
2023-02-01 15:16:02 +01:00
Martin Roukala (né Peres)
ef4e7b8c73
Do not mount /dev/tty into rootless containers
[NO NEW TESTS NEEDED]

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2165875
Signed-off-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org>
(cherry picked from commit d10860a323)
2023-01-31 22:59:29 +01:00
OpenShift Merge Robot
9a2cc4f00f
Merge pull request #17275 from openshift-cherrypick-robot/cherry-pick-16807-to-v4.4
[CI:DOCS] [v4.4] Add gvproxy to windows packages
2023-01-31 16:22:39 -05:00
telday
bbaa542589 Fixes port collision issue on use of --publish-all
The function which generates and assigns a random
port number for the --publish-all functionality
was not properly marking some ports as "used".
In very rare occasions this can cause a randomly
"generated" port to be used twice creating an
impossible container configuration.

Signed-off-by: telday <ellis.wright@cyberark.com>
2023-01-31 15:18:25 +00:00
OpenShift Merge Robot
e7878726f6
Merge pull request #17289 from n1hility/fix-image-path-v4.4
[v4.4] Fix usage of absolute windows paths with --image-path
2023-01-31 04:25:10 -05:00
Daniel J Walsh
ecea61375f
Merge pull request #17277 from openshift-cherrypick-robot/cherry-pick-17273-to-v4.4
[v4.4] [DOCS:CI] podman-events: document verbose create events
2023-01-30 18:28:33 -05:00
Jason T. Greene
c3566cda41 Fix usage of absolute windows paths with --image-path
Only assume that http(s) scheme URLs (only ones supported by http.Client anyway) are URLs.
Treat everything else as a file path. (Windows paths can look like a URL scheme)

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2023-01-30 14:34:53 -06:00
OpenShift Merge Robot
1878d04f8e
Merge pull request #17280 from vrothberg/cherry-pick-17264-to-v4.4
[v4.4] fix #17244: use /etc/timezone where `timedatectl` is missing on Linux
2023-01-30 10:56:55 -05:00
nabbisen
9eb9607076 fix #17244: use /etc/timezone where timedatectl is missing on Linux
[NO NEW TESTS NEEDED]

Signed-off-by: nabbisen <nabbisen@scqr.net>
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2023-01-30 14:38:06 +01:00
Valentin Rothberg
5c94568e92 podman-events: document verbose create events
issues.redhat.com/browse/RHELBU-1918 is mentioning the podman-events man
page which are lacking notes on the verbose create events added by
commit 71f92d263c.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2023-01-30 11:59:32 +00:00
Arthur Sengileyev
45b00b648f Making gvproxy.exe optional for building Windows installer
Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
2023-01-30 11:28:52 +00:00
Arthur Sengileyev
63f964c08b Add gvproxy to Windows packages
Updated build scripts and installer build scripts to include gvproxy.exe.
Includes tutorial on setting up a Podman VM with QEMU and gvproxy on Windows.

Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
2023-01-30 11:28:52 +00:00
OpenShift Merge Robot
871c67c654
Merge pull request #17272 from openshift-cherrypick-robot/cherry-pick-17265-to-v4.4
[v4.4] Match VT device paths to be blocked from mounting exactly
2023-01-30 05:10:13 -05:00
Fabian Holler
579c5dc809 Match VT device paths to be blocked from mounting exactly
As @mheon pointed out in PR #17055[^1], isVirtualConsoleDevice() does
not only matches VT device paths but also devices named like
/dev/tty0abcd.
This causes that non VT device paths named /dev/tty[0-9]+[A-Za-z]+ are
not mounted into privileged container and systemd containers accidentally.

This is an unlikely issue because the Linux kernel does not use device
paths like that.
To make it failproof and prevent issues in unlikely scenarios, change
isVirtualConsoleDevice() to exactly match ^/dev/tty[0-9]+$ paths.

Because it is not possible to match this path exactly with Glob syntax,
the path is now checked with strings.TrimPrefix() and
strconv.ParseUint().
ParseUint uses a bitsize of 16, this is sufficient because the max
number of TTY devices is 512 in Linux 6.1.5.
(Checked via 'git grep -e '#define' --and -e 'TTY_MINORS').

The commit also adds a unit-test for isVirtualConsoleDevice().

Fixes: f4c81b0aa5 ("Only prevent VTs to be mounted inside...")

[^1]: https://github.com/containers/podman/pull/17055#issuecomment-1378904068

Signed-off-by: Fabian Holler <mail@fholler.de>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-01-30 07:33:38 +00:00
OpenShift Merge Robot
1f96d03458
Merge pull request #17258 from openshift-cherrypick-robot/cherry-pick-17213-to-v4.4
[v4.4] Set runAsNonRoot=true in gen kube
2023-01-29 13:38:15 -05:00
OpenShift Merge Robot
cc91db6131
Merge pull request #17259 from TomSweeneyRedHat/dev/tsweeney/fixlang4.4
[v4.4] Clean up more language for inclusiveness (cherry-pick from main)
2023-01-29 11:17:01 -05:00
OpenShift Merge Robot
492e7aa5a7
Merge pull request #17257 from openshift-cherrypick-robot/cherry-pick-17217-to-v4.4
[v4.4] quadlet: Add device support for .volume files
2023-01-29 11:14:09 -05:00
OpenShift Merge Robot
e47005375b
Merge pull request #17256 from openshift-cherrypick-robot/cherry-pick-17228-to-v4.4
[v4.4] fix: running check error when podman is default in wsl
2023-01-29 11:11:19 -05:00
OpenShift Merge Robot
5043324779
Merge pull request #17255 from openshift-cherrypick-robot/cherry-pick-17251-to-v4.4
[v4.4] fix: don't output "ago" when container is currently up and running
2023-01-29 11:08:35 -05:00
OpenShift Merge Robot
d3ca85e1a9
Merge pull request #17254 from openshift-cherrypick-robot/cherry-pick-17253-to-v4.4
[v4.4] journald: podman events only show events for current user
2023-01-29 09:48:23 -05:00
tomsweeneyredhat
605079dc8f Clean up more language for inclusiveness
We had a number of references, mostly in docs, to the word master that
can now be changed to main.  This PR does that and makes the project a
bit more inclusive.

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2023-01-27 18:00:59 -05:00
OpenShift Merge Robot
887669bf0f
Merge pull request #17242 from openshift-cherrypick-robot/cherry-pick-17114-to-v4.4
[v4.4] Allow --device-cgroup-rule to be passed in by docker API
2023-01-27 14:57:19 -05:00
Urvashi Mohnani
f4bf448d85 Set runAsNonRoot=true in gen kube
If the image being used has a user set that is a positive
integer greater than 0, then set the securityContext.runAsNonRoot
to true for the container in the generated kube yaml.

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
2023-01-27 19:48:26 +00:00
Ingo Becker
45b9e17d7c quadlet: Add device support for .volume files
The Device, Type, Copy and Options keys are now supported in
quadlet  .volume files. This allows users to create filesystem
based volumes with quadlets .volume files.

Signed-off-by: Ingo Becker <ingo@orgizm.net>
Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
2023-01-27 19:48:04 +00:00
shblue21
92bae973cc fix: running check error when podman is default in wsl
If podman is the default wsl distribution, the (default) string is appended and result is assigned false.

[NO NEW TESTS NEEDED]

Fixes #17227

Signed-off-by: shblue21 <jihunkimkw@gmail.com>
2023-01-27 19:47:49 +00:00
Daniel Lublin
edb7779cdf fix: don't output "ago" when container is currently up and running
Closes #17250

Signed-off-by: Daniel Lublin <daniel@lublin.se>
2023-01-27 19:47:33 +00:00
Paul Holzinger
6870dae236 journald: podman logs only show logs for current user
In the super rare case that there are two containers with the same ID
for two different users, podman logs with the journald driver would show
logs from both containers.

[NO NEW TESTS NEEDED] Impossible to reproduce.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-01-27 19:27:02 +00:00
Paul Holzinger
cd4590908a journald: podman events only show events for current user
I noticed this while running some things in parallel, podman events
would show events from other users. Because all events are written to
the journal everybody can see them. So when we read the journal we must
filter events for only the current UID.

To reproduce run `podman events` as user then in another window create a
container as root for example. After this patch it will correctly ignore
these events from other users.

[NO NEW TESTS NEEDED] I don't think we can test with two users at the same
time.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-01-27 19:27:02 +00:00
OpenShift Merge Robot
e25a4fbda1
Merge pull request #17241 from mtrmac/sign-by-sigstore-4.4
[v4.4] Add … push --sign-by-sigstore
2023-01-27 14:08:13 -05:00
Miloslav Trmač
097ca60568 Add (podman {image,manifest} push --sign-by-sigstore=param-file.yaml)
(podman push) and (podman manifest push) now support --sign-by-sigstore=param-file,
using the containers-sigstore-signing-params.yaml(5) file format.

That notably adds support for Fulcio and Rekor signing.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2023-01-27 16:46:28 +01:00
OpenShift Merge Robot
e1bb72a08b
Merge pull request #17248 from openshift-cherrypick-robot/cherry-pick-17210-to-v4.4
[v4.4] ps: do not sync container
2023-01-27 06:29:38 -05:00
OpenShift Merge Robot
8d566cc6fd
Merge pull request #17239 from TomSweeneyRedHat/dev/tsweeney/4.4buildahv1.29
[v4.4] Bump to Buildah v1.29.0
2023-01-27 05:16:00 -05:00
Valentin Rothberg
916ea3e5d6 DB: make loading container states optional
Loading container states speed things up when listing all containers but
it comes with a price tag for many other call paths.  Hence, make
loading the state conditional to allow for keeping `podman ps` fast
without other commands regressing in performance.

[NO NEW TESTS NEEDED]

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2023-01-27 09:14:12 +00:00
Valentin Rothberg
de84be54eb ps: do not sync container
Do not sync containers with the runtime and the database when listing
containers.  It turns out to be extremely expensive and unnecessary.

The sync was needed since listing all containers from the database did
not populate their state.  Doing that, however, is much faster since we
already have a connection to the database.

This change makes listing 200 containers 2 times faster than before.

[NO NEW TESTS NEEDED]

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2023-01-27 09:14:12 +00:00
Daniel J Walsh
3a65466baa Allow --device-cgroup-rule to be passed in by docker API
This looks like the correct fix, but I have no idea how to test.

Fixes: https://github.com/containers/podman/issues/17106

[NO NEW TESTS NEEDED]

Will have reporter verify if this fixes the problem.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-01-26 22:13:59 +00:00
tomsweeneyredhat
36875c2654 [v4.4] Bump to Buildah v1.29.0
As the title says.

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2023-01-26 12:37:53 -05:00
Daniel J Walsh
7973447f40
Merge pull request #17220 from ashley-cui/44rc3
[CI:DOCS] [v4.4] Bump to v4.4.0-RC3
2023-01-25 15:34:18 -05:00