Commit Graph

25081 Commits

Author SHA1 Message Date
openshift-merge-bot[bot] fd8ed0b2f2
Merge pull request #25796 from Luap99/kube-pod-empty
quadlet kube: consider empty pod as running
2025-04-08 14:07:42 +00:00
openshift-merge-bot[bot] c89aa95560
Merge pull request #25828 from IAmJSD/patch-1
Make Go not panic on a partial update
2025-04-08 13:45:06 +00:00
Paul Holzinger 85caf3fbb5
test: update README for system test
Clarify that system test specifc configuration must be done via config
files and not via ad hoc environment variables like in test/e2e.

Also not that we only run the tests with crun so other runtimes may not
work but we accept patches to make them work with runc, e.g. Suse folks
currently run them with runc and contribute patches for them.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-08 15:43:45 +02:00
openshift-merge-bot[bot] 62fe2e0f28
Merge pull request #25815 from giuseppe/fix-hostuser
libpod: --user works with  --hostuser entries
2025-04-08 13:42:24 +00:00
openshift-merge-bot[bot] 20e1b9db3a
Merge pull request #24791 from arsenalzp/issue_24664
Allow filtering containers by command
2025-04-08 12:55:09 +00:00
Astrid Gealer 9cc7c2b4ab Make Go not panic on a partial container update
Right now, if you call Update with only part of the options struct added, it panics. This fixes that by only adding them if they are not nil.

Signed-off-by: Astrid Gealer <astrid@gealer.email>
2025-04-08 13:38:48 +01:00
openshift-merge-bot[bot] 450f8544ef
Merge pull request #25822 from containers/renovate/golang.org-x-net-0.x
fix(deps): update module golang.org/x/net to v0.39.0
2025-04-08 12:36:08 +00:00
Paul Holzinger 4e65ed5b72
hack/bats: remove OCI_RUNTIME reference
It is never used by system tests so do not mention or use it here.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-08 14:30:50 +02:00
Sergio Lopez 146f70d9fe Bump bundled krunkit to 0.2.0
Bump the bundled krunkit version from 0.1.4 to 0.2.0.

Signed-off-by: Sergio Lopez <slp@redhat.com>
2025-04-08 10:57:04 +02:00
renovate[bot] 7633a9a143
fix(deps): update module golang.org/x/net to v0.39.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-07 22:44:00 +00:00
openshift-merge-bot[bot] 37dc5fdf89
Merge pull request #25820 from Luap99/maintainers
Maintainers.md: fix two github nicks
2025-04-07 18:03:11 +00:00
openshift-merge-bot[bot] 8461dff1ad
Merge pull request #25793 from Luap99/network-connect-err
fix network DB desync after failed connect/disconnect
2025-04-07 18:00:27 +00:00
openshift-merge-bot[bot] fe020192b7
Merge pull request #25819 from Luap99/test-dns
test/system: do not check dns.podman
2025-04-07 17:57:37 +00:00
Paul Holzinger 7e1ea74813
Maintainers.md: fix two github nicks
They start with an upper case letter, the link is already correct.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-07 18:22:12 +02:00
Giuseppe Scrivano 85024a9ba7
libpod: --user works with --hostuser entries
create the /etc/passwd and /etc/group files before any user/group
lookup so that the entries added dynamically are found by --user.

As a side effect, do not automatically create the group with same
value as the uid when not specified, since it is expected to run with
gid=0.

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2025-04-07 18:11:06 +02:00
openshift-merge-bot[bot] 40d7ab19f5
Merge pull request #25818 from containers/renovate/golang.org-x-crypto-0.x
fix(deps): update module golang.org/x/crypto to v0.37.0
2025-04-07 12:57:07 +00:00
Paul Holzinger 254ab3b90f
test/system: do not check dns.podman
A recent change[1] in netavark makes it so we no longer set the default
dns.podman search domain. As such we must no longer test for it.

[1] https://github.com/containers/netavark/pull/1214

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-07 13:57:59 +02:00
renovate[bot] 6bb1d0837f
fix(deps): update module golang.org/x/crypto to v0.37.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-07 11:38:53 +00:00
openshift-merge-bot[bot] db9fa22d16
Merge pull request #25817 from containers/renovate/github.com-onsi-ginkgo-v2-2.x
fix(deps): update module github.com/onsi/ginkgo/v2 to v2.23.4
2025-04-07 11:37:21 +00:00
renovate[bot] acbfc3c259
fix(deps): update module github.com/onsi/ginkgo/v2 to v2.23.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-07 10:09:30 +00:00
openshift-merge-bot[bot] 1264564503
Merge pull request #25806 from containers/renovate/golang.org-x-term-0.x
fix(deps): update module golang.org/x/term to v0.31.0
2025-04-07 10:06:37 +00:00
renovate[bot] 27b3781201
fix(deps): update module golang.org/x/term to v0.31.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-06 01:55:55 +00:00
openshift-merge-bot[bot] 70b01e2aa9
Merge pull request #25785 from containers/renovate/github.com-moby-sys-user-0.x
fix(deps): update module github.com/moby/sys/user to v0.4.0
2025-04-04 21:29:07 +00:00
Paul Holzinger 8d1c373475
quadlet kube: consider empty pod as running
Since commit 945aade38b we do tear down the kube units if all pods
failed to start. This however broke the use case of an empty pod as we
did not consider that being starting successfully which is wrong and
caused a regression for at least one user.

To fix this special case the empty pod and consider that running.

Fixes: #25786
Fixes: 945aade38b ("quadlet kube: correctly mark unit as failed")

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-04 19:19:00 +02:00
Paul Holzinger f87ab2b7a6
fix network DB desync after failed connect/disconnect
Networks are stored in two ways in the DB, first a static network list
which holds all the network with its option for the container. Second,
the network status which hold the actual network result from netavark
but only when the container is running.

If the container is running they must be in sync and podman inspect has
checks to ensure that as well it errors out of there is a desync between
the two.

As the adding to the db and doing actual networking configuration are
diffeent parts it possible that one worked while the other failed which
triggers the desync. To avoid this make the network connect/disconnect
code more robust against partial failures. When the network calls fail
we update the db again to remove/add the network back.

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

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-04 14:42:20 +02:00
openshift-merge-bot[bot] 0a0d05b3e3
Merge pull request #25781 from kolyshkin/rm-goimports
Use golangci-lint fmt for pkg/bindings
2025-04-04 09:38:25 +00:00
openshift-merge-bot[bot] 951a2ce7bb
Merge pull request #25784 from containers/renovate/actions-create-github-app-token-2.x
[skip-ci] Update actions/create-github-app-token action to v2
2025-04-04 09:21:55 +00:00
openshift-merge-bot[bot] e65bbab04d
Merge pull request #25773 from kolyshkin/freebsd-no-seccomp
Makefile: exclude seccomp build tag for !linux
2025-04-04 02:20:23 +00:00
renovate[bot] c0845ed55b
fix(deps): update module github.com/moby/sys/user to v0.4.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-03 22:00:01 +00:00
openshift-merge-bot[bot] af7c6f8669
Merge pull request #25742 from mohanboddu/triage
Add documentation describing how to triage issues
2025-04-03 20:10:04 +00:00
renovate[bot] 5148cf3c14
[skip-ci] Update actions/create-github-app-token action to v2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-03 19:51:47 +00:00
openshift-merge-bot[bot] dced2bf9ef
Merge pull request #25769 from Luap99/pasta-doc
docs: update pasta options description
2025-04-03 19:50:53 +00:00
Mohan Boddu 72acbc804a Add documentation describing how to triage issues
This document is to help the maintainers on how to traige new issues.

Adding a link to REVIEWING.md in CONTRIBUTING.md

Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2025-04-03 15:31:00 -04:00
openshift-merge-bot[bot] 76eea47fb3
Merge pull request #25743 from kolyshkin/freebsd-golangci-lint
Add freebsd golangci lint run; fix remaining freebsd warnings
2025-04-03 18:30:54 +00:00
Kir Kolyshkin 9d4e820264 Use golangci-lint fmt for pkg/bindings
golangci-lint v2 introduced a new command, fmt, which runs configured
formatters (see formatters in .golangci.yml).

Use this for generated files. Drop separate goimports binary.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-03 10:41:14 -07:00
Kir Kolyshkin 055fc82bd2 Makefile: exclude seccomp build tag for !linux
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-03 10:09:07 -07:00
Kir Kolyshkin a8dd9bc1ed Makefile: use GOOS/NATIVE_GOOS instead of uname -s
Saves a few fork/execs, and unify the code since other places are
already using NATIVE_GOOS or GOOS.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-03 10:08:49 -07:00
Kir Kolyshkin b959ca3577 .cirrus.yml: add golangci-lint cache for freebsd task
This shaves the linting time:
 - from 8 to 2 minutes on Cirrus CI with 4 CPUs and 8 GB RAM;
 - from 11 to 3 minutes on Cirrus CI with 2 CPUs and 4 GB RAM;
when the cache is reused.

The cache size is quite modest (~3MB compressed, ~7MB uncompressed).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-03 09:25:02 -07:00
Kir Kolyshkin c958d5b3ba .cirrus.yml: upsize the freebsd instance
An attempt to speed up golangci-lint.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-03 09:25:02 -07:00
Kir Kolyshkin f18c917ef8 ci: run golangci-lint on freebsd
This could have been done by simply running

	GOOS=freebsd ./bin/golangci-lint run [options] ./...

on Linux, but some freebsd code is using cgo (i.e. is linked to C
libraries), so real freebsd environment is required.

This also fixes the issue of ignoring linter errors for Windows and
Darwin (exit 0), introduced by commit c9b108d5b3.

Fixes: c9b108d5b3 ("Bump golangci-lint to v2.0.2")
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-03 09:24:58 -07:00
openshift-merge-bot[bot] ed6643761e
Merge pull request #25676 from Honny1/override-hc
Fix overwriting the Healthcheck configuration from the image
2025-04-03 15:31:28 +00:00
Jan Rodák b5a1b512c9
Fix overwriting the Healthcheck configuration from the image
If the --health-cmd flag is not specified, other flags such as --health-interval, --health-timeout, --health-retries, and --health-start-period are ignored if the image contains a Healthcheck. This makes it impossible to modify these Healthcheck configuration when a container is created.

Fixes: https://github.com/containers/podman/issues/20212
Fixes: https://issues.redhat.com/browse/RUN-2629

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2025-04-03 15:52:05 +02:00
Paul Holzinger 1f90cc1126
docs: update pasta options description
First, remove wrong sentence that says ports are forwarded dynamically
by default. That is wrong and contradicts what is written below.
Second, document that we also set --dns-forward and --map-guest-addr by
default. And lastly document the containers.conf field so users know
they are not forced to set the options on each command.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-03 15:50:59 +02:00
openshift-merge-bot[bot] 61693432e6
Merge pull request #25732 from kolyshkin/ginkgo
test/tools/vendor: drop ginkgo
2025-04-03 13:21:43 +00:00
openshift-merge-bot[bot] 05640dc0a9
Merge pull request #25772 from kolyshkin/cache-golangci
cirrus: save/restore golangci-lint cache for linux
2025-04-03 13:13:28 +00:00
openshift-merge-bot[bot] e5daf60cf6
Merge pull request #25775 from jankaluza/idmap
Set the IDMappings also when RootfsOverlay is used.
2025-04-03 12:51:36 +00:00
openshift-merge-bot[bot] 1d312653be
Merge pull request #25776 from subrat-lima/docs-introduction
docs: delete the duplicated phrase in introduction page
2025-04-03 12:29:25 +00:00
openshift-merge-bot[bot] ed34015474
Merge pull request #25771 from kolyshkin/install-golangci
Assorted minor fixes to hack/install_golangci.sh
2025-04-03 10:14:29 +00:00
Subrat Lima 64f822f857 docs: delete the duplicated phrase in introduction page
Signed-off-by: Subrat Lima <subrat.k.lima@protonmail.com>
2025-04-03 15:32:45 +05:30
Jan Kaluza 9277643ead Set the IDMappings also when RootfsOverlay is used.
This is related to #23292 and is needed to replace
pause image container with pause container based
on the rootfs.

Without this change, the GIDs and UIDs are not mapped
in the rootfs container which use overlay if --userns=auto
is used. This leads to an error mounting /dev/pts with gid=5,
becuase GID 5 simply does not exist in the pause container
using rootfs.

All the tests pass with this change, but I have to admit
I did not find out why the original code has been introduced.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
2025-04-03 11:55:45 +02:00