Commit graph

23873 commits

Author SHA1 Message Date
Christophe Fergeau
d305e70af8
applehv: Print vfkit logs in --log-level debug
There has been various issues with vfkit exiting with
"Error: vfkit exited unexpectedly with exit code 1"

Among other reasons, this can be caused by vfkit being
built without the com.apple.security.virtualization
entitlement, and this can also happen when running
vfkit.x86_64 on Apple silicon hardware.

At the moment, the vfkit logs are not available, so there is no easy way
to know what's happening. This PR redirects vfkit stdout/stderr to
podman's log when --log-level debug is used.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
2024-03-27 09:59:31 +01:00
Brent Baude
23bf357fc3 [CI:DOCS]Add Mario to reviewers list
Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-03-26 15:59:31 -05:00
openshift-merge-bot[bot]
52a64aa9dc
Merge pull request #22073 from cevich/add_golang121_warning
[CI:BUILD] Add golang 1.21 update warning
2024-03-26 19:58:10 +00:00
openshift-merge-bot[bot]
73fdbf2fcc
Merge pull request #22180 from cevich/maintenance_ci_note
[CI:DOCS] Document CI-maintenance job addition
2024-03-26 19:47:09 +00:00
Chris Evich
c8e1e0034a
[CI:DOCS] Document CI-maintenance job addition
This process is easy/quick to do but critically important.  It ensures
that CI will always remain available in the event a CVE (or otherwise)
backport is required.  These jobs are all actively monitored daily, and
their execution ensures the CI VM images are forever preserved.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-03-26 15:16:28 -04:00
Chris Evich
48b8d7f8be
Add golang 1.21 update warning
This is needed on the off-chance that some tool or a human suggests
updating the minimum version to 1.21 or later. Since doing so would
cause Fedora and Debian to start behaving differently WRT builds.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-03-26 14:40:57 -04:00
openshift-merge-bot[bot]
25ebf10967
Merge pull request #22177 from mheon/fix_22172
Add rootless network command to `podman info`
2024-03-26 17:15:53 +00:00
openshift-merge-bot[bot]
5c39ddca5d
Merge pull request #22140 from baude/hypervrmf
hyperv: fix machine rm -r
2024-03-26 14:03:24 +00:00
Matt Heon
b56331cd2f Add rootless network command to podman info
Useful to tell whether containers are being made with pasta or
slirp4netns by default. Info is bloated enough already that I
don't really have concerns about shoving more into it.

Fixes #22172

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-03-26 09:56:48 -04:00
openshift-merge-bot[bot]
83903eb107
Merge pull request #22160 from ubergeek42/fix-stderr-parsing
Properly parse stderr when updating container status
2024-03-26 13:08:22 +00:00
openshift-merge-bot[bot]
ecdc3d255b
Merge pull request #22161 from baude/hypervrequireadmin
hyperv: error if not admin
2024-03-26 12:27:09 +00:00
openshift-merge-bot[bot]
fdc4901e7d
Merge pull request #22154 from dfr/cgroups-unsupported
libpod: don't warn about cgroupsv1 on FreeBSD
2024-03-26 12:10:54 +00:00
openshift-merge-bot[bot]
e64d81481d
Merge pull request #22124 from diplane/annotations
Add support for annotations
2024-03-25 18:37:24 +00:00
openshift-merge-bot[bot]
5f5cd60a89
Merge pull request #22106 from containers/renovate/common-image-and-storage-deps
fix(deps): update github.com/containers/common digest to bc5f97c
2024-03-25 18:29:11 +00:00
openshift-merge-bot[bot]
099978ebca
Merge pull request #22150 from n1hility/pref-builtin-ssh
Use built-in ssh impl for all non-pty operations
2024-03-25 18:18:11 +00:00
Doug Rabson
80e2bc6966 libpod: don't warn about cgroupsv1 on FreeBSD
This factors out the check for cgroupsv2 unified mode into a
platform-specific file and stops podman from generating a (harmless)
warning every time it is run on FreeBSD.

[NO NEW TESTS NEEDED]

Signed-off-by: Doug Rabson <dfr@rabson.org>
2024-03-25 17:02:03 +00:00
Brent Baude
c62c74970f hyperv: error if not admin
creating vsocks in windows requires admin privileges.  there could be
some workarounds made in the future,but the general deal has
always been, you need to be admin.  lets enforce this with an error
until those work-arounds can be implemented.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-03-25 10:47:57 -05:00
Keith Johnson
83671f95d8 Properly parse stderr when updating container status
I believe the previous code meant to use cmd.Run instead of cmd.Start.
The issue is that cmd.Start returns before the command has finished
executing, so the conditional body checking for the stderr of the
command never gets executed.

Raise the cmd.Start up into it's own conditional, which is checking for
whether the process could be started. Then we consume stderr, check for
some specific strings in the output, and then finally continue on with
the rest of the code.

Signed-off-by: Keith Johnson <kj@ubergeek42.com>
2024-03-25 10:15:23 -04:00
Lokesh Mandvekar
492f0b7c5f
[skip-ci] Packit: specify fedora-latest in propose-downstream
The packit alias `fedora-latest` points to the latest branched version
(regardless if released or not).

So, this configuration should work without issues through Fedora 40
release and should account for all branches until Fedora 41 release.

Ref: https://packit.dev/docs/configuration#aliases

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2024-03-25 15:50:06 +05:30
Jason T. Greene
11415b3e74 Use built-in ssh impl for all non-pty operations
Windows is not guaranteed to have the SSH feature installed, so prefer the use
of the built-in ssh client for all operations other than podman machine ssh,
which requires terminal pty logic. This restores previous behavior in 4.x.

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2024-03-24 21:25:22 -05:00
openshift-merge-bot[bot]
2aad385b51
Merge pull request #22131 from availhang/main
chore: remove repetitive words
2024-03-22 20:24:16 +00:00
openshift-merge-bot[bot]
4248d2f3e5
Merge pull request #22135 from Luap99/release-notes-5.0-env
[CI:DOCS] 5.0 release note fix typo in cgroupv1 env var
2024-03-22 19:50:56 +00:00
openshift-merge-bot[bot]
d42a400373
Merge pull request #22133 from Luap99/remote-buildah-isolation-client
fix remote build isolation on client side
2024-03-22 19:48:14 +00:00
diplane
83fe867c14 Add support for annotations
Fix following issues:
- create container API handler ignores Annotations from HostConfig
- inspect container API handler does not provide Annotations as
  part of HostConfig

Signed-off-by: diplane <diplane3d@gmail.com>
2024-03-22 19:38:22 +00:00
Brent Baude
a6ffb5656f hyperv: fix machine rm -r
this pr fixes two hyperv bugs.  previous podman 5 versions of hyperv
failed to actually remove the vm from hyperv when machine rm -f was
called.

also fixes an annoying bug where removal of the hyperv ignition entries
were failing because this can only be done (with the current api) when
the vm is running.  new api in latest libhvee fixes this.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-03-22 11:09:17 -05:00
Lokesh Mandvekar
f632663f26
[skip-ci] Packit: Enable CentOS Stream 10 update job
Packit now has recently added support to enable downstream PR updates to
CentOS Stream packages.
Ref:
https://packit.dev/docs/configuration/upstream/propose_downstream#syncing-the-release-to-centos-stream

CentOS Stream support is still in its early stages but this change
should be safe to add to upstream packit config.

Whenever there's a new Podman release, the rpm maintainer would need to
run `packit propose-downstream` using the packit CLI (not github
comment) to actually create the downstream update PR.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2024-03-22 20:31:01 +05:30
Paul Holzinger
3c611c47e4
5.0 release note fix typo in cgroupv1 env var
The cgroupv1 warning uses PODMAN_IGNORE_CGROUPSV1_WARNING in the code
while the text says PODMAN_CGROUPSV1_WARNING.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-22 15:09:02 +01:00
openshift-merge-bot[bot]
4f76c7a0c7
Merge pull request #22120 from garthy/dont_stage_tarfile
Dont save remote build context in temp file but stream and extract
2024-03-22 13:34:11 +00:00
Paul Holzinger
3a9968ef81
fix remote build isolation on client side
Follow up to 493179be45 which only fixed the issue on the server despite
me trying to fix it on the client as well, with this change here we
always correctly unset the default on the remote client as the
root/rootless status will be wrong.

This means it is enough for users to either have a new server or client
with the bug fix which should make the update process easier.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-22 11:49:47 +01:00
availhang
17aa152459 chore: remove repetitive words
Signed-off-by: availhang <mayangang@outlook.com>
2024-03-22 15:11:29 +08:00
Garth Bushell
b2d0b92db2 Dont save remote context in temp file but stream and extract
Signed-off-by: Garth Bushell <garth@garthy.com>
2024-03-21 15:39:01 +00:00
openshift-merge-bot[bot]
aaa6dc3cc6
Merge pull request #22112 from Luap99/remote-buildah-isolation
fix remote build isolation when server runs as root
2024-03-21 15:34:12 +00:00
openshift-merge-bot[bot]
fcdff471da
Merge pull request #22054 from lsm5/main-bump-510-dev
bump main to 5.1.0-dev
2024-03-21 13:24:56 +00:00
Paul Holzinger
493179be45
fix remote build isolation when server runs as root
I am really not sure why the caller even should have the option to set
this. We should always use the correct isolation type based on the
privileges the server runs under never the client. podman-remote build
seems to send the default based on its local privs which was wrong as
well. To fix this I also changed the client to send the default if the
isolation flag is not set.

Fixes #22109

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-21 14:17:55 +01:00
openshift-merge-bot[bot]
b21ef16555
Merge pull request #22110 from giuseppe/fix-default-propagation-for-bind
util: use private propagation with bind
2024-03-21 12:38:11 +00:00
Giuseppe Scrivano
4740367330
util: use private propagation with bind
when the "bind" option is used, do not use the "rprivate" propagation
as it would inhibit the effect of "bind", instead default to "private".

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-03-21 11:33:58 +01:00
Giuseppe Scrivano
9a13b8f17d
util: add some tests for ProcessOptions
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-03-21 11:33:57 +01:00
Giuseppe Scrivano
50d764b0e6
util: refactor ProcessOptions into an internal function
this is needed to add tests for the function without accessing the
file system.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-03-21 11:33:02 +01:00
Giuseppe Scrivano
49ab250cf9
util: rename files to snake case
use the same convention used for other files.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-03-21 11:33:02 +01:00
openshift-merge-bot[bot]
8241cd0e59
Merge pull request #21481 from loongson-zjl/main
Add LoongArch support for libpod
2024-03-21 09:06:24 +00:00
JiaLing Zhang
c03256e23c Add LoongArch support for libpod
Change Makefile.

[NO NEW TESTS NEEDED]

Signed-off-by: JiaLing Zhang <zhangjialing@loongson.cn>
2024-03-21 15:56:25 +08:00
openshift-merge-bot[bot]
b3ce94b1d7
Merge pull request #22104 from containers/renovate/golangci-golangci-lint-1.x
[CI:DOCS] Update dependency golangci/golangci-lint to v1.57.1
2024-03-21 07:19:10 +00:00
renovate[bot]
f2073ca397
fix(deps): update github.com/containers/common digest to bc5f97c
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-21 00:25:22 +00:00
openshift-merge-bot[bot]
68453daf65
Merge pull request #22100 from containers/renovate/go-github.com/docker/docker-vulnerability
fix(deps): update module github.com/docker/docker to v25.0.5+incompatible [security]
2024-03-20 21:10:25 +00:00
renovate[bot]
5e017a87a0
[CI:DOCS] Update dependency golangci/golangci-lint to v1.57.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 21:08:23 +00:00
openshift-merge-bot[bot]
7ccf4d22d6
Merge pull request #22099 from containers/renovate/github.com-onsi-gomega-1.x
fix(deps): update module github.com/onsi/gomega to v1.32.0
2024-03-20 21:07:40 +00:00
renovate[bot]
5fe1945e41
fix(deps): update module github.com/docker/docker to v25.0.5+incompatible [security]
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 18:40:45 +00:00
renovate[bot]
77c4cb5721
fix(deps): update module github.com/onsi/gomega to v1.32.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 16:32:58 +00:00
openshift-merge-bot[bot]
4e77baec60
Merge pull request #22098 from containers/renovate/golangci-golangci-lint-1.x
[CI:DOCS] Update dependency golangci/golangci-lint to v1.57.0
2024-03-20 16:29:57 +00:00
renovate[bot]
c66400f624
[CI:DOCS] Update dependency golangci/golangci-lint to v1.57.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 15:54:55 +00:00