25129 Commits

Author SHA1 Message Date
cfdd5645a2 Merge commit from fork
[v5.5] machine init: fix tls check
2025-06-24 15:49:06 +02:00
05408b8149 Merge pull request #26493 from openshift-cherrypick-robot/cherry-pick-26298-to-v5.5
[v5.5] Make podman.io update action reusable
2025-06-23 17:41:44 +00:00
90db13c50b Merge pull request #26492 from openshift-cherrypick-robot/cherry-pick-26471-to-v5.5
[v5.5] fix panic on state refresh
2025-06-23 17:33:37 +00:00
1a04ca36d2 Make podman.io update action reusable
Signed-off-by: Ashley Cui <acui@redhat.com>
2025-06-23 17:20:33 +00:00
1569c20982 machine init: fix tls check
Ensure we verify the TLS connection when pulling the OCI image.

Fixes: CVE-2025-6032

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit 726b506acc8a00d99f1a3a1357ecf619a1f798c3)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-23 17:58:18 +02:00
881d48eae2 fix panic on state refresh
In order to use parallel.Enqueue() it is required to call
parallel.SetMaxThreads() first. However in our main call we have been
doing this after we setup the initial runtime so just move this up.
And while at it move up the cpu and memory profile setup as well so we
can capture the earlier parts as well.

This was most likely introduced by commit 46d874aa52 ("Refactor graph
traversal & use for pod stop") which started using parallel.Enqueue() in
removePod() which then can get called from refresh() when a container
has autoremoval configured.

I tried many hard resets in VMs to reproduce but was unable to do so.
I always got "retrieving temporary directory for container xxx: no such
container" erros instead and it failed to autoremove but no panics.
Besides that many times c/storage was corrupted which made the image I
used unusable and it had to be deleted which is concerning in itself.

Fixes #26469

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-23 15:05:57 +00:00
be2b298bee Merge pull request #26305 from openshift-cherrypick-robot/cherry-pick-26303-to-v5.5
[v5.5] RPM: Limit Epoch 102 to podman-next copr
2025-06-06 15:32:19 +00:00
31639e85c6 RPM: Limit Epoch 102 to podman-next copr
Users of WSL images currently get podman from the copr rpm on the
release PR with Epoch: 102. This is a problem if the user is looking to
update the image with packages from official Fedora repos.

This commit limits Epoch: 102 to only the podman rpms on
rhcontainerbot/podman-next copr. All other rpms, including other copr
rpms, will use the default Epoch.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2025-06-06 14:43:43 +00:00
f292c64ffb Merge pull request #26297 from podmanbot/bump-5.5.2-dev
Bump Podman to v5.5.2-dev
2025-06-06 12:40:13 +00:00
149bec7392 Bump Podman to v5.5.2-dev
Signed-off-by: mheon <7735048+mheon@users.noreply.github.com>
2025-06-05 20:55:06 +00:00
e13b76c4af Merge pull request #26294 from mheon/bump_551
Bump to v5.5.1
2025-06-05 20:53:42 +00:00
850db76dd7 Bump to v5.5.1
Signed-off-by: Matt Heon <mheon@redhat.com>
v5.5.1
2025-06-05 14:25:35 -04:00
af86699bff Merge pull request #26291 from mheon/release_notes_551
Release notes for v5.5.1
2025-06-05 17:05:05 +00:00
41dae619e8 Update release notes for v5.5.1
Signed-off-by: Matt Heon <mheon@redhat.com>
2025-06-05 11:51:00 -04:00
310505bff0 Merge pull request #26279 from nalind/buildah-1.40.1-5.5
[v5.5] Bump buildah from v1.40.0 to v1.40.1
2025-06-05 09:32:26 +00:00
279c592378 Build the dumpspec test helper for the buildah bud tests
Newer versions expect to use a new test helper.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-06-04 14:35:51 -04:00
4ef6a8715c [v5.5] Bump buildah from v1.40.0 to v1.40.1
Bump the version of buildah that we use from v1.40.0 to v1.40.1.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-06-04 13:58:46 -04:00
b1938316c3 Merge pull request #26275 from Luap99/v5.5
[v5.5] Backports and c/common v0.63.1 bump
2025-06-04 12:33:23 +00:00
efa20372b4 Fix overlay volumes on Windows
The Windows source folder path was not converted in the corresponding
machine folder path when the volume was of type overlay as it does for
other bind mount volumes.

Fix #25988

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
(cherry picked from commit f25cefcb1bd2faa8bc251b47b3dc1133b0b78c46)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-04 11:43:11 +02:00
61403afeaf Fix SQLite volume lookup queries matching too liberally
Specifically, this does two things:

1. Turn on case-sensitive LIKE queries. Technically, this is not
specific to volumes, as it will also affect container and pod
lookups - but there, it only affects IDs. So `podman rm abc123`
will not be the same as `podman rm ABC123` but I don't think
anyone was manually entering uppercase SHA256 hash IDs so it
shouldn't matter.

2. Escape the _ and % characters in volume lookup queries. These
are SQLite wildcards, and meant that `podman volume rm test_1`
would also match `podman volume rm testa2` (or any character in
place of the underscore). This isn't done with pod and container
lookups, but again those just use LIKE for IDs - so technically
`podman volume rm abc_123` probably works and removes containers
with an ID matching that pattern... I don't think that matters
though.

Fixes #26168

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
(cherry picked from commit b276e7ef21c62cdd491d3a7e0cbda156c1e05a47)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-04 11:40:00 +02:00
ee2370bc26 Handle "Entrypoint":[] in compat containers/create API.
When using `docker compose run --entrypoint ''`, docker sends
`"Entrypoint": []` in the JSON. Podman currently treats that
as `nil` and fallback to default image entrypoint.

This is not what is expected by the user. Instead, it should
not use any entrypoint.

This commit fixes it by properly propagating the `[]` downstream
to libpod.

Fixes: #26078

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
(cherry picked from commit 3a981915f006b166df7d4207eb154c893af99dce)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-04 11:39:49 +02:00
d71fbe7ba8 Fix handling of "r_limits" in Podman REST API /libpod/containers/create
The JSON decoder correctly cannot decode (overflow) negative values (e.g., `-1`) for fields of type `uint64`, as `-1` is used to represent `max` in `POSIXRlimit`. To handle this, we use `tmpSpecGenerator` to decode the request body. The `tmpSpecGenerator` replaces the `POSIXRlimit` type with a `tmpRlimit` type that uses the `json.Number` type for decoding values. The `tmpRlimit` is then converted into the `POSIXRlimit` type and assigned to the `SpecGenerator`.

This approach ensures compatibility with the Podman CLI and remote API, which already handle `-1` by casting it to `uint64` (`uint64(-1)` equals `MaxUint64`) to signify `max`.

Fixes: https://issues.redhat.com/browse/RUN-2859
Fixes: https://github.com/containers/podman/issues/24886

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
(cherry picked from commit e66ff395b7c2618f58eb36e33e7324897ae54995)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-04 11:39:44 +02:00
8e120c93bd specgen/generate: Fix log tag priority
Currently setting log_tag from containers.conf will override any value
set via --log-opt tag=value option. This commit fixes this.

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

Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
(cherry picked from commit a17f8afbbc634d81588e9f392a4b47542b6c2c29)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-04 11:37:08 +02:00
c5ac361844 system df --verbose don't crash
When a container has no image, i.e. using rootfs like our new infra
containers then the Image function crashed trying to show the first 12
image ID chars. If there is no image simply show nothing there.

Fixes: #26224

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit 415668c802cb9988e856e56de5de1862fd746cb3)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-04 11:37:02 +02:00
d995e3eeaa docs: quadlet can translate names now
Remove no longer correct statement that quadlet that does not translate
our own custom unit types

Fixes: e498c652 ("Quadlet - translate dependencies on other quadlet units")
Fixes: #26243

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit f2d941b241ba6ecc50f4e1f7c2469ecb58a7378d)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-04 11:36:56 +02:00
88890d3eb8 play kube: never add empty alias
Netavark v1.15 added new warnings on some invalid names and that
triggerd a new test failure in podman e2e test.

The "Podman kube play with disabled cgroup" case now complains about an
empty name:
podman [options] kube play /tmp/CI_aM20/podman-e2e-3156601197/subtest-3441376193/p/kube.yaml
[WARN  netavark::network::bridge] invalid network alias "": name is empty, ignoring this name

This is because this test does not set a container name thus the code
was adding an empty string so to fix it check if the name is not empty
first.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit da95bbdd5deb547791a527d1143fc3c298b351d3)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-04 11:36:47 +02:00
45f62c0dcb podman system check: Fix error check logic
Previously there is a minor logic error, which causes podman system
check to do the check twice although there is no repair flag.

Signed-off-by: Sonny Sasaka <sonnysasaka@gmail.com>
(cherry picked from commit c87a761e055762339d6b7b59bf13c2f77dac22b4)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-04 11:36:41 +02:00
8542247538 libpod: don't force only network search domains
We like to append the host servers in that case so that we do not only
force dns.podman.

Fixes: #24713
Fixes: https://issues.redhat.com/browse/RHEL-83787

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit 75dc508e98bdc2f1f23ea9bece3910e8bb25871e)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-04 11:36:26 +02:00
04447cc322 test/system: check --dns-option behavior
We should fully replace the options, now that we vendored the
libnetwork/resolvconf changes into podman this just works.

Fixes: #22399

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit 89b8e233854b747c19215e82534e995e5ba001a0)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-04 11:36:26 +02:00
90c9c2271e vendor: update c/common to v0.63.1
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-04 11:35:03 +02:00
701a7a9c05 Merge pull request #26266 from ashley-cui/backport
[v5.5] Backport release fixes
2025-06-02 21:01:08 +00:00
10349a46c4 Trigger podman.io version bump from release action
Our release is created by a GitHub action, and GitHub prevents workflows from running on events that were caused by other workflows to prevent unlimited recursion.
To get around this, use a reusable workflow to trigger the podman.io version bump from the release action.

Signed-off-by: Ashley Cui <acui@redhat.com>
2025-06-02 14:31:12 -04:00
bbed5a8e2e Update RELEASE_PROCESS.md
We've added a bunch of new automation to make releases easier. Update RELEASE_PROCESS.md to reflect the changes.

Signed-off-by: Ashley Cui <acui@redhat.com>
2025-06-02 14:31:00 -04:00
238101d57c Merge pull request #26226 from openshift-cherrypick-robot/cherry-pick-26209-to-v5.5
[v5.5] Recreate the Rootfs in mountStorage for infra-container.
2025-05-28 17:35:17 +00:00
25e59c7dd2 Recreate the Rootfs in mountStorage for infra-container.
After the system reboot, the Rootfs for infra-container can
be removed. This can happen when it is stored on tmpfs.

This commit recreates the infra-container directory which is
used for Rootfs for infra-container before mounting it.

Fixes: #26190

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
2025-05-28 14:38:56 +00:00
0eaa16a58d Merge pull request #26164 from openshift-cherrypick-robot/cherry-pick-26162-to-v5.5
[v5.5] libpod: fix mount order for "/" volume
2025-05-20 17:50:26 +00:00
bcada3ec09 libpod: fix mount order for "/" volume
The count function for / and /proc results in the same value so the
order is not guaranteed. We must ensure that a / mount is always first
in the spec so that other mounts are not overshadowed by it.

Fixes: #26161

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-05-20 16:59:30 +00:00
a71ce364cd Merge pull request #26144 from ashley-cui/5.5fix
[v5.5] GHA Release: Fix windows installer uploads
2025-05-15 15:10:04 +00:00
c2a8447e1f GHA Release: Fix windows installer uploads
The new arm and amd installers were left behind, upload them automatically to the GH release

Signed-off-by: Ashley Cui <acui@redhat.com>
2025-05-15 10:05:39 -04:00
48d3bcb2ec Merge pull request #26138 from openshift-cherrypick-robot/cherry-pick-26137-to-v5.5
[v5.5] fix macos compile issue with go 1.24.3
2025-05-14 21:15:18 +00:00
d7d1b4f194 Merge pull request #26132 from podmanbot/bump-5.5.1-dev
Bump Podman to v5.5.1-dev
2025-05-14 18:26:39 +00:00
5a647f154e fix macos compile issue with go 1.24.3
Some changes in go broke purego and that causes a compile error on
macos. This update fixes it.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-05-14 17:59:41 +00:00
5141374193 Bump Podman to v5.5.1-dev
Signed-off-by: mheon <7735048+mheon@users.noreply.github.com>
2025-05-14 14:58:36 +00:00
f6c781ba8f Merge pull request #26126 from mheon/bump_550
Bump to v5.5.0
2025-05-14 13:58:35 +00:00
0dbcb51477 Bump to v5.5.0
Signed-off-by: Matt Heon <mheon@redhat.com>
v5.5.0
2025-05-13 14:59:13 -04:00
d0d4a79d9e Merge pull request #26122 from mheon/release_notes_550
Add release notes for v5.5.0
2025-05-13 15:56:56 +00:00
712291aee8 Update release notes for v5.5.0 final
Signed-off-by: Matt Heon <mheon@redhat.com>
2025-05-13 11:24:28 -04:00
37f621579b Bump bundled krunkit to 0.2.1
Bump the bundled krunkit version from 0.2.0 to 0.2.1.

Signed-off-by: Sergio Lopez <slp@redhat.com>
2025-05-13 11:18:04 -04:00
ab71cebe95 Merge commit from fork
[skip-ci] [v5.5] Tighten version match
2025-05-12 15:54:30 +02:00
5ad243a7da [skip-ci] Tighten version match
Tighten the regex needed to match a valid version.

Signed-off-by: Ashley Cui <acui@redhat.com>
2025-05-12 09:43:17 -04:00