21092 Commits

Author SHA1 Message Date
fbd1ba68f6 vendor: update c/storage
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-11-10 15:20:39 +01:00
956c0d6ec5 Improve the documentation of quadlet
Users fail to realize that they can use other systemd
options within the quadlet files, like ExecStartPre.
This change should make it clearer to the users.

https://github.com/containers/podman/discussions/20642

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-11-10 05:41:24 -06:00
7d107b9892 Merge pull request #19879 from rhatdan/ulimits
Support passing of Ulimits as -1 to mean max
2023-11-10 10:47:43 +00:00
b5b9a2b96a Merge pull request #20607 from rhatdan/man
[CI:DOCS] Document --userns=auto behaviour for rootless users
2023-11-10 10:44:57 +00:00
79eec47f5f Merge pull request #20626 from jakecorrenti/ignition-builder
Refactor Ignition configuration for virt providers
2023-11-09 19:54:00 +00:00
4a20de7f7f Merge pull request #20641 from jakecorrenti/socket-mapping-nits
Fix socket mapping nits
2023-11-09 19:32:00 +00:00
39d647a2f6 Fix socket mapping socket mapping nits
Fixes nits that were suggested in #20420. The caller of
`ListenAndWaitOnSocket` did not use the value returned by the conn
channel, therefore it was better to just close the conn in the
`ListenAndWaitOnSocket` function instead.

[NO NEW TESTS NEEDED]

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
2023-11-09 10:41:50 -05:00
d7d8b86e59 Merge pull request #20632 from containers/renovate/github.com-onsi-gomega-1.x
fix(deps): update module github.com/onsi/gomega to v1.30.0
2023-11-09 15:34:01 +00:00
5388836c11 fix(deps): update module golang.org/x/tools to v0.15.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-09 02:16:55 +00:00
b0ec6d8167 Merge pull request #20636 from containers/renovate/golang.org-x-net-0.x
fix(deps): update module golang.org/x/net to v0.18.0
2023-11-09 02:15:51 +00:00
60f67eec75 fix(deps): update github.com/containers/libhvee digest to 9651e31
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-09 02:15:20 +00:00
dfffa7b188 Merge pull request #20630 from lsm5/disable-goproxy
Disable goproxy
2023-11-09 02:13:07 +00:00
9cd975d59e [skip-ci] Update github/issue-labeler action to v3.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-09 01:32:29 +00:00
b8d59030cf Document --userns=auto behaviour for rootless users
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-11-08 17:03:35 -06:00
c23963d7a8 machine: qemu: add usb host passthrough
QEMU usb-host driver which is the one for passthrough, supports two
options for selecting an USB devices in the host to provide it to the
VM:
 - Bus and Device number the device is plugged
 - Vendor and Product information of the USB devices

    https://qemu-project.gitlab.io/qemu/system/devices/usb.html

This commit allows a user to configure podman machine with either of
options, with new --usb command line option for podman machine init.

Examples
  podman machine init tosovm4 --usb vendor=13d3,product=5406
  podman machine init tosovm3 --usb bus=1,devnum=4 --usb bus=1,devnum=3

This commit also allows a user to change the USBs configured with
--usb command line option for podman machine set.

Note that this commit does not handle host device permissions nor
verify that the USB devices exists.

Signed-off-by: Victor Toso <victortoso@redhat.com>
2023-11-08 23:38:53 +01:00
4a75a2b3c8 fix(deps): update module golang.org/x/net to v0.18.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-08 22:16:17 +00:00
01fd9e906b Merge pull request #20620 from baude/codecleanup
Automatic code cleanups - JetBrains
2023-11-08 22:14:36 +00:00
1c5bc7e095 fix(deps): update module github.com/onsi/gomega to v1.30.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-08 19:24:21 +00:00
b2c56365b2 Refactor Ignition configuration for virt providers
Creates a common SetIgnitionFile function in pkg/machine/ignition.go which
creates the new VMFile that will represent the machine's ignition file. It
assigns the VMFile to the provided location.

Creates an IgnitionBuilder type to generate the ignition configuration for a
given virt provider.

[NO NEW TESTS NEEDED]

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
2023-11-08 13:39:34 -05:00
81dc3f183d [CI:BUILD] rpm: disable GOPROXY
GOPROXY is currently causing build issues like so:
```
go: github.com/containernetworking/cni@v0.7.1: GOPROXY list is not the empty string, but contains no entries
```

This commit sets `GOPROXY=direct` in rpm spec file.

Ref: https://download.copr.fedorainfracloud.org/results/packit/containers-podman-20627/centos-stream+epel-next-9-aarch64/06611633-podman/builder-live.log.gz

[NO NEW TESTS NEEDED]

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2023-11-08 19:06:08 +05:30
6bb2edd215 Merge pull request #20608 from rhatdan/codespell
Run codespell on podman
2023-11-08 08:30:43 +00:00
78798cab00 Automatic code cleanups - JetBrains
A bunch of cleanups as suggested by linters/etc in JetBrains IDE.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2023-11-07 14:05:15 -06:00
111b2337f9 Merge pull request #20613 from edsantiago/doublecheck_db
systests: add a last-minute check for db backend
2023-11-07 16:18:35 +00:00
6d2aa67345 Merge pull request #20614 from edsantiago/bats_tweaks
systests: add [NNN] prefix in logs, NNN = filename
2023-11-07 16:07:36 +00:00
57dbd61f6f Merge pull request #20572 from baude/ocirefactor
Refactor key machine objects
2023-11-07 15:26:21 +00:00
a45ba06d02 Refactor key machine objects
In #20538, I was asked to consider refactoring the new OCI pull code
from within the generic machine directory.  This is something I had
tried when originally coding it but it became apparent that a much
larger refactor to prevent circular deps was needed.  Because I did not
want to pollute the initial PR with that refactor, I asked for the PR to
merge first.  This is the refactor that needed to be done.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2023-11-07 08:30:44 -06:00
f47a85f4ff Merge pull request #20612 from baude/applehvvirtiosfsmounts
applehv: allow virtiofs to mount to /
2023-11-07 12:13:47 +00:00
1c969219d4 systests: add [NNN] prefix in logs, NNN = filename
This is something I've long wanted in logs: an indicator of
which bats file the test lives in. As of v1.7.0 there is
now a way to do that, BATS_TEST_NAME_PREFIX. Use it. Logs
now look like:

     ok 14 [001] podman - shutdown engines
     ok 15 [005] podman info - basic test
     ...
     not ok 195 [065] podman cp - dot notation ....

(As a bonus, we can remove the super-long "test blah blah pasta"
duplication from 505.bats).

Also, removed no-longer-necessary (fingers crossed) debug code
for the recently fixed containers-storage umount/EINVAL flake.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2023-11-06 14:45:45 -07:00
92cd7b25f2 systests: add a last-minute check for db backend
This will only fail if someone ever adds a system test that
runs podman with "--db-backend boltdb", which nobody should
ever do, but this is a cheap way to make sure it never happens.

See #20563

Signed-off-by: Ed Santiago <santiago@redhat.com>
2023-11-06 14:15:28 -07:00
d44f71c13d applehv: allow virtiofs to mount to /
FCOS has a security limitation where new directories cannot be added to the root / directory of its filesystem.  This PR uses the work-around discussed in https://github.com/coreos/rpm-ostree/issues/337#issuecomment-1000923022 to temporarily disable the limitation, perform the mkdir, and then re-enable the limitation.

This PR allows mounts on the applehv to actually work.

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <bbaude@redhat.com>
2023-11-06 14:29:57 -06:00
886f932b0a Merge pull request #20591 from containers/renovate/github.com-spf13-cobra-1.x
fix(deps): update module github.com/spf13/cobra to v1.8.0
2023-11-06 15:38:35 +00:00
8c834d05ce Merge pull request #20606 from rhatdan/docs
[CI:DOCS] Fix man page display of podman-kube-generate
2023-11-06 15:27:26 +00:00
c2de6d34ca Run codespell on podman
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-11-06 09:23:16 -06:00
8f5c46c9e6 update completion scripts for cobra v1.8.0
[NO NEW TESTS NEEDED]

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-11-06 15:27:07 +01:00
d68feff8cc Merge pull request #20588 from containers/renovate/github.com-mattn-go-sqlite3-1.x
fix(deps): update module github.com/mattn/go-sqlite3 to v1.14.18
2023-11-06 14:24:06 +00:00
dff4d898cb Merge pull request #20596 from containers/renovate/golang.org-x-text-0.x
fix(deps): update module golang.org/x/text to v0.14.0
2023-11-06 14:21:22 +00:00
28f3e9fe31 Fix man page display of podman-kube-generate
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-11-06 08:09:12 -06:00
2ca952ac74 Merge pull request #20605 from adelton/man-podman-kube-apply
[CI:DOCS] Try to fix the broken formatting of man podman‐kube‐apply(1).
2023-11-06 09:05:18 -05:00
796b9cf3be Merge pull request #20574 from rhatdan/push
Podman push --help should reveal default compression
2023-11-06 13:59:23 +00:00
8effb78254 Try to fix the broken formatting of man podman‐kube‐apply(1).
Signed-off-by: Jan Pazdziora <jpazdziora@redhat.com>
2023-11-06 14:53:35 +01:00
e3b3653a96 Merge pull request #20578 from Luap99/CNI-removal-notice
[CI:DOCS] docs: make CNI removal explicit
2023-11-06 12:27:05 +00:00
3eb2d5cebe fix(deps): update module golang.org/x/text to v0.14.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-06 11:00:03 +00:00
108d2bc430 docs: make CNI removal explicit
The docs were rather vague about the deprecation of CNI, make it clear
that we are going to remove it with 5.0 as we decided to do that in our
planning.

Also while looking at the podman network create docs I noticed
--ipam-driver dhcp was still documented as not supported with netavark
so I fixed that as well.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-11-06 10:45:59 +01:00
715451f69b Merge pull request #20580 from RiRa12621/main
adjust string to use default machine name instead of helper path in helper message
2023-11-06 09:39:39 +00:00
f845e1a3b9 Merge pull request #20558 from elezar/bump-cdi
fix(deps): update module github.com/container-orchestrated-devices/container-device-interface to v0.6.2
2023-11-06 08:38:17 +00:00
d2583c7875 Merge pull request #20593 from containers/renovate/github.com-gorilla-mux-1.x
fix(deps): update module github.com/gorilla/mux to v1.8.1
2023-11-05 12:29:50 +00:00
c473305b5c Merge pull request #20589 from containers/renovate/golang.org-x-sync-0.x
fix(deps): update module golang.org/x/sync to v0.5.0
2023-11-05 12:11:49 +00:00
c1fe1f9d32 fix(deps): update module github.com/gorilla/mux to v1.8.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-05 07:11:57 +00:00
e782883446 fix(deps): update module github.com/spf13/cobra to v1.8.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-05 01:31:38 +00:00
0824e45c83 fix(deps): update module golang.org/x/sync to v0.5.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-04 19:20:51 +00:00