20817 Commits

Author SHA1 Message Date
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
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
da897bd04d fix(deps): update module github.com/mattn/go-sqlite3 to v1.14.18
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-04 16:19:52 +00:00
420316ef6e Podman push --help should reveal default compression
When using the local client, we should display the compression
algorithm.

If the compression level is set, then show this also.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-11-04 07:33:53 -05:00
5e55d76af6 Merge pull request #20581 from Luap99/go-systemd
vendor: update github.com/coreos/go-systemd/v22 to latest main
2023-11-04 12:29:22 +00:00
942bcf34b8 Update container-device-interface (CDI) to v0.6.2
This updates the container-device-interface dependency to v0.6.2 and renames the import to
tags.cncf.io/container-device-interface to make use of the new vanity URL.

[NO NEW TESTS NEEDED]

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-11-04 01:12:06 +01:00
375b0cc132 fix: adjust helper string in machine_common
[NO NEW TESTS NEEDED]

Signed-off-by: Rick Rackow <rick.rackow@gmail.com>
2023-11-03 21:24:05 +01:00
9e05fb14a4 fix: adjust helper string in machine_common
[NO NEW TESTS NEEDED]

Signed-off-by: Rick Rackow <rick.rackow@gmail.com>
2023-11-03 20:32:20 +01:00
b44d372b1b Merge pull request #20559 from edsantiago/ci_default_sqlite
CI: default to sqlite
2023-11-03 18:56:29 +00:00
5fc7585334 Merge pull request #20420 from jakecorrenti/refactor-socket-mapping
Refactor machine socket mapping
2023-11-03 18:33:54 +00:00
4953f7f496 Merge pull request #20582 from flouthoc/remove-symlink-from-repo
remote,test: remove `.dockerignore` which is a symlink
2023-11-03 17:17:27 +00:00
127505dda9 Merge pull request #20583 from containers/renovate/golangci-golangci-lint-1.x
[CI:DOCS] Update dependency golangci/golangci-lint to v1.55.2
2023-11-03 16:09:45 +00:00
607aff55fa remote,test: remove .dockerignore which is a symlink
It seems certain test infrastructure prevents cloning repo which
contains symlink outside of the repo itself, generate symlink for such
test by the testsuite itself just before running test and remove it when
test is completed.

Signed-off-by: Aditya R <arajan@redhat.com>
2023-11-03 20:39:02 +05:30
6b7d7f6fb8 [CI:DOCS] Update dependency golangci/golangci-lint to v1.55.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-03 14:43:53 +00:00
b5f854458d fix: adjust helper string in machine_common
[NO NEW TESTS NEEDED]

Signed-off-by: Rick Rackow <rick.rackow@gmail.com>
2023-11-03 15:42:00 +01:00
ce334ed9dd vendor: update github.com/coreos/go-systemd/v22 to latest main
This fixes a CI flake. go-systemd was not handling the dlerror()
function correctly which lead to wrong errors being reported.

[NO NEW TESTS NEEDED]

Fixes #20569

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-11-03 14:53:58 +01:00
0904c19422 Merge pull request #20568 from giuseppe/update-c-common
vendor: update containers/common
2023-11-02 22:34:25 +00:00
48b8b372a6 Merge pull request #20417 from baude/checkforsystemconnection
check system connections before machine init
2023-11-02 21:49:33 +00:00
ece4dfbc0a Merge pull request #20538 from baude/ocipull
Consume OCI images for machine image
2023-11-02 20:37:35 +00:00
2a17baa29d CI: default to sqlite
Followup to #20318: now that sqlite is the podman default,
enforce that in CI as well. Test boltdb only in Prior Fedora.

In the process, discovered & cleaned up some duplication
and unused YAML anchors.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2023-11-02 13:17:21 -06:00
33753db47b vendor: update c/common
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-11-02 19:46:22 +01:00
f002e4516d Merge pull request #20565 from xduugu/fix-compose-debug-msg
compose: fix compose provider debug message
2023-11-02 18:23:31 +00:00
613f50c7ad check system connections before machine init
we should exit early if a system connection name exists with the name of
the proposed podman machine (i.e. podman-machine-default).

Signed-off-by: Brent Baude <bbaude@redhat.com>
2023-11-02 10:31:49 -05:00
ea4775ec9e Consume OCI images for machine image
allow podman machine to extract its disk image from an oci registry or
oci-dir locally.  for now, the image must be relatively inflexible. it
must have 1 layer.  the layer must possess one image. so a dockerfile
like:

FROM scratch
COPY ./myimage.xz /myimage.xz

when using an oci dir, the directory structure must adhere to the
typical directory structure of a an oci image (with one layer).

── blobs
│   └── sha256
│       ├── 53735773573b3853bb1cae16dd21061beb416239ceb78d4ef1f2a0609f7e843b
│       ├── 80577866ec13c041693e17de61444b4696137623803c3d87f92e4f28a1f4e87b
│       └── af57637ac1ab12f833e3cfa886027cc9834a755a437d0e1cf48b5d4778af7a4e
├── index.json
└── oci-layout

in order to identify this new input, you must use a transport/schema to
differentiate from current podman machine init --image-path behavior. we
will support `oci-dir://` and `docker://` as transports.

when using the docker transport, you can only use an empty transport for
input.  for example, `podman machine init --image-path docker://`.  A
fully quailified image name will be supported in the next iteration.

the transport absent anything means, i want to pull the default fcos
image stored in a registry.  podman will determine its current version
and then look for its correlating manifest.  in this default use case,
it would look for:

quay.io/libpod/podman-machine-images:<version>

that manifest would then point to specific images that contain the
correct arch and provider disk image. i.e.

quay.io/libpod/podman-machine-images:4.6-qcow2

this PR does not enable something like
docker://quay.io/mycorp/myimage:latest yet.

names, addresses, andf schema/transports are all subject to change. the
plan is to keep this all undocumented until things firm up.

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <bbaude@redhat.com>
2023-11-02 10:23:14 -05:00
d2a37222b9 freebsd: drop dead code
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-11-02 14:55:33 +01:00