Commit Graph

21361 Commits

Author SHA1 Message Date
Daniel J Walsh d3a49fdedb
Add information about --latest support on man pages
On Mac and Windows systems the --latest option is not supported
this PR mentions this fact in the examples section of the man page.
Also added documentation and consistency to the man pages examples
sections.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-01-23 07:28:40 -05:00
openshift-merge-bot[bot] d084146864
Merge pull request #21316 from containers/renovate/dawidd6-action-send-mail-3.x
[skip-ci] Update dawidd6/action-send-mail action to v3.10.0
2024-01-22 15:21:13 +00:00
openshift-merge-bot[bot] 07c877a3ed
Merge pull request #21327 from edsantiago/check_farm_docs
[CI:DOCS] podman farm is no longer hidden. Enable doc checks.
2024-01-22 14:48:15 +00:00
Ed Santiago 17613cc969 podman farm is no longer hidden. Enable doc checks.
Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-01-22 06:55:50 -07:00
openshift-merge-bot[bot] 1fc34d8e2f
Merge pull request #21314 from containers/renovate/github.com-onsi-gomega-1.x
Update module github.com/onsi/gomega to v1.31.1
2024-01-22 10:52:33 +00:00
renovate[bot] 660778b2ee
[skip-ci] Update dawidd6/action-send-mail action to v3.10.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-20 15:11:30 +00:00
openshift-merge-bot[bot] 536e0728f0
Merge pull request #21305 from containers/renovate/github.com-opencontainers-image-spec-1.x
Update module github.com/opencontainers/image-spec to v1.1.0-rc6
2024-01-20 12:40:36 +00:00
renovate[bot] 8d733b6d0e
Update module github.com/onsi/gomega to v1.31.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-20 12:39:16 +00:00
openshift-merge-bot[bot] d9640cba02
Merge pull request #21299 from containers/renovate/golang.org-x-tools-0.x
Update module golang.org/x/tools to v0.17.0
2024-01-20 12:37:54 +00:00
openshift-merge-bot[bot] e37752d5a6
Merge pull request #21297 from rhatdan/apple
Label host volume mounted content in machine as nfs_t
2024-01-20 12:35:23 +00:00
openshift-merge-bot[bot] 815ae77ab2
Merge pull request #21291 from kaorihinata/main
Ensure podman temp directory is created on Start as well.
2024-01-19 10:58:53 +00:00
renovate[bot] a2cc04b155
Update module github.com/opencontainers/image-spec to v1.1.0-rc6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-19 10:57:39 +00:00
openshift-merge-bot[bot] be65b31046
Merge pull request #21018 from containers/renovate/actions-upload-artifact-4.x
[skip-ci] Update actions/upload-artifact action to v4
2024-01-19 10:56:10 +00:00
openshift-merge-bot[bot] b22cb209a0
Merge pull request #21303 from baude/varlinkdie
[CI:DOCS]Remove final references to varlink
2024-01-19 02:49:57 +00:00
Brent Baude a0c914c6d9 [CI:DOCS]Remove final references to varlink
[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-01-18 16:35:46 -06:00
renovate[bot] 70c3accf7c
Update module golang.org/x/tools to v0.17.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 18:58:28 +00:00
openshift-merge-bot[bot] 34e9146f63
Merge pull request #21290 from containers/renovate/github.com-onsi-gomega-1.x
Update module github.com/onsi/gomega to v1.31.0
2024-01-18 18:57:42 +00:00
openshift-merge-bot[bot] 75c60d6139
Merge pull request #21295 from sm453/add-makecontainer-error-check
Add missing check for errors returned from SpecGenToOCI to MakeContainer
2024-01-18 18:53:31 +00:00
openshift-merge-bot[bot] ce42c9f850
Merge pull request #21233 from edsantiago/quadlet-docs-xref
Quadlet: ensure all keys are documented
2024-01-18 18:45:29 +00:00
Daniel J Walsh 75790b42b4
Label host volume mounted content in machine as nfs_t
While this is potentially a security problem, it solves the issues of
users sharing content from the host into containers and attempting to
relabel it. From a security point of view this means all content volume
mounted from the host into the podman machine on apple hypervisor is
read/write from an SELinux point of view if it is volume mounted into
the container. If the user attempts to use :Z or :z it will work and
relabel the content to be only usable bu the specify container.

Helps Fix: https://github.com/containers/podman/issues/21269

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-01-18 12:43:16 -05:00
kaorihinata 7472bdb161 Ensure podman temp directory is created on Start as well.
`getRuntimeDir()` (which is also responsible for creating TMPDIR if it doesn't exist) was being called on `Init()` but not on `Start()` which meant that after the host was restarted and TMPDIR was wiped, `startHostNetworking()` would try to start gvproxy and immediately bail.

Signed-off-by: kaorihinata <kaori.hinata@gmail.com>
2024-01-18 12:37:13 -05:00
Ed Santiago a5612bc540 Quadlet: ensure all keys are documented
New CI validation check: all keys in quadlet.go must be
documented at least once in podman-systemd.unit.5.md.
Adding '// deprecated' next to an enum definition will
exclude said key from the documentation cross-checks.

And, because the md file lists keys in both table and block
form, make sure those all match.

And make sure everything is sorted in lexical order, in
both .go source and in man page.

And add a validation check to make sure it stays that way.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-01-18 06:17:57 -07:00
Ed Santiago 0c3b5e433e quadlet.go: clean up keys
- A number of keys had a "Network" prefix, for historical reasons
  that never panned out ("KeyNetworkGateway"). Remove that prefix
  and remove the two duplicates.

- Three RemapXXX keys were mismatched in case ("UID" vs "Uid").
  Make those consistent.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-01-18 06:17:57 -07:00
Sebastian Mosbach 77389bd05c Add missing check for errors returned from SpecGenToOCI to MakeContainer.
This avoids nil pointer exceptions in the subsequent code that tries to access the runtimeSpec returned from SpecGenToOCI.

[NO NEW TESTS NEEDED]

Signed-off-by: Sebastian Mosbach <sm453@cam.ac.uk>
2024-01-18 11:37:16 +00:00
renovate[bot] 6226b5669e
Update module github.com/onsi/gomega to v1.31.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 03:21:14 +00:00
openshift-merge-bot[bot] 20b22f8f10
Merge pull request #21286 from containers/renovate/golang.org-x-net-0.x
Update module golang.org/x/net to v0.20.0
2024-01-18 03:20:12 +00:00
openshift-merge-bot[bot] a0fb4c66b8
Merge pull request #21284 from containers/renovate/github.com-onsi-ginkgo-v2-2.x
Update module github.com/onsi/ginkgo/v2 to v2.14.0
2024-01-18 03:17:27 +00:00
openshift-merge-bot[bot] 597ff52352
Merge pull request #21264 from cfergeau/applehv
applehv: return socket path from setupAPIForwarding
2024-01-18 02:47:12 +00:00
renovate[bot] 4c583e7a10
Update module golang.org/x/net to v0.20.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-17 21:15:10 +00:00
renovate[bot] e757f7631e
Update module github.com/onsi/ginkgo/v2 to v2.14.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-17 20:22:02 +00:00
openshift-merge-bot[bot] d38ee1364d
Merge pull request #21267 from danishprakash/new-pod-behavior
rm pod with run, create if ctr creation failed with --pod new:
2024-01-17 20:20:52 +00:00
openshift-merge-bot[bot] f604693a05
Merge pull request #21282 from containers/renovate/github.com-docker-go-connections-0.x
Update module github.com/docker/go-connections to v0.5.0
2024-01-17 19:56:07 +00:00
openshift-merge-bot[bot] f222adbe1a
Merge pull request #21281 from containers/renovate/github.com-vbauerster-mpb-v8-8.x
Update module github.com/vbauerster/mpb/v8 to v8.7.2
2024-01-17 19:53:23 +00:00
renovate[bot] 728e842dbd
Update module github.com/docker/go-connections to v0.5.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-17 19:04:52 +00:00
renovate[bot] f9a05717a0
Update module github.com/vbauerster/mpb/v8 to v8.7.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-17 18:51:28 +00:00
openshift-merge-bot[bot] 1c8179817d
Merge pull request #21278 from cfergeau/gvisor-tap-vsock-update
gvproxy: Update to 0.7.2 release
2024-01-17 18:50:09 +00:00
openshift-merge-bot[bot] 6c5eeaab9c
Merge pull request #21266 from baude/remotenocore
Set up podman machine remote user correctly
2024-01-17 17:00:11 +00:00
Christophe Fergeau c566551e96 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>
2024-01-17 16:59:35 +01:00
Brent Baude 1964dbd406 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 08:57:46 -06:00
danishprakash 1c88b12204
rm pod with podman run if ctr creation failed
Currently, if the container creation failed with
either run or create and you've used --pod with new:
the pod would be created nonetheless. This change ensures
the pod just created is also cleaned up in case
of container creation failure

Fixes #21228

Signed-off-by: danishprakash <danish.prakash@suse.com>
2024-01-17 18:59:32 +05:30
openshift-merge-bot[bot] e293ca8916
Merge pull request #21262 from n1hility/net-recovery
Add a net health recovery service to qemu machines
2024-01-17 13:22:39 +00:00
openshift-merge-bot[bot] eb7746264a
Merge pull request #21060 from edsantiago/labels-space
Man pages: tighter documenting of --format fields
2024-01-17 08:22:55 +00:00
openshift-merge-bot[bot] c187687580
Merge pull request #21271 from edsantiago/reenable_fixed_flakes
CI: reenable tests that are working again
2024-01-17 02:00:29 +00:00
Jason T. Greene 79fad91dbb 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-16 16:39:47 -06:00
Ed Santiago e66413b51b CI: reenable tests that are working again
- #15074 ("subtree_control" flake). The flake is NOT FIXED, I
  saw it six months ago on my (non-aarch64) laptop. However,
  it looks like the frequent-flake-on-aarch64 bug is resolved.
  I've been testing in #17831 and have not seen it. So,
  tentatively remove the skip and see what happens.

- Closes: #19407 (broken tar, "duplicates of file paths")
  All Fedoras now have a fixed tar. Debian DOES NOT, but
  we're handling that in our build-ci-vm code. I.e., the
  Debian VM we're using has a working tar even though there's
  currently a broken tar out in the wild.

  Added distro-integration tag so we can catch future problems
  like this in OpenQA.

- Closes: #19471 (brq / blkio / loopbackfs in rawhide)
  Bug appears to be fixed in rawhide, at least in the VMs we're
  using now.

  Added distro-integration tag because this test obviously
  relies on other system stuff.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-01-16 10:07:48 -07:00
openshift-merge-bot[bot] 2981262215
Merge pull request #21268 from vrothberg/mongo
fix mongo-driver dependency
2024-01-16 16:56:00 +00:00
Christophe Fergeau 3fef531d96 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-16 17:06:22 +01:00
Christophe Fergeau 90f69891d7 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-16 17:06:10 +01:00
Valentin Rothberg ab13165517 fix mongo-driver dependency
The v1.13.0 has been retracted and causes issues when using it.
Hence, update to v1.13.1 as suggested upstream [1].

[1] https://github.com/mongodb/mongo-go-driver/releases/tag/v1.13.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2024-01-16 15:50:59 +01:00
openshift-merge-bot[bot] 85921e5ff6
Merge pull request #21253 from bcooksley/main
[FreeBSD] Fix crash when running podman inspect
2024-01-16 12:23:43 +00:00