Commit graph

21017 commits

Author SHA1 Message Date
Ashley Cui
c0b91bdf20 Release notes for v4.9.1
Signed-off-by: Ashley Cui <acui@redhat.com>
2024-01-31 13:48:20 -05:00
openshift-merge-bot[bot]
9e76ea1095
Merge pull request #21456 from TomSweeneyRedHat/dev/tsweeney/b_1_33_4
[v4.9] Bump Buildah to v1.33.4, c/common v0.57.3, c/image v5.29.2
2024-01-31 17:06:45 +00:00
openshift-merge-bot[bot]
c6711d894c
Merge pull request #21452 from openshift-cherrypick-robot/cherry-pick-21445-to-v4.9
[v4.9] pkginstaller: bump Qemu version to 8.2.1
2024-01-31 14:33:01 +00:00
tomsweeneyredhat
bc938f481f [v4.9] Bump Buildah to v1.33.4, c/common v0.57.3, c/image v5.29.2
In preparation for RHEL 4.9.1, Bump Buildah to v1.33.4
This will also bump c/image to v5.29.2 and c/common to v0.57.3

This fixes a Docker Daemon version compatibility problem.

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2024-01-31 08:55:41 -05:00
Anjan Nath
06bd1e0cf1 pkginstaller: bump Qemu version to 8.2.1
this updates the Makefile qemu version to use the qemu
8.2.1 build released at:
https://github.com/containers/podman-machine-qemu/releases/tag/v8.2.1-1

[NO NEW TESTS NEEDED]

Signed-off-by: Anjan Nath <kaludios@gmail.com>
2024-01-31 03:30:16 +00:00
openshift-merge-bot[bot]
a6690f23e7
Merge pull request #21437 from openshift-cherrypick-robot/cherry-pick-21264-to-v4.9
[v4.9] applehv: return socket path from setupAPIForwarding
2024-01-31 00:49:57 +00:00
openshift-merge-bot[bot]
009c7b0052
Merge pull request #21438 from ashley-cui/backports
[v4.9] AppleHV Backports
2024-01-30 21:18:16 +00:00
Ashley Cui
50cf646ff6 Assign separate ports for each appleHV machine
Previously, every machine created using appleHV interacted with VFKit using port 8081. This meant that if multiple machines existed on the machine, starting one would start all the machines. This patch assigns a separate random port for each machine, so machine commands interact with just the specified machine.

Signed-off-by: Ashley Cui <acui@redhat.com>
2024-01-30 13:18:30 -05:00
openshift-merge-bot[bot]
db361c4262
Merge pull request #21436 from giuseppe/4.9-drop-check-is-rootless
[v4.9] abi: drop check for IsRootless()
2024-01-30 18:11:15 +00:00
openshift-merge-bot[bot]
2546a2d425
Merge pull request #21430 from openshift-cherrypick-robot/cherry-pick-21230-to-v4.9
[v4.9] Fix `podman machine set --rootful` for applehv
2024-01-30 16:48:46 +00:00
openshift-merge-bot[bot]
00126f8010
Merge pull request #21429 from openshift-cherrypick-robot/cherry-pick-21114-to-v4.9
[v4.9] applehv - fix vm lookup
2024-01-30 16:46:02 +00:00
Ashley Cui
6bcdad102f Fix machine inspect test config
Signed-off-by: Ashley Cui <acui@redhat.com>
2024-01-30 10:26:06 -05:00
Ashley Cui
13729859c7 AppleHV: update LastUp time
LastUp now correctly reports the lastUp time for podman machine on
AppleHV, for both inspect and list.

[NO NEW TESTS NEEDED]
since this fixes an existing failing test.

Signed-off-by: Ashley Cui <acui@redhat.com>
2024-01-30 10:25:45 -05:00
Christophe Fergeau
574587e8d2 applehv: return socket path from setupAPIForwarding
When starting podman machine with applehv, this warning is printed:
WARN[0025] API socket failed ping test

This is due to a bug in applehv.setupAPIForwarding which is not
returning the path to the socket, which causes `WaitAndPingAPI` to be
called with `""` as the socket path, triggering the warning.

This commit changes setupAPIForwarding to be similar to the
implementation in the other machine implementations.

I don't know how to add a test for this, but this can be handled in
podman-machine end to end tests by making sure that there are no
warnings when running `podman machine start` with applehv.

[NO NEW TESTS NEEDED]

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
2024-01-30 15:15:57 +00:00
Christophe Fergeau
6b3855355d applehv: Remove unneeded cmd.ExtraFiles assignment
`applehv.Start()` has this line of code:
```
cmd.ExtraFiles = []*os.File{ioEater, ioEater, ioEater}
```
whose purpose is not clear.

The intent may have been to redirect stdin/stdout/stderr to /dev/null in
the child process.
This should be done by setting cmd.Stdin/cmd.Stdout/cmd/Stderr to nil,
which is the case by default.

The way it's done could also cause issues as
`Vfkit.VirtualMachine.Cmd()` sometimes adds files it needs to keep open
to `ExtraFiles`, so at the very least this should be an `append()`

This commit removes this code.

[NO NEW TESTS NEEDED]

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
2024-01-30 15:15:57 +00:00
openshift-merge-bot[bot]
96e2b96f6e
Merge pull request #21433 from openshift-cherrypick-robot/cherry-pick-20769-to-v4.9
[v4.9] system: enhance check for re-exec into rootless userns
2024-01-30 15:07:02 +00:00
Giuseppe Scrivano
c6d198e443
abi: drop check for IsRootless()
it is the wrong check to do here since we need to setup the user
namespace even in the case we are running as root without
capabilities.

[NO NEW TESTS NEEDED] this happens in nested podman

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit 1322f3193b)
2024-01-30 15:59:31 +01:00
Giuseppe Scrivano
b2d22610b5
system: enhance check for re-exec into rootless userns
Previously, the setup only checked for the CAP_SYS_ADMIN capability,
which could be not enough with containerized Podman where
CAP_SYS_ADMIN might be set for an unprivileged user.

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

[NO NEW TESTS NEEDED] needs containerized Podman

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit 41a6b992aa)
2024-01-30 15:57:56 +01:00
Giuseppe Scrivano
b3ec3c97e4 system: enhance check for re-exec into rootless userns
Previously, the setup only checked for the CAP_SYS_ADMIN capability,
which could be not enough with containerized Podman where
CAP_SYS_ADMIN might be set for an unprivileged user.

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

[NO NEW TESTS NEEDED] needs containerized Podman

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-01-30 14:51:34 +00:00
Jake Correnti
958d26db4c Fix podman machine set --rootful for applehv
Fixes a bug where a user would be unable to change
a rootless machine to rootful. Also makes sure that
the podman/docker socket service is updated if the
UID or Rootful status of the host user has been
updated.

[NO NEW TESTS NEEDED]

Fixes: #21195

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
2024-01-30 14:04:22 +00:00
Brent Baude
c62c83227d applehv - fix vm lookup
small correction to properly lookup a applehv vm on disk.

Fixes: #21090

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <baude@redhat.com>
2024-01-30 13:59:58 +00:00
openshift-merge-bot[bot]
ffb54fb44d
Merge pull request #21362 from openshift-cherrypick-robot/cherry-pick-21358-to-v4.9
[v4.9] [CI:BUILD] rpm: use go-rpm-macros on RHEL 10
2024-01-26 12:25:36 +00:00
Yaakov Selkowitz
5835995760 rpm: use go-rpm-macros on RHEL 10
[NO NEW TESTS NEEDED]

The macros in ELN and c10s have the necessary support.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2024-01-25 12:36:28 +00:00
openshift-merge-bot[bot]
2f47cb912a
Merge pull request #21331 from ashley-cui/490
Bump to v4.9.0
2024-01-23 00:50:23 +00:00
Ashley Cui
d68682a5dc Bump to v4.9.1-dev
Signed-off-by: Ashley Cui <acui@redhat.com>
2024-01-22 17:02:45 -05:00
Ashley Cui
f7c7b0a7e4
Bump to v4.9.0
Signed-off-by: Ashley Cui <acui@redhat.com>
2024-01-22 17:02:17 -05:00
openshift-merge-bot[bot]
62e9fa0947
Merge pull request #21325 from mheon/bump_490
Podman v4.9.0: Release notes and final cherry-picks
2024-01-22 21:59:49 +00:00
Matt Heon
214ff556e5 Fix a small grammar error in RELEASE_NOTES.md
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-01-22 15:02:12 -05:00
Urvashi Mohnani
fde6029dcb Fix push endpoint stream
The push binding endpoint wasn't actually writing the
output data to the stream when quiet=false and there
was no push error.
Do not hard code quiet=true anymore, take into account the
user input.

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
2024-01-22 15:01:13 -05:00
Matt Heon
fdfc0ba5c5 Finalized release notes for v4.9.0
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-01-22 09:56:34 -05:00
Urvashi Mohnani
25e0f22c25 farm build: push built images to registry
Update farm build to directly push images to a registry
after all the builds are complete on all the nodes.
A manifest list is then created locally and pushed to
the registry as well.

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
2024-01-22 09:56:34 -05:00
Chetan Giradkar
a48722a201 Move the --farm flag to farm build command
The option `farm` which is used to specify the farm to be used, is moved to farm build command from farm command.

closes #20752

Signed-off-by: Chetan Giradkar <cgiradka@redhat.com>
2024-01-22 09:56:34 -05:00
Ed Santiago
80be5223ca Clean up farm-build miscommit
Followup to #20051, which I didn't review in time.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-01-22 09:56:34 -05:00
Urvashi Mohnani
51e3df0c12 [CI:DOCS] Add podman farm build doc
Move the options for the podman build doc to a common md
that can be used by both podman build and podman farm build.

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
2024-01-22 09:56:34 -05:00
Matt Heon
ad252c7408 Add release notes for v4.9.0
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-01-22 08:17:47 -05:00
Christophe Fergeau
00e79802ee gvproxy: Update to 0.7.2 release
This updates the Windows installer and macOS installer to ship the newer
binaries, as well as the vendored gvisor-tap-vsock code.

[NO NEW TESTS NEEDED]

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>

<MH: Cherry-pick into v4.9 branch, resolve conflicts>

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-01-22 08:17:43 -05:00
openshift-merge-bot[bot]
e15af6dae7
Merge pull request #21302 from TomSweeneyRedHat/dev/tsweeney/buildah_1.33.3
[v4.9] Bump Buildah to v1.33.3, c/common to v0.57.2, c/image to v5.29.1
2024-01-19 12:24:06 +00:00
tomsweeneyredhat
ce546bfae9 [v4.9] Bump Buildah to v1.33.3, c/common to v0.57.2, c/image to v5.29.1
As the title says.  Bumps buildah to 1.33.3, common to 0.57.2, and image
to 5.29.1.  This in preparation of Podman v4.9 and RHEL 8.10/9.4.

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2024-01-18 16:48:48 -05:00
openshift-merge-bot[bot]
9d375e4cd0
Merge pull request #21276 from n1hility/net-recovery-49
[v4.9] Add a net health recovery service to qemu machines
2024-01-18 08:20:02 +00:00
Jason T. Greene
6c173c0cef Add a net health recovery service to Qemu machines
There is a network stability issue in qemu + virtio, affecting
some users after long periods of usage, which can lead to
suspended queue delivery. Until the issue is resolved, add a
temporary recovery service which restarts networking when host
communication becomes inoperable.

[NO NEW TESTS NEEDED]

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2024-01-17 19:48:56 -06:00
openshift-merge-bot[bot]
c638722b57
Merge pull request #21280 from openshift-cherrypick-robot/cherry-pick-21266-to-v4.9
[v4.9] Set up podman machine remote user correctly
2024-01-17 19:03:54 +00:00
Brent Baude
e6792457fb Set up podman machine remote user correctly
The remote user functionality was not quite correct.  This PR breaks out
the accumulation of user descriptions into a separate function.  One
odditiy is ignition must be told to NOT create the core user (or it will
by default) by "adding" the core user with a set bool.

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-01-17 17:00:55 +00:00
openshift-merge-bot[bot]
0c9a007f8f
Merge pull request #21259 from mheon/backport_21226_48
Backport #21226 to the v4.8 branch
2024-01-15 19:11:42 +00:00
Matt Heon
023a354de7 Remove Libpod special-init conditions
Before this, for some special Podman commands (system reset,
system migrate, system renumber), Podman would create a first
Libpod runtime to do initialization and flag parsing, then stop
that runtime and create an entirely new runtime to perform the
actual task. This is an artifact of the pre-Podman 2.0 days, when
there was almost no indirection between Libpod and the CLI, and
we only used one runtime because we didn't need a second runtime
for flag parsing and basic init.

This system was clunky, and apparently, very buggy. When we
migrated to SQLite, some logic was introduced where we'd select a
different database location based on whether or not Libpod's
StaticDir was manually set - which differed between the first
invocation of Libpod and the second. So we'd get a different
database for some commands (like `system reset`) and they would
not be able to see existing containers, meaning they would not
function properly.

The immediate cause is obviously the SQLite behavior, but I'm
certain there's a lot more baggage hiding behind this multiple
Libpod runtime logic, so let's just refactor it out. It doesn't
make sense, and complicates the code. Instead, make Reset,
Renumber, and Migrate methods of the libpod Runtime. For Reset
and Renumber, we can shut the runtime down afterwards to achieve
the desired effect (no valid runtime after). Then pipe all of
them through the ContainerEngine so cmd/podman can access them.

As part of this, remove the SystemEngine part of pkg/domain. This
was supposed to encompass these "special" commands, but every
command in SystemEngine is actually a ContainerEngine command.
Reset, Renumber, Migrate - they all need a full Libpod and access
to all containers. There's no point to a separate engine if it
just wraps Libpod in the exact same way as ContainerEngine. This
consolidation saves us a bit more code and complexity.

Signed-off-by: Matt Heon <mheon@redhat.com>

<MH: Fixed cherry-pick conflicts for v4.8 branch>

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-01-15 12:14:17 -05:00
Matt Heon
d837bf68a6 Fix podman system reset with external containers
It looks like we had some logic for this from #10789 but it does
not appear to have ever worked; we can't pull external containers
out of the DB, so the ContainerRm call failed unconditionally.

Instead, just handle them in Libpod when we're removing images.
We're removing every image, so setting Force when removing images
should get rid of all external containers. It's a little later in
the process than the current (nonfunctional) solution is but I
can't think of a reason why that would be bad.

[NO NEW TESTS NEEDED] We do not currently test `system reset`.
We should probably reevaluate that at some point this year.

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

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-01-15 08:24:08 -05:00
openshift-merge-bot[bot]
721d9eeb81
Merge pull request #21248 from TomSweeneyRedHat/dev/tsweeney/kubecommafix
[v4.8] podman kube play: fix broken annotation parsing
2024-01-15 12:42:29 +00:00
Paul Holzinger
03ba154044 [v4.8] podman kube play: fix broken annotation parsing
If a user did not set an equal sign in the annotation that old code
would panic when accessing the second element in the slice.

Picked from main 48ab4aec31.

Partially addresses: https://issues.redhat.com/browse/RHEL-21422

[NO NEW TESTS NEEDED]

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2024-01-12 16:33:58 -05:00
openshift-merge-bot[bot]
dce6d7e30f
Merge pull request #21223 from benoitf/backport-desktop-5282
[v4.8] feat: disable pid max in the podman machine
2024-01-10 18:35:47 +00:00
Florent Benoit
fe84d68f1d feat: disable pid max in the podman machine
fix https://github.com/containers/podman-desktop/issues/5282

With FCOS we have a limit of 2048 files
But when launching containers like kind containers, we're reaching
easily the limit.
AFAIK as it's inside a dedicated machine, limit should be max
Limit should be only at the container level.

Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2024-01-10 11:20:39 -05:00
openshift-merge-bot[bot]
d81874e0df
Merge pull request #21220 from edsantiago/fix_some_cp_flakes_v48
[v4.8] systests: cp: add wait_for_ready
2024-01-10 15:59:00 +00:00