Commit Graph

24094 Commits

Author SHA1 Message Date
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
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
openshift-merge-bot[bot]
07683280c8 Merge pull request #24653 from Luap99/win-installer
win-installer test: revert to v5.3.0
2024-11-22 18:20:30 +00:00
Paul Holzinger
916b805f97 win-installer test: revert to v5.3.0
Do not pull from a moving target, use a defined version so updates must
happen in a PR and do not break others.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-11-22 17:35:37 +01:00
openshift-merge-bot[bot]
d85ac938e6 Merge pull request #24442 from Honny1/change-healthcheck-config-via-podman-update
Configure HealthCheck with `podman update`
2024-11-22 15:57:30 +00:00
openshift-merge-bot[bot]
ff9601d383 Merge pull request #24615 from containers/renovate/github.com-containers-buildah-digest
fix(deps): update github.com/containers/buildah digest to 52437ef
2024-11-22 15:13:29 +00:00
openshift-merge-bot[bot]
44601fdd58 Merge pull request #24620 from containers/renovate/github.com-crc-org-crc-v2-2.x
fix(deps): update module github.com/crc-org/crc/v2 to v2.44.0
2024-11-21 16:29:29 +00:00
renovate[bot]
5f907e4850 fix(deps): update module github.com/crc-org/crc/v2 to v2.44.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-21 10:14:26 +00:00
openshift-merge-bot[bot]
60ddddcf44 Merge pull request #24635 from containers/renovate/github.com-onsi-ginkgo-v2-2.x
fix(deps): update module github.com/onsi/ginkgo/v2 to v2.22.0
2024-11-21 10:04:20 +00:00
openshift-merge-bot[bot]
e9e800aacf Merge pull request #24628 from containers/renovate/setuptools-75.x
chore(deps): update dependency setuptools to ~=75.6.0
2024-11-21 10:01:37 +00:00
renovate[bot]
34d63459ba fix(deps): update module github.com/onsi/ginkgo/v2 to v2.22.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-21 04:19:54 +00:00
renovate[bot]
3096681ce3 chore(deps): update dependency setuptools to ~=75.6.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-20 20:27:53 +00:00
openshift-merge-bot[bot]
a6ede195f1 Merge pull request #24624 from l0rd/fix-wsl-auto-install
On Windows avoid installing WSL during an update of Podman
2024-11-20 20:26:56 +00:00
Mario Loriedo
07aaa7832a Update windows installer tests
The windows installer tests are command line / non interactive. To test as much as
possible the GUI / interactive scenario (that is what user do), update tests
need to use the installer with the default options. That's because when using the GUI
for an update, changing options is not possible.

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2024-11-20 13:54:12 +01:00
Mario Loriedo
7162c58ba2 Windows: don't install WSL/HyperV on update
The condition `NOT Installed` had not effect and has been replaced with
`NOT WIX_UPGRADE_DETECTED` that is `true` during installation and
`false` during updates.

The `ExePackage` WSL Kernel Install is also not installed if Podman is
already present.

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2024-11-20 13:47:05 +01:00
Mario Loriedo
c6549fc25b Switch to non-installing WSL by default
The Windows installer GUI has a checkbox to choose if WSL and HyperV
should be installed as part of the installation of Podman. Now, by
default, that checkbox is disabled for both WSL and HyperV.

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2024-11-20 13:43:41 +01:00
renovate[bot]
28305685f6 fix(deps): update github.com/containers/buildah digest to 52437ef
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-20 00:16:19 +00:00
Jan Rodák
a1249425bd Configure HealthCheck with podman update
New flags in a `podman update` can change the configuration of HealthCheck when the container is started, without having to restart or recreate the container.

This can help determine why a given container suddenly started failing HealthCheck without interfering with the services it provides. For example, reconfigure HealthCheck to keep logs longer than the usual last X results, store logs to other destinations, etc.

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

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2024-11-19 19:44:14 +01:00
openshift-merge-bot[bot]
dd97d3e195 Merge pull request #24612 from edsantiago/fix-160
CI: --image-volume test: robustify
2024-11-19 18:21:03 +00:00
Ed Santiago
97ed067d1a CI: --image-volume test: robustify
Test is failing on 1mt because of differences between 'stat'
command output and /proc/mounts. Solution: compare stat %t
(hex filesystem type), not %T (human-readable). This should
match no matter what kernel version or version of stat on
host/container.

Fixes: #24611

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-11-19 10:03:55 -07:00
openshift-merge-bot[bot]
569fefc783 Merge pull request #24561 from containers/renovate/google.golang.org-protobuf-1.x
fix(deps): update module google.golang.org/protobuf to v1.35.2
2024-11-19 14:35:30 +00:00
openshift-merge-bot[bot]
183cf98069 Merge pull request #24565 from mheon/fix_24555
Overlay mounts supersede image volumes & volumes-from
2024-11-19 14:10:46 +00:00
openshift-merge-bot[bot]
1aab8f5fb5 Merge pull request #24607 from Luap99/api-reference
docs: add 5.3 as Reference version
2024-11-19 11:39:31 +00:00
Paul Holzinger
e6e9d2c21c docs: add 5.3 as Reference version
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-11-19 11:31:49 +01:00
openshift-merge-bot[bot]
ec691c7112 Merge pull request #24568 from Luap99/ssh_config
remote: fix ssh_config handling
2024-11-18 18:30:26 +00:00
openshift-merge-bot[bot]
9a66cbf0ea Merge pull request #24596 from edsantiago/bump-systemd
Bump CI VMs
2024-11-18 15:44:45 +00:00
openshift-merge-bot[bot]
1712594493 Merge pull request #24592 from giuseppe/honor-pivot-root-build
libpod: pass down NoPivotRoot to Buildah
2024-11-18 15:02:55 +00:00
Ed Santiago
926b31e053 Bump CI VMs
Get new systemd-257~rc1 on rawhide, see what happens with #24220

Built in : https://github.com/containers/automation_images/pull/394

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-11-18 07:39:35 -07:00
openshift-merge-bot[bot]
e1951772c5 Merge pull request #24578 from Luap99/addHosts-nil-deref
libpod: addHosts() prevent nil deref
2024-11-18 12:59:03 +00:00
openshift-merge-bot[bot]
a132e62be7 Merge pull request #24582 from containers/renovate/github.com-opencontainers-runc-1.x
fix(deps): update module github.com/opencontainers/runc to v1.2.2
2024-11-18 12:12:15 +00:00
Giuseppe Scrivano
e60e11167e libpod: pass down NoPivotRoot to Buildah
Closes: https://github.com/containers/podman/issues/24546

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-11-18 12:41:47 +01:00
Giuseppe Scrivano
d59794992f vendor: bump containers/buildah
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-11-18 12:36:07 +01:00
renovate[bot]
cf2ef12664 fix(deps): update module github.com/opencontainers/runc to v1.2.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-16 04:57:36 +00:00
Matt Heon
61b57b7d7d Overlay mounts supersede image volumes & volumes-from
This matches the behavior of other volume and mount types. Image
volumes and volumes/mounts from the `--volumes-from` flag should
be overridden by actual user-specified named volumes and mounts,
but this was not true for overlay mounts. Fortunately, our
duplicate-mount detection logic still works, so we got a good
error message at least.

The fix is simple - extend our supersede logic, which currently
only works with named volumes and mounts, to also work with
overlay mounts.

Fixes #24555

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-11-15 08:26:16 -05:00
Paul Holzinger
d513973237 libpod: addHosts() prevent nil deref
In theory RootlessNetnsInfo() should never return nil here. However that
was actually only true when the rootless netns was set up before and
wrote the right cache file with the ip addresses.

Given this cache file is a new feature just added in 5.3 if you updated
from 5.2 or earlier the file will not exists thus cause failures for all
following started containers.
The fix for this is to stop all containers and make sure the
rootless-netns was removed so the next start creates it new with the
proper 5.3 cache file. However as there is no way to rely on users doing
that and it is also not requirement so simply handle the nil deref here.

The only way to test this would be to run the old version then the new
version which we cannot really do in CI. We do have upgrade test for
that but they are root only and likely need a lot more work to get them
going rootless but certainly worth to explore to prevent such problems
in the future.

Fixes: a1e6603133 ("libpod: make use of new pasta option from c/common")
Fixes: #24566

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-11-15 13:39:45 +01:00
Paul Holzinger
71f1f52894 only read ssh_config for non machine connections
For machine we know we have all the info we need so there is no reason
to read and parse another file.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-11-14 18:29:22 +01:00
Paul Holzinger
cbb2820a7e ssh_config: allow IdentityFile file with tilde
The ssh_config can contain a path with ~/ to refer to the home dir like
done on shells. Handle that special case and resolve the path correctly
so it can be used.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-11-14 18:26:55 +01:00
Paul Holzinger
a7120b50b1 ssh_config: do not overwrite values from config file
When we alreadty get a full URL with user, port and identity then we
should not read the config file just to overwrite them with wrong
values. This is a bad regression for user using * wildcard in their
ssh_config as it makes podman machine unusable.

Fixes: #24567
Fixes: e523734ab6 ("Add support for ssh_config for connection")

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-11-14 18:26:33 +01:00
Paul Holzinger
8a5ec2c505 connection: ignore errors when parsing ssh_config
The new ssh_Config feature doesn't work on my system because the lib
fails to parse configs using Match[1]. However Fedora and RHEL based
distros seem to ship /etc/ssh/ssh_config.d/50-redhat.conf which contains
a Match line thus it always fails to parse and never uses the proper
values from my home dir config.

[1] https://github.com/kevinburke/ssh_config/issues/6

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-11-14 16:17:50 +01:00
openshift-merge-bot[bot]
777a99762c Merge pull request #24563 from slp/update-krunkit-0.1.4
Bump bundled krunkit to 0.1.4
2024-11-14 15:02:32 +00:00
Sergio Lopez
7b41e28b95 Bump bundled krunkit to 0.1.4
Bump the bundled krunkit version from 0.1.3 to 0.1.4.

Fixes: #24559

Signed-off-by: Sergio Lopez <slp@redhat.com>
2024-11-14 15:38:11 +01:00
renovate[bot]
2e22ab3bcd fix(deps): update module google.golang.org/protobuf to v1.35.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-14 11:27:23 +00:00
openshift-merge-bot[bot]
5dbb567db6 Merge pull request #24321 from gaufde/main
Fix for podman machine init not creating necessary JSON file when an ignition-path is passed
2024-11-14 11:25:16 +00:00
openshift-merge-bot[bot]
fa5e3b6e94 Merge pull request #24535 from M1cha/network-driver-options
add support for driver-specific options during container creation
2024-11-14 09:29:44 +00:00
openshift-merge-bot[bot]
ecaf9bf515 Merge pull request #24525 from Luap99/lint
update golangci-lint to v1.62.0
2024-11-13 21:47:38 +00:00
Michael Zimmermann
315e7412e8 add support for driver-specific options during container creation
This way has a huge disadvantage: The user will not see an error when he
uses a non-existent option. Another disadvantage is, that if we add more
options within podman, they might collide with the names chosen by
plugins. Such issues might be hard to debug.
The advantage is that the usage is very nice:
--network bridge:opt1=val1,opt2=val2.

Alternatively, we could put this behind `opt=`, which is harder to use,
but would solve all issues above:
--network bridge:opt=opt1=val1,opt=opt2=val2

Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
2024-11-13 18:14:58 +01:00
openshift-merge-bot[bot]
c348367453 Merge pull request #24491 from lsm5/main-540-bump
[CI:ALL] Bump main to v5.4.0-dev
2024-11-13 17:14:31 +00:00
openshift-merge-bot[bot]
a52061cba1 Merge pull request #24552 from M5oul/main
doc: fix words repetitions
2024-11-13 17:00:46 +00:00
Maël Azimi
6809bf1d90 doc: fix words repetitions
Signed-off-by: Maël Azimi <mael.azimi@moul.re>
2024-11-13 15:21:40 +01:00