Commit Graph

24441 Commits

Author SHA1 Message Date
renovate[bot] db6c2c7cdf
fix(deps): update golang.org/x/exp digest to 2d47ceb
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-01 10:47:09 +00:00
renovate[bot] f3d250cf27
fix(deps): update github.com/godbus/dbus/v5 digest to c266b19
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-01 04:27:57 +00:00
Arthur Sengileyev 5bbfed2dc1 Cover Unix socket in inpect test on Windows platform
Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
2024-11-29 18:01:38 +02:00
openshift-merge-bot[bot] 2385257d08
Merge pull request #24708 from jnovy/podman-machine-arch
Package podman-machine on supported architectures only.
2024-11-29 14:36:03 +00:00
openshift-merge-bot[bot] c3d7723498
Merge pull request #24706 from SEIAROTg/systemd-absolute-path
Fixes missing binary in systemd.
2024-11-29 14:27:47 +00:00
openshift-merge-bot[bot] 2d46f428b2
Merge pull request #24711 from containers/renovate/github.com-crc-org-vfkit-0.x
fix(deps): update module github.com/crc-org/vfkit to v0.6.0
2024-11-29 13:13:33 +00:00
James Hewitt 48ae52c08b
Add a test for forcing compression and v2s2 format
This highlights a bug in common where the compression format is reset if the format is v2s2, even if its a valid compression format.

Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
2024-11-29 12:40:49 +00:00
renovate[bot] 9de7e07e56
fix(deps): update module github.com/crc-org/vfkit to v0.6.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-29 11:55:43 +00:00
Jindrich Novy 9475ea8fb9 Package podman-machine on supported architectures only.
Signed-off-by: Jindrich Novy <jnovy@redhat.com>
2024-11-29 06:06:30 +01:00
SEIAROTg 156fc084a9
Fixes missing binary in systemd.
This is broken on e.g. NixOS as systemd only searches a small set of
directories for command binary, which does not include `/bin` [1].

[1]: https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#Command%20lines

Signed-off-by: SEIAROTg <seiarotg@gmail.com>
2024-11-28 23:42:44 +00:00
openshift-merge-bot[bot] b3c02684fd
Merge pull request #24701 from giuseppe/stats-ignore-no-cgroups
stats: ignore errors from containers without cgroups
2024-11-28 15:08:08 +00:00
openshift-merge-bot[bot] 18191d66a2
Merge pull request #24686 from mtrmac/test-typo
Fix apparent typos in zstd:chunked tests
2024-11-28 14:24:07 +00:00
Giuseppe Scrivano 6673f5c202
stats: ignore errors from containers without cgroups
Now `podman stats --all` ignores failures from a container that has no
cgroups.

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-11-28 15:19:04 +01:00
openshift-merge-bot[bot] 3d720ce16b
Merge pull request #24702 from mi4r/dev/mi4r/importBuilderNullDerefFix
api: Error checking before NULL dereference
2024-11-28 12:36:53 +00:00
openshift-merge-bot[bot] b965d7b9f9
Merge pull request #24696 from giuseppe/clamp-ulimits-root-no-sys-resource
spec: clamp rlimits without CAP_SYS_RESOURCE
2024-11-28 12:20:23 +00:00
Tigran Sogomonian 1fa27ffb62 api: Error checking before NULL dereference
Move error checking of possible null returned value before
its dereference in importBuilder.Format

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Tigran Sogomonian <tsogomonian@astralinux.ru>
2024-11-28 14:01:45 +03:00
openshift-merge-bot[bot] a9b163a757
Merge pull request #24700 from lsm5/main-f39-eol
[skip-ci] Packit/copr: switch to fedora-all
2024-11-28 10:33:19 +00:00
openshift-merge-bot[bot] 1455d870d5
Merge pull request #24698 from edsantiago/ouch
make remotesystem: fail early if serial tests fail
2024-11-28 10:22:07 +00:00
Lokesh Mandvekar 4ef773d69e
[skip-ci] Packit/copr: switch to fedora-all
Fedora 39 is now EOL.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2024-11-28 14:53:48 +05:30
Eduardo Santiago 2f1a1fb6f3 make remotesystem: fail early if serial tests fail
Exit status was being lost due to sequential bats invocations.

Solution: preserve exit status of first (serial) run,
and skip parallel tests if those fail.

I am so, so sorry.

Signed-off-by: Eduardo Santiago <ed@edsantiago.com>
2024-11-27 14:51:52 -07:00
Giuseppe Scrivano 4b38294e92
spec: clamp rlimits without CAP_SYS_RESOURCE
commit 5ebba75dbd implemented this
behaviour for rootless users and later commit
0a69aefa41 changed it when in a user
namespace, but the same limitation exists for root without
CAP_SYS_RESOURCE.  Change the check to use the clamp to the current
values if running without CAP_SYS_RESOURCE.

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-11-27 21:35:00 +01:00
Miloslav Trmač 6f85808707 Clarify the reason for skip_if_remote
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2024-11-27 21:26:11 +01:00
Miloslav Trmač 39e08c3ffa Sanity-check that the test is really using partial pulls
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2024-11-27 21:26:11 +01:00
Miloslav Trmač 5ff496ea2b Fix apparent typos in zstd:chunked tests
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2024-11-27 19:56:48 +01:00
Arthur Sengileyev 7f6a203558 Fix compilation issues in QEMU machine files (Windows platform)
Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
2024-11-27 17:23:08 +02:00
Matthew Heon e66b788a51 Mount volumes before copying into a container
This solves several problems with copying into volumes on a
container that is not running.

The first, and most obvious, is that we were previously entirely
unable to copy into a volume that required mounting - like
image volumes, volume plugins, and volumes that specified mount
options.

The second is that this fixed several permissions and content
issues with a fresh volume and a container that has not been run
before. A copy-up will not have occurred, so permissions on the
volume root will not have been set and content will not have been
copied into the volume.

If the container is running, this is very low cost - we maintain
a mount counter for named volumes, so it's just an increment in
the DB if the volume actually needs mounting, and a no-op if it
doesn't.

Unfortunately, we also have to fix permissions, and that is
rather more complicated. This involves an ugly set of manual
edits to the volume state to ensure that the permissions fixes
actually worked, as the code was never meant to be used in this
way. It's really ugly, but necessary to reach full Docker
compatibility.

Fixes #24405

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2024-11-27 08:09:50 -05:00
Matt Heon 44b0c24ca5 Revert "libpod: remove shutdown.Unregister()"
This reverts commit 5de7b7c3f3.

We now require the Unregister shutdown handler function for
handling unmounting named volumes after `podman cp` into a
stopped container.

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-11-27 08:09:50 -05:00
openshift-merge-bot[bot] ceee7cb0a6
Merge pull request #24682 from lsm5/main-packit-remove-epel-targets
[skip-ci] Packit: remove epel and re-enable c9s
2024-11-26 15:11:23 +00:00
openshift-merge-bot[bot] 0cfe47bdfa
Merge pull request #24677 from M1cha/network-create-docs
Add support for bridge mode
2024-11-26 14:21:54 +00:00
Michael Zimmermann e608874004 docs: improve documentation for internal networks
This goes into more detail about what this option actually does.

Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
2024-11-26 14:24:44 +01:00
Michael Zimmermann 697c4181d2 docs: document bridge mode option
Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
2024-11-26 14:24:44 +01:00
Lokesh Mandvekar 415d762475
[skip-ci] Packit: remove epel and re-enable c9s
We're moving away from proper rhel testing on upstream because of the
slower pace of RHEL. This has already been done on aardvark-dns and some
others.

CentOS 9 Stream does move fast enough that we can re-enable it here.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2024-11-26 15:05:01 +05:30
openshift-merge-bot[bot] e6237bbf5b
Merge pull request #24674 from Luap99/OWNERS
OWNERS: remove edsantiago
2024-11-25 20:44:27 +00:00
openshift-merge-bot[bot] 54222ac23d
Merge pull request #24671 from containers/renovate/github.com-onsi-gomega-1.x
fix(deps): update module github.com/onsi/gomega to v1.36.0
2024-11-25 20:41:44 +00:00
openshift-merge-bot[bot] be8a4abf62
Merge pull request #24676 from containers/renovate/golangci-golangci-lint-1.x
chore(deps): update dependency golangci/golangci-lint to v1.62.2
2024-11-25 20:39:01 +00:00
renovate[bot] e5ed7847c1
chore(deps): update dependency golangci/golangci-lint to v1.62.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-25 17:38:01 +00:00
Michael Zimmermann e16f14a44d vendor: update containers/common
Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
2024-11-25 18:29:16 +01:00
Paul Holzinger ef565b76f2
OWNERS: remove edsantiago
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-11-25 18:17:10 +01:00
renovate[bot] c2dcfca4ca
fix(deps): update module github.com/onsi/gomega to v1.36.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-25 14:43:41 +00:00
openshift-merge-bot[bot] 9d3d0c7817
Merge pull request #24617 from containers/renovate/common-image-and-storage-deps
fix(deps): update github.com/containers/common digest to ceceb40
2024-11-25 14:43:01 +00:00
openshift-merge-bot[bot] 70c255955a
Merge pull request #21062 from gavinkflam/base-hosts-file-flag
Add --hosts-file flag; Add nohosts to remote build APIs
2024-11-25 14:40:18 +00:00
openshift-merge-bot[bot] aba98ad072
Merge pull request #24665 from ksw2000/refactor-eventer-type
refact: EventerType and improve consistency
2024-11-25 13:23:40 +00:00
renovate[bot] 506fec1fa9
fix(deps): update github.com/containers/common digest to ceceb40
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-25 12:31:03 +00:00
openshift-merge-bot[bot] 08908fbc4a
Merge pull request #24659 from containers/renovate/github.com-stretchr-testify-1.x
fix(deps): update module github.com/stretchr/testify to v1.10.0
2024-11-25 10:46:12 +00:00
ksw2000 e4e7bc41f3 refact: EventerType and improve consistency
1. Completed the EventerType comment.
2. Changed EventerType to be represented as a string.
3. Since EventerType is designed to be entirely lowercase, changed the comparison to use lowercase instead of uppercase.
4. Renamed newEventJournalD to newJournalDEventer.
5. Removed redundant error-checking steps in events_linux.go.

Signed-off-by: ksw2000 <13825170+ksw2000@users.noreply.github.com>
2024-11-25 08:52:53 +00:00
Gavin Lam 4f7395f93a
Add --hosts-file flag to container and pod commands
* Add --hosts-file flag to container create, container run and pod create
* Add HostsFile field to pod inspect and container inspect results
* Test BaseHostsFile config in containers.conf

Signed-off-by: Gavin Lam <gavin.oss@tutamail.com>
2024-11-24 22:00:34 -05:00
Gavin Lam dc564257a2
Add nohosts option to /build and /libpod/build
Signed-off-by: Gavin Lam <gavin.oss@tutamail.com>
2024-11-24 22:00:31 -05:00
renovate[bot] 936461e3c2
fix(deps): update module github.com/stretchr/testify to v1.10.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-23 12:42:26 +00:00
openshift-merge-bot[bot] 5d7700bc41
Merge pull request #24643 from ygalblum/quadlet-build-no-space
Quadlet - Use = sign when setting the pull arg for build
2024-11-22 20:40:47 +00:00
Ygal Blum 13affe96d6 Quadlet - Use = sign when setting the pull arg for build
Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
2024-11-22 15:06:50 -05:00