21805 Commits

Author SHA1 Message Date
add368b25d Merge pull request #21792 from edsantiago/new-vms
Bump VMs. New pasta, gvisor
2024-02-22 19:59:10 +00:00
d8f07dc608 Merge pull request #21784 from Luap99/events
make podman events json output more docker compatible
2024-02-22 17:58:08 +00:00
b338364fbf Merge pull request #21786 from Luap99/machine-gvproxy-cleanup
pkg/machine: ignore gvproxy pidfile not exists error
2024-02-22 16:13:41 +00:00
f601a446bc Bump VMs. New pasta, gvisor
Need pasta 02-20, gvisor 0.7.3

https://github.com/containers/automation_images/pull/329#issuecomment-1959742060

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-02-22 09:09:39 -07:00
5a844511c8 Merge pull request #21652 from Luap99/machine-http-proxy
machine: implement http proxy logic for all providers
2024-02-22 15:40:39 +00:00
4990c6ec6a Merge pull request #21780 from mheon/vendor_vfkit
Vendor vfkit v0.5.1 and gopsutil v3.24.1
2024-02-22 15:07:44 +00:00
4078a44056 libpod/events: remove duplicated Details ID field
The ID filed in the Event struct is duplicated for no reason, since the
Details struct is directly embedded in the Event the ID filed is
basically duplicate on the same level multiple times. Removing this one
should be be safe and make no change to the resulting json.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-22 13:37:27 +01:00
6f6925cca4 pkg/machine: ignore gvproxy pidfile not exists error
When gvproxy exits it will delete the pidfile itself so we need to
account for that and juts ignore the case, it just means gvproxy was
able to exit successfully on its own.

Also remove the useless defer and return the error so we can get an
error exit code not just a print on stderr.

Currently it shows this error which is not helpful to any user:
unable to clean up gvproxy: "unable to read gvproxy pid file /run/user/1000/podman/gvproxy.pid: open /run/user/1000/podman/gvproxy.pid: no such file or directory"

[NO NEW TESTS NEEDED] TODO: make machine tests check stderr for such
things.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-22 12:39:20 +01:00
8f1cebf96f cmd/podman: remove duplicated event ToHumanReadable()
ToHumanReadable() exists twice now, there is no reason for this just
call the function on the backend event type is fine as this still has to
be used there.

It also fixes a bug where the wrong event type was passed to the
template which did not match the docs and json output.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-22 12:10:57 +01:00
a3a1b44c31 libpod/events: Update event time format and add timeNano
Add new event type in cmd/podman to better match the docker format.

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-22 11:32:48 +01:00
669e718561 Merge pull request #21636 from jakecorrenti/inspectinfo-hostuser
machine: Remove unnecessary TODOs
2024-02-22 10:29:51 +00:00
86a27f2e14 Merge pull request #21777 from cevich/fix_mac_clone
Cirrus: Reuse shared clone script on Mac
2024-02-22 10:24:23 +00:00
f218f8430a machine: implement http proxy logic for all providers
Copy all proxy envs into the VM on each start, this allows for updates
without having to recrate the VM. This is implemented via shell script
that is passed via ssh to the VM after it is started.

With that we now use the same logic for all providers the old fw_cfg
logic for qemu has been removed and the WSL code as well which keeps the
behavior the same.

There is a small risk now because we only update the env via ssh that
processes started before will have the old incorrect env but it should
really only effect core system processes which likely do not need them
anyway. The podman system service should not be started at this point
so it should be good enough.

It also fixes the broken behavior with SSL_CERT_FILE/SSL_CERT_DIR which
were updated on each start which is not correct as the files are only
copied with ignition so these should not be updated and just set
statically when the VM was created.

e2e test has been added to ensure the behavior works as expected.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-22 11:23:45 +01:00
59b6f48d90 Merge pull request #21735 from jakecorrenti/inspect-conn-vals
machine: Add `ConnectionInfo` to inspect
2024-02-22 02:36:50 +00:00
c4e68bdae4 Cirrus: Reuse shared clone script on Mac
The `Makefile` makes assumptions about git repo. clone details.
Because fixing the `Makefile` would likely be problematic, fix
the clone operation used on the Mac so that it matches what's used
on Linux.

Also, simplify git repo clone operations.  At some point in the
distant past, a git identity was required for CI to function properly.
That has since changed, so remove the unnecessary complexities.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-02-21 15:20:16 -05:00
2af73b83fe Vendor vfkit v0.5.1 and gopsutil v3.24.1
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-02-21 14:53:40 -05:00
70091d57e7 Merge pull request #21699 from vikas-goel/i21663
Comply to Kubernetes specifications for annotation size.
2024-02-21 15:00:25 +00:00
0d1a8c0f2b Merge pull request #21768 from baude/zstd
zstd now default compression for podman machine
2024-02-21 14:46:38 +00:00
f756e5db68 Merge pull request #21747 from mheon/windows_lint
Fix Lint on Windows and enable the job
2024-02-21 00:47:04 +00:00
89b415ba37 Comply to Kubernetes specifications for annotation size.
An annotation is a pair of key-value. The key has two parts, viz. a name and an optional prefix in DNS format.

The limitations on name is 63, prefix 253 chars. The limitation on total size of all key+value pairs combined is 256KB.

https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set

Fixes: https://github.com/containers/podman/issues/21663

Signed-off-by: Vikas Goel <vikas.goel@gmail.com>
2024-02-20 14:58:35 -08:00
a1abe6c21c Merge pull request #21762 from dfr/freebsd-cni
Build with CNI support on FreeBSD
2024-02-20 21:40:04 +00:00
a31e8d2a23 zstd now default compression for podman machine
given that we are moving to building our own machine images, we have
decided to use zstd compression as it is superior in speed to the
alternatives.  as such, this pr adds zstd to our machine code; and also
has to account for dealing with sparseness on darwin; which the default
zstd golang library does not.

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-02-20 14:26:41 -06:00
2fbc1c1503 Merge pull request #21766 from edsantiago/fix-search-flake-again
CI: fix search-test flakes
2024-02-20 20:22:19 +00:00
1d4651bccc Merge pull request #21763 from giuseppe/sparse-file
machine: add sparse file writer
2024-02-20 19:35:33 +00:00
d9c706ea95 Merge pull request #21694 from arixmkii/wait-for-gvproxy
Extract waitForGvProxy into shared utility function
2024-02-20 18:59:46 +00:00
39387c2dea Merge pull request #21759 from Luap99/package-log-list
cirrus logcollector: update package list
2024-02-20 18:29:35 +00:00
e1d71ba9fc Merge pull request #21764 from edsantiago/systest_cleanup
systests: auto-update: minor cleanup
2024-02-20 18:02:12 +00:00
1c61f766d4 CI: fix search-test flakes
Seeing constant e2e test failures today, in search tests.

Reason: tests are searching for "alpine", which is common,
and we're hitting pollution.

Solution: search for "testdigest_v2s<x>", an image in quay
under the libpod namespace. And, in other tests that rely
on docker.io, switch to quay.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-02-20 09:41:56 -07:00
95236927a8 Merge pull request #21487 from Romain-Geissler-1A/fix-using-docker-client-with-rootful-in-rootless-podman
Fix running container from docker client with rootful in rootless podman
2024-02-20 15:22:33 +00:00
0b861350c2 machine: add sparse file writer
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-02-20 15:57:24 +01:00
c4b793f58c Merge pull request #21726 from rhatdan/docs7
[CI:DOCS] Fix up example description of podman-system commands
2024-02-20 14:41:11 +00:00
152978b336 Merge pull request #21710 from rhatdan/docs21
[CI:DOCS] Fix up example description of podman-inspect.1.md.in
2024-02-20 14:38:33 +00:00
7746e2a3fe systests: auto-update: minor cleanup
- use PODMAN_TMPDIR, not BATS_TMPDIR, for temp file
- in teardown, do not assume that SNAME_FILE will exist
  (test could fail before that file gets created)
- remove "?" ("ignore exit status") from rmi & prune.
  Probably holdovers from the days before -f. If
  these commands fail even with -f, we need to know.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-02-20 07:37:35 -07:00
09095acf2b machine: Add ConnectionInfo to MachineConfig
Adds `ConnectionInfo()` to the `MachineConfig` and fills out
`InspectInfo` accordingly. Additionally fixes the "inspect with go format" test.

Changes `ConfigPath` to `ConfigDir` to better represent the
output.

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
2024-02-20 09:08:11 -05:00
9f1a9b1105 Merge pull request #21713 from rhatdan/docs18
[CI:DOCS] Fix up example description of podman-images.1.md.in
2024-02-20 13:26:57 +00:00
54351306d0 Merge pull request #21708 from rhatdan/docs25
[CI:DOCS] Fix up example description of podman-push.1.md.in
2024-02-20 13:24:08 +00:00
a6cce6ac01 Merge pull request #21705 from rhatdan/docs28
[CI:DOCS] Fix up example description of podman-stats.1.md.in
2024-02-20 13:21:23 +00:00
5effdcca3c Fix up example description of podman-system commands
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-20 08:18:51 -05:00
ec68f07c04 Fix Lint on Windows and enable the job
[NO NEW TESTS NEEDED] Purely refactoring

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-02-20 08:06:18 -05:00
66fd41ff19 cirrus logcollector: update package list
aardvark-dns, netavark and passt are installed on both debian and
fedora. cri-o-runc is not installed anymore and it just uses the normal
runc package on debian. containers-common is called
golang-github-containers-common on debian and also uses
golang-github-containers-image for further config files from c/image.
This makes sure we correctly log all the package versions on debian
correctly.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-20 13:58:57 +01:00
5327ddfdf2 Build with CNI support on FreeBSD
This is needed until there is netavark support on FreeBSD

[NO NEW TESTS NEEDED]

Signed-off-by: Doug Rabson <dfr@rabson.org>
2024-02-20 12:57:45 +00:00
921b5bb0b1 Merge pull request #21709 from rhatdan/docs24
[CI:DOCS] Fix up example description of podman-port.1.md.in
2024-02-20 11:17:38 +00:00
34aa4cece8 Merge pull request #21718 from rhatdan/docs17
[CI:DOCS] Fix up example description of podman-history.1.md
2024-02-20 11:09:22 +00:00
a57c7dcd66 Merge pull request #21727 from rhatdan/docs8
[CI:DOCS] Fix up example description of podman-container commands
2024-02-20 11:03:53 +00:00
2009549f07 Merge pull request #21723 from rhatdan/docs10
[CI:DOCS] Fix up example description of podman-commit.1.md
2024-02-20 11:01:06 +00:00
159afc5193 Merge pull request #21722 from rhatdan/docs9
[CI:DOCS] Fix up example description of podman-build.1.md.in
2024-02-20 10:58:21 +00:00
5c4027e15b Merge pull request #21719 from rhatdan/docs12
[CI:DOCS] Fix up example description of podman-create.1.md.in
2024-02-20 10:55:44 +00:00
c5a71c4fdc Apply suggestions from code review
Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-20 05:49:04 -05:00
67ead5cb5d Apply suggestions from code review
Co-authored-by: Valentin Rothberg <vrothberg@redhat.com>
Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-20 05:48:04 -05:00
408772d34a Apply suggestions from code review
Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-20 05:46:41 -05:00