1
0
mirror of https://github.com/containers/podman.git synced 2026-02-05 06:45:31 +01:00
Commit Graph

26577 Commits

Author SHA1 Message Date
Paul Holzinger
19aba793c0 remove dep on github.com/containers/conmon
We use only for a single const so inline that and use a better variable
name.

The main reason is the latest version of conmon removed that go code so
the update of it will be broken.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-01-30 12:51:50 +01:00
Paul Holzinger
d1ebf848a8 Merge pull request #27985 from containers/renovate/major-github-artifact-actions
[skip-ci] Update GitHub Artifact Actions (major)
2026-01-29 18:32:03 +01:00
renovate[bot]
07ab42eed5 [skip-ci] Update GitHub Artifact Actions
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-29 14:05:32 +00:00
Paul Holzinger
dee7350235 Merge pull request #27978 from containers/renovate/google.golang.org-grpc-1.x
fix(deps): update module google.golang.org/grpc to v1.78.0
2026-01-29 15:04:29 +01:00
renovate[bot]
1bff1ad004 fix(deps): update module google.golang.org/grpc to v1.78.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-28 20:49:14 +00:00
Matt Heon
a5e55f5129 Merge pull request #27975 from containers/renovate/golang.org-x-net-0.x
fix(deps): update module golang.org/x/net to v0.49.0
2026-01-28 15:46:59 -05:00
Brent Baude
3d4f25e6d3 Merge pull request #27936 from inknos/get-exists-quadlet-api
Add GET /quadlets/{name}/exists
2026-01-28 10:58:46 -06:00
Brent Baude
5f7ebe60ea Merge pull request #27973 from cuiweixie/typo
typo: resouceNames to resourceNames
2026-01-28 10:37:08 -06:00
renovate[bot]
d9b42515da fix(deps): update module golang.org/x/net to v0.49.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-28 16:31:38 +00:00
Paul Holzinger
7aa42c81b1 Merge pull request #27974 from containers/renovate/github.com-coreos-go-systemd-v22-22.x
fix(deps): update module github.com/coreos/go-systemd/v22 to v22.7.0
2026-01-28 17:29:47 +01:00
Brent Baude
b60d234da4 Merge pull request #27827 from lsm5/podman6-no-cni
Podman6: Remove CNI
2026-01-28 10:20:56 -06:00
renovate[bot]
3be0eb8b40 fix(deps): update module github.com/coreos/go-systemd/v22 to v22.7.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-28 14:50:23 +00:00
Paul Holzinger
963d025612 Merge pull request #27972 from containers/renovate/setuptools-80.x
chore(deps): update dependency setuptools to ~=80.10.2
2026-01-28 15:48:18 +01:00
Weixie Cui
27d0f5fff6 typo: resouceNames to resourceNames
Signed-off-by: Weixie Cui <cuiweixie@gmail.com>
2026-01-28 20:31:13 +08:00
Paul Holzinger
a983a8610a Merge pull request #27968 from chawyehsu/patch-1
chore(machine): remove unused EvalSymlinksOrClean function and tests
2026-01-28 13:12:30 +01:00
renovate[bot]
568f9645c5 chore(deps): update dependency setuptools to ~=80.10.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-28 11:40:39 +00:00
Paul Holzinger
81d09fc6b5 Merge pull request #27969 from containers/renovate/zizmorcore-zizmor-action-0.x
[skip-ci] Update zizmorcore/zizmor-action action to v0.4.1
2026-01-28 12:39:39 +01:00
renovate[bot]
0c04f53374 [skip-ci] Update zizmorcore/zizmor-action action to v0.4.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-27 22:32:18 +00:00
Brent Baude
fe00b4c857 Merge pull request #27966 from containers/renovate/github.com-rootless-containers-rootlesskit-v2-2.x
fix(deps): update module github.com/rootless-containers/rootlesskit/v2 to v2.3.6
2026-01-27 16:31:10 -06:00
Chawye Hsu
ce568f75dc chore(machine): remove unused EvalSymlinksOrClean function and tests
Related to https://github.com/containers/container-libs/pull/612

Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
2026-01-28 02:42:45 +08:00
renovate[bot]
36d4c7c696 fix(deps): update module github.com/rootless-containers/rootlesskit/v2 to v2.3.6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-27 16:16:07 +00:00
Paul Holzinger
b54a783165 Merge pull request #27963 from containers/renovate/actions-checkout-6.x
[skip-ci] Update actions/checkout action to v6.0.2
2026-01-27 17:13:51 +01:00
Nicola Sella
eb0c4716d3 Add GET /quadlets/{name}/exists
Fixes: https://issues.redhat.com/browse/RUN-4068

Signed-off-by: Nicola Sella <nsella@redhat.com>
2026-01-27 16:10:56 +01:00
Paul Holzinger
a6a6ac72c4 Merge pull request #27962 from l0rd/fix-multi-line-in-ps1
Fix PowerShell `Write-Error` multi-line argument
2026-01-27 16:05:30 +01:00
renovate[bot]
7331ccbc16 [skip-ci] Update actions/checkout action to v6.0.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-27 14:52:22 +00:00
Ashley Cui
443c0797ff Merge pull request #27900 from baude/issue408vendor
Vendor common test for artifact digest lookup
2026-01-27 09:51:07 -05:00
Mario Loriedo
f71465a025 Fix PowerShell Write-Error multi-line argument
This is a follow-up of d04c84e7 and fixes the error message that is
displayed if someone tries to run `contrib/win-installer/build.ps1` but
doesn't have the .NET SDK installed.

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2026-01-27 15:06:51 +01:00
Paul Holzinger
990733c32f Merge pull request #27925 from afbjorklund/validatepr-architecture
Set architecture for validatepr builds
2026-01-27 12:54:35 +01:00
Lokesh Mandvekar
721e889476 Update tutorial documentation to remove CNI references
Remove CNI migration instructions and backend selection guidance
from the basic networking tutorial. Simplify DHCP configuration
section to only document netavark setup, removing CNI-specific
instructions.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2026-01-27 16:32:38 +05:30
Lokesh Mandvekar
7ebb95a3bf Update man page documentation to remove CNI references
Removed all CNI-specific documentation from man pages:

- podman.1.md: Simplified --network-config-dir to only mention
  netavark directories
- podman-network.1.md: Removed dual backend description, now states
  netavark is the only backend
- podman-network-create.1.md: Removed CNI-specific notes about DNS
  and DHCP socket configuration
- podman-network-connect.1.md: Removed CNI limitation note about
  network aliases
- options/network-alias.md: Removed CNI limitation note about
  network aliases
- podman-info.1.md: Updated example output to show netavark backend
  information instead of CNI

All man pages now reflect netavark as the sole network backend.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2026-01-27 16:32:38 +05:30
Lokesh Mandvekar
454167efa9 Remove CNI-specific code paths from libpod
Remove CNI-specific conditional logic and update comments throughout
the libpod networking code:

- Simplified DNS configuration logic in container_internal_common.go
  to always use netavark behavior (removed backend checks)
- Removed CNI-specific iptables chain error regex pattern
- Updated all comments referencing 'CNI' to use 'netavark' or
  'network backend'
- Renamed variable 'cniNet' to 'netInfo' for clarity
- Updated field and type documentation to remove CNI references

All networking code now assumes netavark as the sole backend.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2026-01-27 16:32:38 +05:30
Lokesh Mandvekar
f6bddc8af2 Remove CNI backend configuration from runtime
Remove runtime configuration options for CNI network backend:

Runtime options:
- Remove WithNetworkBackend() runtime option function
- Function allowed setting network backend programmatically

Flag handling:
- Remove --network-backend flag change detection
- Remove call to WithNetworkBackend() when flag changed
- Remove TODO comment about CNI plugins directory flag

The network backend configuration is now handled entirely by the
vendored common/libnetwork code, which will default to Netavark.
There is no longer any way to configure CNI as the network backend
through Podman's runtime initialization.

Note: libpod/info.go keeps existing NetworkBackend reporting logic
which will automatically report "netavark" as the only backend since
configuration defaults to netavark and cannot be changed to CNI.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2026-01-27 16:32:38 +05:30
Lokesh Mandvekar
73ef7cfcdc Remove CNI backend from CLI options and completions
Remove user-facing CLI options for CNI network backend:

CLI flags:
- Keep --network-backend global flag as hidden and deprecated for
  backward compatibility with cleanup commands from 5.x containers
- Map flag to a throwaway variable (value is ignored)
- Remove shell completion for network backend values

Shell completions:
- Remove AutocompleteNetworkBackend() function
- Remove references to CNI and Netavark type constants

Backward compatibility:
- Remove --rootless-cni flag alias for podman unshare
- Remove SetNormalizeFunc that mapped rootless-cni to rootless-netns
- Update --rootless-netns flag description to mention only netavark

The --network-backend flag remains as a hidden deprecated flag to
prevent failures when upgrading from 5.x where containers may have
cleanup commands that include this flag. The flag is accepted but
ignored. Users can no longer specify CNI as a network backend option.
The --rootless-cni alias is removed; users must use --rootless-netns.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2026-01-27 16:32:38 +05:30
Lokesh Mandvekar
83ffeb1b26 Remove test infrastructure for CNI/Netavark backend selection
Remove test framework code that supported dual network backends:

Test utilities:
- Remove NetworkBackend enum type and constants (CNI, Netavark)
- Remove NetworkBackend.ToString() method
- Remove NetworkBackend field from PodmanTest struct

Test infrastructure:
- Remove SkipIfCNI() helper function
- Remove SkipIfNetavark() helper function
- Remove network backend selection logic based on NETWORK_BACKEND env var
- Remove CNI-specific network config directory setup
- Hardcode "netavark" in podman command line construction (flag will be removed in later commit)

Simplify test helpers:
- Simplify generateNetworkConfig() to only generate Netavark configs
- Remove conditional CNI vs Netavark network ID logic
- Update IP allocation comment to remove CNI-specific behavior description

Remove SkipIfCNI() calls from tests:
- Remove skip guards from Netavark-only feature tests
- These tests now run universally since Netavark is the only backend

Documentation:
- Remove NETWORK_BACKEND environment variable from test/README.md

All tests that were previously skipped with SkipIfCNI (Netavark-only
features) will now run for all users since Netavark is the only
supported network backend.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2026-01-27 16:32:38 +05:30
Lokesh Mandvekar
858cb58c90 Remove CNI-specific test cases
Remove test cases that only tested CNI-specific functionality:
- Remove "podman --cni-config-dir backwards compat" test
- Remove "podman CNI network create with internal should not have dnsname" test

Update CNI-specific test names to be network-backend agnostic:
- Rename "podman inspect container single CNI network" to "podman inspect container single network"
- Rename "podman inspect container two CNI networks (container not running)" to "podman inspect container two networks (container not running)"
- Rename "podman inspect container two CNI networks" to "podman inspect container two networks"
- Rename "podman run in custom CNI network with --static-ip" to "podman run in custom network with --static-ip"
- Rename "podman rootless cni adds /usr/sbin to PATH" to "podman rootless adds /usr/sbin to PATH"

Update test content to be backend-agnostic:
- Update skip reasons from "Requires root CNI networking" to "Requires root networking"
- Change --rootless-cni flag usage to --rootless-netns
- Update comments from "CNI network" to "network"
- Update comments from "iptables" to "nftables" for netavark
- Update test assertions to remove CNI-specific messaging

Remove CNI-related test documentation and comments:
- Remove commented-out CNI error messages from Python API tests
- Remove CNI network namespace error documentation from upgrade tests
- Remove CNI-related comments from BATS tests

Remove unused import of github.com/containernetworking/plugins/pkg/ns
from test/e2e/run_networking_test.go (test-only usage).

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2026-01-27 16:32:38 +05:30
Mario Loriedo
94f5c3b201 Merge pull request #27956 from jeffmaury/GH-27955
fix: generate correct error message if Wix is not installed
2026-01-27 11:48:21 +01:00
Brent Baude
2d67bf3b0a Vendor common test for artifact digest lookup
Vendor latest common with artifact changes

Signed-off-by: Brent Baude <bbaude@redhat.com>
2026-01-26 15:45:56 -06:00
Jeff MAURY
d04c84e783 fix: generate correct error message if Wix is not installed
Fixes #27955

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
2026-01-26 14:11:35 +01:00
Paul Holzinger
1af4caf888 Merge pull request #26934 from kolyshkin/fix-ci
test/e2e: fix 'block all syscalls' seccomp for runc
2026-01-23 13:18:33 +01:00
Paul Holzinger
c4128cbc40 Merge pull request #27880 from giuseppe/drop-pause-process
rootless: use nsfs file handles to persist namespaces
2026-01-23 13:15:56 +01:00
Ashley Cui
7531822efe Merge pull request #27931 from lstocchi/ign
fix hyperv ignition cleanup and error handling
2026-01-22 11:40:15 -05:00
lstocchi
cfa1b51775 fix hyperv ignition cleanup and error handling
this fixes two bugs in Hyper-V VM ignition handling:

1. Changed `err := readAndSplitIgnition()` to
`err = readAndSplitIgnition()` so the deferred cleanup function can
properly detect errors and clean up ignition
2. The function was trying to remove keys with pattern `vm.ElementName + index`, but
the actual keys were created using `"ignition.config." + index` pattern.

It also improve the deletion by calculating in how many parts the ignition file is splitted when being added in the registry and delete just them instead of blidnly iterating through 0-50.

Signed-off-by: lstocchi <lstocchi@redhat.com>
2026-01-21 15:50:17 +01:00
Giuseppe Scrivano
f172ff789b rootless: use nsfs file handles to persist namespaces
use name_to_handle_at and open_by_handle_at to persist rootless
namespaces without needing a pause process.

The namespace file handles are stored in a file and can be used to
rejoin the namespaces, as long as the namespaces still exist.

Fall back to the pause process approach only when the kernel doesn't
support nsfs handles (EOPNOTSUPP).

The feature is currently only enabled when the PODMAN_NO_PAUSE_PROCESS
environment variable is set.

These changes in the kernel are required (landed in Linux 6.18):

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3ab378cfa793

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2026-01-20 18:41:59 +01:00
Paul Holzinger
95230cb315 Merge pull request #27928 from kairosci/fix/27908-restart-service-description
systemd: update podman-restart.service description
2026-01-20 12:06:15 +01:00
Anders F Björklund
ea01acf325 Set architecture for validatepr builds
It was failing on darwin, because amd64 is no longer supported.

"build constraints exclude all Go files" in pkg/machine/libkrun

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
2026-01-20 07:32:54 +01:00
Alessio Attilio
f0dd315bdf systemd: update podman-restart.service description
Update the service description to reflect that it now also restarts
containers with unless-stopped restart policy, not just always.

This was changed in PR #27619 but the description was not updated.

Fixes: #27908
Signed-off-by: Alessio Attilio <attilio.alessio@protonmail.com>
2026-01-19 23:38:35 +01:00
Paul Holzinger
0c436c40ae Merge pull request #27915 from afbjorklund/compat-version
Bump Compat API version to supported v1.44
2026-01-19 17:51:43 +01:00
Matt Heon
e2189376b5 Merge pull request #27919 from kairosci/fix/27858-volume-mount-empty-path
libpod: fix Volume.Mount() returning empty path for plugin volumes
2026-01-19 11:08:26 -05:00
Paul Holzinger
ff0724109d Merge pull request #27872 from containers/renovate/github.com-crc-org-vfkit-0.x
Update module github.com/crc-org/vfkit to v0.6.3
2026-01-19 15:58:34 +01:00
Alessio Attilio
6c1d8f5d76 libpod: fix Volume.Mount() returning empty path for plugin volumes
Fixes: #27858
Signed-off-by: Alessio Attilio <attilio.alessio@protonmail.com>
2026-01-19 14:54:27 +01:00