Commit Graph

24456 Commits

Author SHA1 Message Date
Jan Rodák 00007bc171
[v5.4-rhel] Run HealthCheck without creating and removing the ExecSession in the database
Fixes: https://issues.redhat.com/browse/RHEL-69970
Fixes: https://issues.redhat.com/browse/RHEL-96916
Fixes: https://issues.redhat.com/browse/RHEL-96917

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
(cherry picked from commit ad9839ac55)
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2025-06-18 08:42:06 +02:00
openshift-merge-bot[bot] 0ee1d4919a
Merge pull request #25836 from TomSweeneyRedHat/dev/tsweeney/cleantmp
[v5.4-rhel] Remove persist directory when cleaning up Conmon files
2025-04-08 22:03:17 +00:00
Matt Heon 7b53a64c3c [v5.4-rhel] Remove persist directory when cleaning up Conmon files
This seems to have been added as part of the cleanup of our
handling of OOM files, but code was never added to remove it, so
we leaked a single directory with an exit file and OOM file per
container run. Apparently have been doing this for a while - I'd
guess since March of '23 - so I'm surprised more people didn't
notice.

Fixes #25291

Fixes: https://issues.redhat.com/browse/RHEL-86544, https://issues.redhat.com/browse/RHEL-86550

Signed-off-by: Matt Heon <mheon@redhat.com>
Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-04-08 16:05:21 -04:00
openshift-merge-bot[bot] a994a04ea0
Merge pull request #25765 from giuseppe/oci-enoent-errors-v5.4-rhel
[v5.4-rhel] support new crun error messages
2025-04-04 15:47:14 +00:00
Giuseppe Scrivano a7ac20d913
oci: report empty exec path as ENOENT
unify the error codes returned by runc and crun.

Fix the tests to work with both runtimes, as well as the
https://github.com/containers/crun/pull/1672 changes in progress for
crun.

Follow-up for https://github.com/containers/podman/pull/25340

Closes: https://issues.redhat.com/browse/RHEL-85826

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit 4695564730)
2025-04-02 15:25:18 +02:00
Giuseppe Scrivano 170d8630f1
test: adapt tests new crun error messages
Needed-by: https://github.com/containers/crun/pull/1672

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit c65bb903b6)
2025-04-02 15:25:06 +02:00
Giuseppe Scrivano ae4b00cb9d
test: remove duplicate test
"podman run exit ExecErrorCodeCannotInvoke" does the same thing.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit 35d2a65e3a)
2025-04-02 15:25:04 +02:00
openshift-merge-bot[bot] f7bf65c147
Merge pull request #25721 from TomSweeneyRedHat/dev/tsweeney/buildah-1.39.4
[v5.4-rhel] Bump Buildah to v1.39.4
2025-03-28 16:04:38 +00:00
tomsweeneyredhat 7289dee40b [v5.4-rhel] Bump Buildah to v1.39.4
Bump Buildah to v1.39.4.  This will fix a DDIF issue as noted in: https://issues.redhat.com/browse/RHEL-85212 and https://github.com/containers/podman/issues/25593.

This also addresesses an Image Mode issue when tweaking mount variables
as noted in: https://issues.redhat.com/browse/RHEL-79560

Fixes: https://issues.redhat.com/browse/RHEL-85218,
https://issues.redhat.com/browse/RHEL-85219,
https://issues.redhat.com/browse/RHEL-85116,
https://issues.redhat.com/browse/RHEL-85117

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-03-28 11:34:14 -04:00
openshift-merge-bot[bot] 9ad48423b0
Merge pull request #25595 from TomSweeneyRedHat/dev/tsweeney/v5.4-rhel-buildah-1.39.3
[v5.4-rhel] Bump to Buildah v1.39.3
2025-03-17 08:22:39 +00:00
tomsweeneyredhat 0fb468f32a [v5.4-rhel] Bump to Buildah v1.39.3
Bump Buildah to v1.39.3.  In the process also bump:
c/storage v1.57.2
c/image v5.34.2
c/common v0.62.2

This is the last step in the dance and fixes:
https://issues.redhat.com/browse/RHEL-82509,
https://issues.redhat.com/browse/RHEL-82511

Force private propagation of ID mapped mounts.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-03-14 16:06:07 -04:00
openshift-merge-bot[bot] 9d2e54f4d7
Merge pull request #25587 from Honny1/v5.4-rhel-fix-hc-inf-log
[v5.4] Fix HealthCheck log destination, count, and size defaults
2025-03-14 16:08:31 +00:00
Jan Rodák a6a7bcd017
[v5.4] Fix HealthCheck log destination, count, and size defaults
GoLang sets unset values to the default value of the type. This means that the destination of the log is an empty string and the count and size are set to 0. However, this means that size and count are unbounded, and this is not the default behavior.

Fixes: https://github.com/containers/podman/issues/25473
Fixes: https://issues.redhat.com/browse/RHEL-83262
Fixes: https://issues.redhat.com/browse/RHEL-83557
Fixes: https://issues.redhat.com/browse/RHEL-83556

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
(cherry picked from commit fff42ac232)
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2025-03-14 16:04:38 +01:00
openshift-merge-bot[bot] 45c2d1f6a5
Merge pull request #25538 from Luap99/v5.4-rhel-crypto
[v5.4-rhel] CVE-2025-22869: bump to golang.org/x/crypto@v0.36.0
2025-03-12 08:47:17 +00:00
Paul Holzinger 82c6daa21d
vendor: bump to golang.org/x/crypto@v0.36.0
Fixes: CVE-2025-22869
Fixes: https://issues.redhat.com/browse/RHEL-82775
Fixes: https://issues.redhat.com/browse/RHEL-82776
Fixes: https://issues.redhat.com/browse/RHEL-81319
Fixes: https://issues.redhat.com/browse/OCPBUGS-52552
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-11 19:17:59 +01:00
Paul Holzinger 64aaa455fb
remove packit jobs
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-11 19:17:51 +01:00
Paul Holzinger 5f8299513c
cirrus: only run single build
Update cirrus.yml to the latest image based of 5.4-rhel, then disable
validate as there no point for it when we do backports. And only
perform a single build on the f41.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-11 19:17:51 +01:00
openshift-merge-bot[bot] e48006b86f
Merge pull request #25488 from mheon/backport_25368_fix
[v5.4-rhel] Create quota before _data dir for volumes
2025-03-10 14:18:00 +00:00
openshift-merge-bot[bot] 5e3accd612
Merge pull request #25496 from TomSweeneyRedHat/dev/tsweeeney/pidlimitfix-v5.4-rhel
[v5.4-rhel] podman run: fix --pids-limit -1 wrt runc
2025-03-06 16:52:33 +00:00
Kir Kolyshkin 6753a57e6c [v5.4-rhel] podman run: fix --pids-limit -1 wrt runc
Since commit c25cc7230 ("Allow a value of -1 to set unlimited pids
limit") podman converts the pids-limit value of -1 to 0 for OCI spec.

Unfortunately, different runtimes (crun and runc) treat pids.limit=0
differently, and the runtime-spec definition is somewhat vague
(see [1]).

Long term fix belongs to runtime-spec and then runtimes should follow
it.

Short term fix is do not convert -1 to 0 (as all runtimes treat -1 as
unlimited).

[NO NEW TESTS NEEDED] -- this is covered by test added in commit 553e53d44.

Fixes: https://issues.redhat.com/browse/RHEL-80973

[1]: https://github.com/opencontainers/runc/issues/4014#issuecomment-1888185352

Fixes: https://issues.redhat.com/browse/RHEL-82424,
https://issues.redhat.com/browse/RHEL-82425
In the RHEL 9.6 and 10.0 ZeroDay streams

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-03-06 10:16:05 -05:00
openshift-merge-bot[bot] 2adbe89e67
Merge pull request #25489 from TomSweeneyRedHat/dev/tsweeney/artifact-retry-v5.4-rhel
[v5.4-rhel] wire up --retry-delay for artifact pull
2025-03-06 12:33:39 +00:00
Brent Baude 56bfad1b0d [v5.4-rhel] wire up --retry-delay for artifact pull
fixed a bug in the artifact code where --retry-delay was being
discarded.

Fixes: https://issues.redhat.com/browse/RUN-2511
Fixes: https://issues.redhat.com/browse/RHEL-80259, https://issues.redhat.com/browse/RHEL-80260

Signed-off-by: Brent Baude <bbaude@redhat.com>
Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-03-05 14:35:48 -05:00
Matt Heon a28e9fa3b8 Create quota before _data dir for volumes
This resolves an ordering issue that prevented quotas from being
applied. XFS quotas are applied recursively, but only for
subdirectories created after the quota is applied; if we create
`_data` before the quota, and then use `_data` for all data in
the volume, the quota will never be used by the volume.

Also, add a test that volume quotas are working as designed using
an XFS formatted loop device in the system tests. This should
prevent any further regressions on basic quota functionality,
such as quotas being shared between volumes.

Fixes #25368
Fixes https://issues.redhat.com/browse/RHEL-82198
Fixes https://issues.redhat.com/browse/RHEL-82199

Signed-off-by: Matt Heon <mheon@redhat.com>
2025-03-05 14:19:32 -05:00
openshift-merge-bot[bot] 67d3d0788c
Merge pull request #25470 from TomSweeneyRedHat/dev/tsweeney/byopki-v5.4-rhel
[v5.4-rhel] Bump c/image to v5.34.1, c/common v0.62.1, ...
2025-03-05 18:50:10 +00:00
tomsweeneyredhat b6092e268e [v5.4-rhel] Bump c/image to v5.34.1, c/common v0.62.1, ...
c/buildah v1.39.2

Bump:
c/image v5.34.1
c/common v0.62.1
c/buildah v1.39.2

To bring BYOPKI signature verification into the RHEL 9.6 and 10.0
ZeroDay deliveries.

Also updates github.com/go-jose/go-jose/v3 to v3.0.4 which fixes
CVE-2025-27144.

Fixes: https://issues.redhat.com/browse/RHEL-79694,
https://issues.redhat.com/browse/RHEL-79695

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-03-05 11:12:57 -05:00
openshift-merge-bot[bot] 2c810d6a82
Merge pull request #25306 from Luap99/v5.4-rhel
[v5.4-rhel] cirrus: remove functional tests
2025-02-12 19:39:47 +00:00
Paul Holzinger a640863c7c
cirrus: fix DEST_BRANCH
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-02-12 18:13:15 +01:00
Paul Holzinger af9d576cce
cirrus: remove functional tests
As discussed at the cabal October 8, 2024 we have no need for these
tests on RHEL branches.

See commit 0ed2c91 for more details.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-02-12 18:13:15 +01:00
Matt Heon f9f7d48b24 Bump to v5.4.0
Signed-off-by: Matt Heon <mheon@redhat.com>
2025-02-11 11:08:03 -05:00
Matt Heon 246011458c Update release notes for v5.4.0 final
Signed-off-by: Matt Heon <mheon@redhat.com>
2025-02-11 11:02:20 -05:00
Matt Heon 3d344ffd26 In SQLite state, use defaults for empty-string checks
As part of our database init, we perform a check of the current
values for a few fields (graph driver, graph root, static dir,
and a few more) to validate that Libpod is being started with a
sane & sensible config, and the user's containers can actually be
expected to work. Basically, we take the current runtime config
and compare against values cached in the database from the first
time Podman was run.

We've had some issues with this logic before this year around
symlink resolution, but this is a new edge case. Somehow, the
database is being loaded with the empty string for some fields
(at least graph driver) which is causing comparisons to fail
because we will never compare against "" for those fields - we
insert the default value instead, assuming we have one.

Having a value of "" in the database largely invalidates the
check so arguably we could just drop it, but what BoltDB did -
and what SQLite does after this patch - is to use the default
value for comparison instead of "". This should still catch some
edge cases, and shouldn't be too harmful.

What this does not do is identify or solve the reason that we are
seeing the empty string in the database at all. From my read on
the logic, it must mean that the graph driver is explicitly set
to "" in the c/storage config at the time Podman is first run and
I'm not precisely sure how that happens.

Fixes #24738

Signed-off-by: Matt Heon <mheon@redhat.com>
2025-02-11 11:01:00 -05:00
Jan Rodák 2612e3c233 Bump FreeBSD version to 13.4
Version 13.3 is EOL. See https://www.freebsd.org/releases/

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2025-02-11 09:21:54 -05:00
Paul Holzinger 3d917a395c docs: add v5.4 to API reference
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-02-11 09:21:33 -05:00
openshift-merge-bot[bot] a8a01ca426
Merge pull request #25287 from openshift-cherrypick-robot/cherry-pick-25235-to-v5.4
[v5.4] [skip-ci] RPM: set BUILD_ORIGIN
2025-02-11 07:13:43 +00:00
Lokesh Mandvekar 13ebc5860c Update rpm/podman.spec
Co-authored-by: Paul Holzinger <git@holzinger.dev>
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2025-02-11 07:10:30 +00:00
Lokesh Mandvekar f34d6c76db RPM: set buildOrigin in LDFLAG
For Copr builds, it will mention the Copr info from where the rpm is
installed.

For non-copr builds, it will mention the value of the packager macro
if set, and skip this field altogether if not.

On local rpm builds, this shows:
```
Build Origin:  Lokesh Mandvekar <lsm5@fedoraproject.org>
```

On koji rpm builds, this shows:
```
Build Origin: Fedora Project
```

On copr rpm builds (for eg. rhcontainerbot/playground), this shows:
```
Build Origin: Copr: rhcontainerbot/playground
```

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2025-02-11 07:10:30 +00:00
openshift-merge-bot[bot] 7839a1ce1b
Merge pull request #25274 from openshift-cherrypick-robot/cherry-pick-24864-to-v5.4
[v5.4] [skip-ci] RPM: cleanup macro defs
2025-02-10 13:38:19 +00:00
Lokesh Mandvekar 6218d42ed6 RPM: cleanup macro defs
The default `gobuild` macro on CentOS Stream 9 now includes support for
`BUILDTAGS`.

CentOS Stream envs now also define `_user_tmpfilesdir` macro by default.
Both these definitions are no longer needed here.

`libtrust_openssl` buildtag is also set in spec wherever relevant.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2025-02-10 13:30:14 +00:00
openshift-merge-bot[bot] e4bfcf9b02
Merge pull request #25258 from openshift-cherrypick-robot/cherry-pick-25252-to-v5.4
[v5.4] Makefile: escape BUILD_ORIGIN properly
2025-02-07 16:36:59 +00:00
Paul Holzinger 18249e10c1 Makefile: escape BUILD_ORIGIN properly
When trying to pass a string with spaces that broke the go command cli
parsing, the full argument must be put in quotes to avoid escaping
issues.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-02-07 15:28:53 +00:00
openshift-merge-bot[bot] fcbce3648c
Merge pull request #25249 from openshift-cherrypick-robot/cherry-pick-25245-to-v5.4
[v5.4] rootless: fix hang on s390x
2025-02-06 16:43:29 +00:00
Giuseppe Scrivano d280feb96c rootless: fix hang on s390x
avoid using the glibc fork() function after using directly the clone()
syscall, as it confuses glibc causing the fork() to hang in some
cases.

The issue has been observed only on s390x, and the fix was confirmed
in the issue discussion.

Closes: https://github.com/containers/podman/issues/25184

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2025-02-06 15:22:00 +00:00
openshift-merge-bot[bot] 582d7185df
Merge pull request #25225 from mheon/bump_540_rc3
[CI:ALL] Bump to v5.4.0-RC3
2025-02-05 19:00:15 +00:00
Matt Heon fa263d2cc9 Set Cirrus DEST_BRANCH appropriately to fix CI
Signed-off-by: Matt Heon <mheon@redhat.com>
2025-02-05 08:55:17 -05:00
Matt Heon 0f01f00f03 Bump to v5.4.0-dev
Signed-off-by: Matt Heon <mheon@redhat.com>
2025-02-05 08:55:17 -05:00
Matt Heon ad54787bf0 Bump to v5.4.0-rc3
Signed-off-by: Matt Heon <mheon@redhat.com>
2025-02-05 08:55:17 -05:00
Matt Heon 6c78bad0dd Update release notes for v5.4.0-rc3
Signed-off-by: Matt Heon <mheon@redhat.com>
2025-02-05 08:55:17 -05:00
Ashley Cui 02eac2979c Add BuildOrigin field to podman info
BuildOrigin is a field that can be set at build time by packagers. This helps us trace how and where the binary was built and installed from, allowing us to see if the issue is due to a specfic installation or a general podman bug. This field shows up in podman version and in podman info when populated. Note that podman info has a new field, Client, that only appears when running podman info using the remote client.

Automatically set the BuildOrigin field when building the macOS pkginstaller to pkginstaller.

Usage: make podman-remote BUILD_ORIGIN="mypackaging"

Signed-off-by: Ashley Cui <acui@redhat.com>
2025-02-04 15:17:24 -05:00
Paul Holzinger 141eae99b8 artifact: only allow single manifest
Allowing for multiple manifest per artifact just makes the code and cli
design harder to work with it. It is not clear how mounting, extracting
or edit on a multi manifest artifact should have worked.

A single manifest should make the code much easier to work with.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-02-04 15:13:00 -05:00
Paul Holzinger d5989990d5 test/e2e: improve write/removeConf()
First use proper ginkgo error handling to ensure errors are actually
reported and fail the test. Mark it as helper function to have better
stack traces.

Then use a atomic write function to prevent issues with partial written
files. I think this is causing CI flakes[1].

Lastly fix the file permissions, do not make it world writable and do
not set the executable bit on the file.

[1] https://api.cirrus-ci.com/v1/artifact/task/5985244932734976/html/int-podman-fedora-41-root-host-sqlite.log.html#t--Podman-network-podman-network-ID-test--1

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-02-04 15:13:00 -05:00