Commit Graph

21445 Commits

Author SHA1 Message Date
openshift-merge-bot[bot] 83f89db6c8
Merge pull request from karuboniru/patch-1
fix checking of relative idmapped mount
2024-01-11 17:20:56 +00:00
Ashley Cui f6107f6319 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-11 12:19:04 -05:00
openshift-merge-bot[bot] 238d08fafd
Merge pull request from serprex/main
Replace strings.SplitN with strings.Cut
2024-01-11 17:04:28 +00:00
Ashley Cui eeff3d2de8 Fix machine inspect test config
Signed-off-by: Ashley Cui <acui@redhat.com>
2024-01-11 11:42:54 -05:00
Jake Correnti 7bd5dd42c9 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: 

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
2024-01-11 11:09:09 -05:00
Chris Evich 585fbe373d
Run mac jobs on labeled hosts
This is needed to support an upcoming management script change.
I've already updated all the workers to be sensitive
to this label.

Ref:
https://github.com/cirruslabs/cirrus-cli/blob/master/PERSISTENT-WORKERS.md#reserved-labels

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-01-11 11:05:56 -05:00
Matt Heon a60fe34fde Fix `podman system reset` with external containers
It looks like we had some logic for this from  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-11 09:00:06 -05:00
Philip Dubé 522934d5cf Replace strings.SplitN with strings.Cut
Cut is a cleaner & more performant api relative to SplitN(_, _, 2) added in go 1.18

Previously applied this refactoring to buildah:
https://github.com/containers/buildah/pull/5239

Signed-off-by: Philip Dubé <philip@peerdb.io>
2024-01-11 13:50:15 +00:00
openshift-merge-bot[bot] f1ea4fbb3d
Merge pull request from xduugu/quadlet-doc-quotes
[CI:DOCS] quadlet: fix quoting of example option values in container unit file …
2024-01-11 06:51:07 +00:00
Cedric Staniewski 3714ae3420 quadlet: fix quoting of example option values in container unit file documentation
The quotes are interpreted as part of the value, so that, for example,
`HealthCmd="true"` is translated to the podman argument
`--health-cmd "\"true\""`.

Signed-off-by: Cedric Staniewski <cedric@gmx.ca>
2024-01-11 00:02:41 +01:00
openshift-merge-bot[bot] 28b5a6e5f0
Merge pull request from edsantiago/rhel8_gating
System tests: fixes for RHEL8 gating failures
2024-01-10 11:18:32 +00:00
openshift-merge-bot[bot] 5ddf92079f
Merge pull request from liuming50/support-config-option
cmd: support --config option
2024-01-10 11:04:45 +00:00
openshift-merge-bot[bot] cb473e8883
Merge pull request from benoitf/DESKTOP-5282
feat: disable pid max in the podman machine
2024-01-10 11:02:01 +00:00
openshift-merge-bot[bot] adaf3ca687
Merge pull request from tnk4on/fix-podman-machine-ssh-command
Ignore the error when running `podman machine ssh <command>`
2024-01-10 10:56:31 +00:00
Ming Liu 4e4c3e3dbf cmd: support --config option to locate authentication file
Let's support --config option by setting environment variable
DOCKER_CONFIG instead of ignoring it for docker compatibility, so
it could be used to locate config.json as authentication file.

Also add a test case for this change, remove the deprecated one.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
2024-01-10 09:31:43 +01:00
Shion Tanaka 83fa4843f6 Fix podman machine ssh command
Signed-off-by: Shion Tanaka <shtanaka@redhat.com>
2024-01-10 14:30:24 +09:00
openshift-merge-bot[bot] bed60d951c
Merge pull request from Sheroune/container_internal_common
Remove redundant code in generateSpec()
2024-01-09 17:20:31 +00:00
Ed Santiago 780733415b System tests: fixes for RHEL8 gating failures
- tmpfs + noswap test: requires noswap feature in kernel.
  Check for it, and skip if unimplemented. (Root only.
  Rootless test works regardless of kernel).

- podman generate systemd tests: always use --files option,
  because otherwise the "DEPRECATED" warning gets written
  to the systemd unit file.

- kube play tests: yikes. Fix longstanding bugs when checking
  for containers running. This revealed a longstanding bug
  in one test: multi-pod YAML never actually worked. Fixed now.

- run_podman(): that new check-for-warnings code we added
  in , duh, I skipped it on Debian but should've skipped
  when *runc*. Do so now and update the comment. Requires
  minor surgery to podman_runtime() helper to avoid
  infinite recursion.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-01-09 09:30:15 -07:00
Egor Makrushin 380fa1c836 Remove redundant code in generateSpec()
Conditional expression duplicates the
code above, therefore, remove it

Found by Linux Verification Center (linuxtesting.org) with SVACE.

[NO NEW TESTS NEEDED]

Signed-off-by: Egor Makrushin <emakrushin@astralinux.ru>
2024-01-09 17:26:03 +03:00
openshift-merge-bot[bot] 1b8bd0df3c
Merge pull request from cgwalters/machine-label
[CI:DOCS] labeler: Use `machine` label
2024-01-09 13:11:50 +00:00
openshift-merge-bot[bot] 475dff6a06
Merge pull request from grooverdan/markdown_man_pages_mariadb
[CI:DOCS] docs: update mariadb example
2024-01-09 12:49:51 +00:00
Daniel Black a8c2b84c20 docs: update mariadb example
podman-kube-generate created from pod:

1. podman volume create mariadb_data
2. podman run --env MARIADB_ROOT_PASSWORD=x --name some-mariadb \
     -v mariadb_data:/var/lib/mysql -P  -d mariadb:10.11
3. + command in doc.

podman-run - using MARIADB_ROOT_PASSWORD environment variables for a
while now.

Signed-off-by: Daniel Black <daniel@mariadb.org>
2024-01-09 13:31:39 +11:00
Colin Walters d7760b23cf labeler: Use `machine` label
Consensus was against area/ in
https://github.com/containers/podman/pull/21146

Signed-off-by: Colin Walters <walters@verbum.org>
2024-01-08 17:50:22 -05:00
openshift-merge-bot[bot] 92144024ae
Merge pull request from rhatdan/latest
Remove --latest from podman CMD --help output
2024-01-08 20:20:52 +00:00
openshift-merge-bot[bot] 952088f84d
Merge pull request from edsantiago/debian_warnings
e2e: reenable warning checks on Debian
2024-01-08 20:15:18 +00:00
openshift-merge-bot[bot] 3b18c77712
Merge pull request from ashley-cui/winapiforwarding
Add API forwarding support for HyperV
2024-01-08 20:07:23 +00:00
openshift-merge-bot[bot] 8aa38825a5
Merge pull request from baude/owners
[CI:DOCS]Periodic update to OWNERS file
2024-01-08 19:34:03 +00:00
Brent Baude bccfda5051 [CI:DOCS]Periodic update to OWNERS file
Add some people; remove others.

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-01-08 14:00:37 -05:00
Florent Benoit 3b881d4ecc 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-08 10:16:10 -05:00
Ed Santiago c90e9dad7a e2e: reenable warning checks on Debian
Back when we introduced ExitCleanly(), we couldn't use it
on Debian because of too many runc bugs. Now, early 2024:

 -  has been closed-wontfix, so add a runc special-case
   in the specific test that triggers it.

 -  seems to have gone away? Treat it as fixed.

 -  is languishing, so let's just close-wontfix it too and
   add another runc special case.

 - and, one new rootless-cgroupsV1 exception for a warning msg
   that snuck in recently.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-01-07 18:00:54 -07:00
openshift-merge-bot[bot] 1697a8bfcf
Merge pull request from baude/consolidateIgnitionReadySocket
consolidate ignition ready socket unit
2024-01-06 11:18:57 +00:00
openshift-merge-bot[bot] 8b6d2a6d93
Merge pull request from cgwalters/machine-use-datadir
machine: use GlobalDataDir helper
2024-01-05 17:52:15 +00:00
openshift-merge-bot[bot] 0a316fa7d4
Merge pull request from alexandear/refactor-slices-contains
Refactor: replace StringInSlice with slices.Contains
2024-01-05 17:49:26 +00:00
Ashley Cui e3f167f770 Add API forwarding support for HyperV
Provides Docker API client access, allowing compose to work by default
for HyperV. Basically the HyperV equiv of the work done here by .

[NO NEW TESTS NEEDED]

Signed-off-by: Ashley Cui <acui@redhat.com>
2024-01-05 11:45:28 -05:00
Brent Baude a0a541351d consolidate ignition ready socket unit
consolidated ignition ready unit file content into one function.

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-01-05 10:11:43 -06:00
openshift-merge-bot[bot] 19678e3015
Merge pull request from containers/renovate/golang.org-x-sys-0.x
fix(deps): update module golang.org/x/sys to v0.16.0
2024-01-05 15:56:07 +00:00
Daniel J Walsh 8341ca0e7b
Remove --latest from podman CMD --help output
Because --latest is not supported on podman-remote commands
we should not be showing examples using podman-remote CMD --help
with --latest usage, it confuses users. Rather then hacking up
the code with if remote else --latest, it is better to just remove
information in help messages.

Prevents: https://github.com/containers/podman/issues/21174

[NO NEW TESTS NEEDED] Since normal tests should cover this.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-01-05 10:37:51 -05:00
Colin Walters 06064150ea machine: use GlobalDataDir helper
We shouldn't hardcode `~/.local` - we should use the internal
config helper APIs which honor the XDG_DATA_DIR etc. standard
environment variables.

Signed-off-by: Colin Walters <walters@verbum.org>
2024-01-05 10:29:36 -05:00
Oleksandr Redko 8bdf77aa20 Refactor: replace StringInSlice with slices.Contains
Signed-off-by: Oleksandr Redko <Oleksandr_Redko@epam.com>
2024-01-05 16:25:56 +02:00
openshift-merge-bot[bot] 9c80f358fb
Merge pull request from jakecorrenti/single-ssh-key
machine: Use a single ssh key for all machines
2024-01-05 12:55:41 +00:00
renovate[bot] 25602a03a0
fix(deps): update module golang.org/x/sys to v0.16.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-05 12:04:34 +00:00
openshift-merge-bot[bot] 82125f14b0
Merge pull request from containers/renovate/golang.org-x-sync-0.x
fix(deps): update module golang.org/x/sync to v0.6.0
2024-01-05 12:03:27 +00:00
openshift-merge-bot[bot] a275f65bb2
Merge pull request from chuanchang/test_coverage_for_RHEL-14469
test/system: add test for mounting issue in the init container
2024-01-05 11:52:23 +00:00
openshift-merge-bot[bot] 8df25d705e
Merge pull request from yyzxw/docs/remove-unused-link
[CI:DOCS] chore: remove unused links
2024-01-05 11:27:52 +00:00
openshift-merge-bot[bot] 79e4779558
Merge pull request from rhatdan/quadlet
Error messages not being reported unless more then one error present
2024-01-05 10:54:39 +00:00
Jake Correnti 3bfdd79150 Fix init teardown on bad ignition path
Fixes a bug where if a machine failed during init due to a bad ignition path, it would not be properly torn down.

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
2024-01-04 23:47:59 -05:00
Jake Correnti b01a330d37 Use single persistent ssh key for all machines
Changes SSH key behavior such that there is a single persisted key for all
machines across all providers. If there is no key that is located at
`.local/share/containers/podman/machine/` then it is created. The keys are
not deleted when the last machine on the host is removed.

The main motivation for this change is it leads to fewer files created on the
host as a result of vm configuration. Having `n` machines on your system doesn't
result in `2n` machine-related files in `.ssh` on your system anymore.

As a result of ssh keys being persisted by default, the `--save-keys` flag
on `podman machine rm` will no longer be supported.

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
2024-01-04 23:47:49 -05:00
Alex Jia 260f814bd3 test/system: add test for mounting issue in the init container
Test coverage: https://issues.redhat.com/browse/RHEL-14469

Signed-off-by: Alex Jia <chuanchang.jia@gmail.com>
2024-01-05 09:57:12 +08:00
Daniel J Walsh f0319d5b7a
Error messages not being reported unless more then one error present
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-01-04 14:23:04 -05:00
openshift-merge-bot[bot] a1da24de4b
Merge pull request from edsantiago/xref-manpage-tests
[CI:DOCS] xref-manpages script: more regression tests
2024-01-04 18:38:17 +00:00