Commit Graph

24622 Commits

Author SHA1 Message Date
openshift-merge-bot[bot] 9f8fdf6a40
Merge pull request #25420 from jankaluza/24030
Add "create" and "remove" events for secrets.
2025-02-28 17:08:22 +00:00
openshift-merge-bot[bot] d91d42461e
Merge pull request #25331 from jakecorrenti/machine-cp
Add `podman machine cp` subcommand
2025-02-28 16:38:15 +00:00
Jan Kaluza 20523152f8 Add "create" and "remove" events for secrets.
This commit adds the "secret" Event type and emits
"create" and "remove" events for this Event type
when Secret is created or removed.

This can be used for example by podman interfaces to
view and manage secrets.

Fixes: #24030

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
2025-02-28 16:58:06 +01:00
Jake Correnti 42fb942a6f
Introduce `podman machine cp` command
Add a new `podman machine cp` subcommand to allow users to copy files or
directories between a running Podman Machine and their host.

Tests cover the following cases:
- Copy a file from the host machine to the VM
- Copy a directory from the host machine to the VM
- Copy a file from the VM to the host machine
- Copy a directory from the VM to the host machine
- Copy a file to a directory
- Copy a directory to a file

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
2025-02-28 09:56:46 -05:00
Matt Heon f71067d710 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

Signed-off-by: Matt Heon <mheon@redhat.com>
2025-02-28 09:52:55 -05:00
Matt Heon 716eb000fa Bump to latest c/storage main
Includes a patch for quotas that is needed for this PR.

Signed-off-by: Matt Heon <mheon@redhat.com>
2025-02-28 09:07:37 -05:00
renovate[bot] 316a5dc643
fix(deps): update module github.com/opencontainers/runtime-spec to v1.2.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-28 02:10:42 +00:00
openshift-merge-bot[bot] 350429cc3c
Merge pull request #25416 from Luap99/go-jose-v3
vendor: update github.com/go-jose/go-jose/v3 to v3.0.4
2025-02-27 17:53:13 +00:00
openshift-merge-bot[bot] e44ba88686
Merge pull request #25385 from panekj/patch-1
Fix reporting summed image size for compat endpoint
2025-02-27 14:39:49 +00:00
Paul Holzinger 92c5b08ebd
vendor: update github.com/go-jose/go-jose/v3 to v3.0.4
Contains a fix for CVE-2025-27144

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-02-27 15:36:41 +01:00
openshift-merge-bot[bot] 470669028f
Merge pull request #25409 from containers/renovate/github.com-containers-buildah-1.x
fix(deps): update module github.com/containers/buildah to v1.39.1
2025-02-27 11:44:04 +00:00
openshift-merge-bot[bot] 6b93f3ee09
Merge pull request #25408 from kolyshkin/fix-pid-limit-minus-1
podman run: fix --pids-limit -1 wrt runc
2025-02-27 11:38:33 +00:00
openshift-merge-bot[bot] 76625edb87
Merge pull request #25411 from containers/renovate/github.com-containers-libhvee-0.x
fix(deps): update module github.com/containers/libhvee to v0.10.0
2025-02-27 10:56:34 +00:00
renovate[bot] 24af533082
fix(deps): update module github.com/containers/libhvee to v0.10.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 09:59:22 +00:00
renovate[bot] e8fc1e679a
fix(deps): update module github.com/containers/buildah to v1.39.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 02:33:29 +00:00
Kir Kolyshkin 328c7260fc 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
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-02-26 17:10:12 -08:00
openshift-merge-bot[bot] e264f58d0a
Merge pull request #25403 from containers/renovate/go-github.com-go-jose-go-jose-v4-vulnerability
chore(deps): update module github.com/go-jose/go-jose/v4 to v4.0.5 [security]
2025-02-26 14:52:11 +00:00
openshift-merge-bot[bot] 45f5112777
Merge pull request #25399 from containers/renovate/github.com-vbauerster-mpb-v8-8.x
fix(deps): update module github.com/vbauerster/mpb/v8 to v8.9.3
2025-02-26 11:25:14 +00:00
renovate[bot] bbc7f577aa
chore(deps): update module github.com/go-jose/go-jose/v4 to v4.0.5 [security]
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-26 11:02:01 +00:00
openshift-merge-bot[bot] 223287cfe1
Merge pull request #25401 from containers/renovate/github.com-vbatts-git-validation-1.x
fix(deps): update module github.com/vbatts/git-validation to v1.2.2
2025-02-26 11:00:23 +00:00
renovate[bot] 6796562b50
fix(deps): update module github.com/vbatts/git-validation to v1.2.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-26 05:43:42 +00:00
renovate[bot] ee3fc74baa
fix(deps): update module github.com/vbauerster/mpb/v8 to v8.9.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-25 23:06:17 +00:00
Jakub Panek 4dbbf264c7
Fix reporting summed image size for compat endpoint
Signed-off-by: Jakub Panek <me@panekj.dev>
2025-02-25 04:03:28 +00:00
openshift-merge-bot[bot] 73795f40a2
Merge pull request #25392 from containers/renovate/tags.cncf.io-container-device-interface-0.x
fix(deps): update module tags.cncf.io/container-device-interface to v0.8.1
2025-02-24 17:37:00 +00:00
renovate[bot] e10df3dac7
fix(deps): update module tags.cncf.io/container-device-interface to v0.8.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-24 14:59:14 +00:00
openshift-merge-bot[bot] 1e7f810f71
Merge pull request #25355 from baude/artifactrmall
Add --all to artifact rm
2025-02-20 19:35:12 +00:00
Brent Baude cbc73457ab Add --all to artifact rm
Add the ability to remove all artifacts with a --all|-a option in podman
artifact rm.

Fixes: https://issues.redhat.com/browse/RUN-2512

Signed-off-by: Brent Baude <bbaude@redhat.com>
2025-02-20 09:38:50 -06:00
openshift-merge-bot[bot] ca1c029c43
Merge pull request #25366 from baude/artifacterrortypes
Define artifact error types
2025-02-20 09:47:53 +00:00
openshift-merge-bot[bot] 8ba13d465c
Merge pull request #25261 from baude/issuesupport
Add documentation describing issues and support
2025-02-19 21:06:30 +00:00
Brent Baude 7030b559fb Define artifact error types
In a different PR review, it was noted that defined error types for
artifacts was lacking.  We have these for most other commands and they
help with error differentiation. The changes here are to define the
errors, implement them in the library, and adopt test verifications to
match.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2025-02-19 13:10:47 -06:00
openshift-merge-bot[bot] 080a239419
Merge pull request #25352 from baude/artifactpullretrydelay
wire up --retry-delay for artifact pull
2025-02-19 16:54:51 +00:00
Brent Baude 6ad2dc0590 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

Signed-off-by: Brent Baude <bbaude@redhat.com>
2025-02-19 09:09:36 -06:00
openshift-merge-bot[bot] 61e88e4205
Merge pull request #25360 from lsm5/packit-copr-rpm-changes
[skip-ci] Packit/Copr: Fix `podman version` in rpm
2025-02-19 15:04:52 +00:00
openshift-merge-bot[bot] 3ab0d82bd4
Merge pull request #25350 from giuseppe/unify-error-codes
oci: report empty exec path as ENOENT
2025-02-19 14:53:45 +00:00
Lokesh Mandvekar 7536620791
[skip-ci] Packit/Copr: Fix `podman version` in rpm
Additional rpm patching to show upstream short sha in `podman --version`
caused podman-machine-os tests to fail.

This commit gets rid of that patching and instead sets define.gitCommit
LDFLAG for Copr rpms.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2025-02-19 19:39:38 +05:30
Giuseppe Scrivano 4695564730
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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2025-02-18 22:01:08 +01:00
openshift-merge-bot[bot] aafc3739fb
Merge pull request #25348 from giuseppe/warn-about-using-capabilities
docs: warn about adding capabilities
2025-02-18 16:18:43 +00:00
openshift-merge-bot[bot] 62fd27b6a7
Merge pull request #25345 from lpcalisi/fix/reduce-noise-logs-when-stdin
fix: reduce logs noise when attach input on `ExecStartAndAttach`
2025-02-18 16:15:57 +00:00
Giuseppe Scrivano b43863ae2a
docs: warn about adding capabilities
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2345676

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2025-02-18 15:23:29 +01:00
Brent Baude a8caebb5a3 Add documentation describing issues and support
We need to begin to able to prune various issues that are:

* stale
* unreproduceable
* will not fix
* others

As such, some sort of statement and somewhat policy leaning
documentation would be helpful.

As suggested in the review comments, ISSUE-EOL-POLICY.md was combined
with this document.  No links in our repository exist for this.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2025-02-18 07:44:21 -06:00
openshift-merge-bot[bot] e88ccec7ed
Merge pull request #25311 from mheon/fix_25289
Add SyncMap package and use it for graph stop/remove
2025-02-18 13:22:42 +00:00
openshift-merge-bot[bot] 4f89bbe0d8
Merge pull request #25346 from mathstuf/quadlet-container-memory
quadlet: support `Memory=` in `[Container]` sections
2025-02-17 21:09:17 +00:00
openshift-merge-bot[bot] df6070f8d7
Merge pull request #25313 from baude/pronlymain
Update CONTRIBUTING for main branch
2025-02-17 20:55:30 +00:00
openshift-merge-bot[bot] c37787b79e
Merge pull request #25343 from Luap99/buildah-bud-ci
test/buildah-bud: run in parallel
2025-02-17 20:47:16 +00:00
openshift-merge-bot[bot] 910f9dd98e
Merge pull request #25340 from giuseppe/fix-crun-error-messages
tests: adapt e2e tests new crun error messages
2025-02-17 20:44:31 +00:00
Giuseppe Scrivano c65bb903b6
test: adapt tests new crun error messages
Needed-by: https://github.com/containers/crun/pull/1672

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2025-02-17 20:47:43 +01:00
Giuseppe Scrivano 35d2a65e3a
test: remove duplicate test
"podman run exit ExecErrorCodeCannotInvoke" does the same thing.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2025-02-17 20:47:29 +01:00
Matt Heon 0f443f22ca Add syncmap package and use it for graph stop/remove
This greatly simplifies the locking around these two functions,
and things end up looking a lot more elegant. This should prevent
the race flakes we were seeing before.

Fixes #25289

Signed-off-by: Matt Heon <mheon@redhat.com>
2025-02-17 14:32:34 -05:00
Brent Baude 1c13a71641 Update CONTRIBUTING for main branch
We want contributors to submit to the main branch of podman and not
branches without maintainer involvement.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2025-02-17 13:20:59 -06:00
Lucas Pablo Calisi bbb94249ed
fix: reduce logs noise when attach input on `ExecStartAndAttach`
Fixes #25344

Signed-off-by: Lucas Pablo Calisi <calisi.lucas@gmail.com>
2025-02-17 14:52:01 -03:00