Commit Graph

21864 Commits

Author SHA1 Message Date
Brent Baude dfae51a4b8 Clean up gvproxy if machine start fails
Matt found a bug where if a machine start did not run to completion, a
gvproxy was left around running.  This gvproxy then subsequently stopped
the next attempt to start.

Signed-off-by: Brent Baude <bbaude@redhat.com>

[NO NEW TESTS NEEDED]
2024-02-27 13:33:43 -06:00
openshift-merge-bot[bot] 19d3329f73
Merge pull request #21765 from Luap99/machine-pull-policy
pkg/machine: add custom policy.json logic
2024-02-27 15:44:29 +00:00
openshift-merge-bot[bot] 3352111dd6
Merge pull request #21825 from Luap99/compose
some podman compose fixes
2024-02-27 15:11:30 +00:00
openshift-merge-bot[bot] ab2e29fd8f
Merge pull request #21838 from Luap99/yaml-v3
vendor update gopkg.in/yaml.v2 to v3
2024-02-27 15:08:48 +00:00
Paul Holzinger e32c9bb5e9
Makefile: add machine policy.json to podman-remote.zip
This config needs to be included for podman machine pulls to work and
set MACHINE_POLICY_JSON_DIR so that the file should be located next to
the binary.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-27 15:31:15 +01:00
Paul Holzinger 1e5b5a8892
macos installer: install default policy.json file
Include a default policy.json file in the macos package so users do not
have to add this manually.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-27 15:31:09 +01:00
Paul Holzinger bed61806c8
pkg/machine/ocipull: add default policy.json file
So that this file can be inculded in our windows/macos packages and also
by other packagers.
Right now the default policy is allow everything but we plan to add
signing in the future.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-27 15:29:59 +01:00
Paul Holzinger f5a2683192
Makefile: add MACHINE_POLICY_JSON_DIR option
Allow users to set MACHINE_POLICY_JSON_DIR to the policy.json directory
which is used for podman machine pulls.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-27 15:29:59 +01:00
Paul Holzinger a02aa8f6a2
pkg/machine/ocipull: add custom policy.json location
The default policy file /etc/containers/policy.json location does not
work on windows and for packages that ship a default.

Now we search for the policy.json in the following overwrite locations:
macos and linux:
 - ~/.config/containers/policy.json
 - /etc/containers/policy.json
windows:
 - %APPDATA%\containers\policy.json

Also it offers an additional DefaultPolicyJSONPath var that should be
overwritten at built time with the path of the file that is shipped by
packagers. Thile file is used when none of the overwrite paths exist.

[NO NEW TESTS NEEDED]

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-27 15:29:58 +01:00
openshift-merge-bot[bot] 1303ef4ed7
Merge pull request #21834 from edsantiago/nomore5k
CI: e2e: use distinct ports, not just 5000
2024-02-27 13:54:16 +00:00
Paul Holzinger a210a4d7c2
test/compose: add test for default connection
Make sure that we use the --connection correctly with podman compose.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-27 13:44:34 +01:00
Paul Holzinger d9aff9b41e
podman compose: only trim path suffix when ssh protocol
For a unix socket we should not trim this at all. The problem exists for
ssh only so make sure we only do this when a ssh URL is given.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-27 13:44:26 +01:00
Paul Holzinger 3cada04099
podman compose: correctly accept --connection/--url
Make the logic here much simpler, we already pass all the conection info
before so just use the parsed URL here.

Fixes #20943

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-27 13:40:41 +01:00
Paul Holzinger 6d3571dcf5
podman compose: build for all arches
Machine only works on amd64 and arm64 but the compose command can still
be used without machine so split out the machine only logic to make it
build for all arches.

[NO NEW TESTS NEEDED]

Fixes #21757

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-27 13:40:41 +01:00
Ed Santiago 7d5a68c9cd CI: e2e: use distinct ports, not just 5000
Too many tests use port 5000. Although there's a putative GetPortLock()
it seems to be unreliable, and we often get what appear to be collisions
between tests.

A proper solution would be to pseudorandomly allocate ports, verify
that they're not being reused, Sprintf() these everywhere that
needs them, and sprinkle some powdered cinnamon on top.

This is not that proper solution.

Fixes: #20655

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-02-27 04:30:26 -07:00
Paul Holzinger 8d9ff04d10
vendor update gopkg.in/yaml.v2 to v3
There is no reason for us to use v2 here, we use v3 already in most
places. The go-openapi dependency still uses v2 so we do not get rid of
it yet but it looks like they migrated upstream so once a new version
is released there and finds our way to us then we should get some nice
binary size reduction.

[NO NEW TESTS NEEDED]

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-27 12:20:58 +01:00
openshift-merge-bot[bot] 6dd8454a54
Merge pull request #21826 from rhatdan/stop
Fix podman stop -t -1 CID
2024-02-27 11:11:39 +00:00
openshift-merge-bot[bot] 2f88c0a170
Merge pull request #21740 from containers/renovate/github.com-openshift-imagebuilder-1.x
Update module github.com/openshift/imagebuilder to v1.2.6
2024-02-26 22:24:23 +00:00
Daniel J Walsh 5b28a2b4a0
Fix podman stop -t -1 CID
Currently if a user specifies a negative time to stop a container the
code ends up specifying the negative time to time.Duration which treats
it as 0. By settine the default to max.Unint32 we end up with a positive
number which indicates > 68 years which is probably close enough to
infinity for our use case.

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

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-26 16:15:10 -05:00
openshift-merge-bot[bot] 04f70320c1
Merge pull request #21594 from arixmkii/qemu-win-machine-5
Change QEMU netdev to Unix domain socket
2024-02-26 20:37:06 +00:00
openshift-merge-bot[bot] 25cbff1f34
Merge pull request #21753 from mheon/mac_lint
Enable lint for Darwin and fix identified issues
2024-02-26 19:26:57 +00:00
Arthur Sengileyev 656bf7b764 Change QEMU netdev to Unix domain socket
This change migrates to new QEMU stream netdev added in 7.2.0.
It also unifies how gvproxy is used in QEMU and AppleHV.

Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
2024-02-26 20:02:46 +02:00
openshift-merge-bot[bot] 2313569d9b
Merge pull request #21824 from edsantiago/fix_nightly
Fix nightly cron checks
2024-02-26 16:48:57 +00:00
Matt Heon 19b676f855 Enable lint for Darwin and fix identified issues
[NO NEW TESTS NEEDED] Just fixing lint issues

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-02-26 11:01:54 -05:00
openshift-merge-bot[bot] e99ececc2f
Merge pull request #21823 from edsantiago/enable_ipv6_tests
systests: enable ipv6 tests
2024-02-26 14:23:11 +00:00
Ed Santiago 1b068b79f4 Fix nightly cron checks
Broken by #21777: "set -u" causes clone_script to barf with

    CIRRUS_PR: unbound variable

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-02-26 07:10:27 -07:00
Ed Santiago 83671ac347 systests: enable ipv6 tests
...commented out long long ago with a now-obsolete TODO

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-02-26 05:49:31 -07:00
openshift-merge-bot[bot] ec2d040378
Merge pull request #21818 from containers/renovate/github.com-containers-libhvee-digest
Update github.com/containers/libhvee digest to c1bda9d
2024-02-26 12:07:25 +00:00
openshift-merge-bot[bot] b8e0427a43
Merge pull request #21789 from Romain-Geissler-1A/ignore-docker-endpoint-config-in-non-bridge-mode
Ignore docker's end point config when the final network mode isn't bridge
2024-02-26 09:51:27 +00:00
renovate[bot] 1884043662
Update github.com/containers/libhvee digest to c1bda9d
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 09:50:21 +00:00
openshift-merge-bot[bot] 47f3704eed
Merge pull request #21814 from containers/renovate/go.etcd.io-bbolt-1.x
Update module go.etcd.io/bbolt to v1.3.9
2024-02-26 09:48:41 +00:00
renovate[bot] ecda4eab39
Update module go.etcd.io/bbolt to v1.3.9
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-25 19:26:56 +00:00
openshift-merge-bot[bot] d2c2e665e3
Merge pull request #21795 from containers/renovate/golang.org-x-tools-0.x
Update module golang.org/x/tools to v0.18.0
2024-02-25 19:24:54 +00:00
openshift-merge-bot[bot] 1fc9d5ae6e
Merge pull request #21797 from mtrmac/sparse0
Reformulate sparseWriter
2024-02-25 14:36:08 +00:00
renovate[bot] 53b5fc781f
Update module golang.org/x/tools to v0.18.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-25 14:34:17 +00:00
renovate[bot] 6089769026
Update module github.com/openshift/imagebuilder to v1.2.6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-24 17:16:24 +00:00
openshift-merge-bot[bot] ea3221a862
Merge pull request #21805 from breca/main
[CI:DOCS] Adds example for secret creation from environment variable
2024-02-24 14:10:23 +00:00
openshift-merge-bot[bot] eabce71cd2
Merge pull request #21804 from n1hility/ready-race
Fix race conditions in hyperv backend
2024-02-24 14:07:38 +00:00
Brett Calliss 3b127286a7 Adds example for secret creation from environment variable
Signed-off-by: Brett Calliss <brett@obligatory.email>
2024-02-24 19:00:54 +11:00
Jason T. Greene b68d3c7a0e Fix race conditions in hyperv readiness checking
- Listen before starting the vm
- Fix a device race caused by lazy hv_vsock init by waiting on network manager

[NO NEW TESTS NEEDED]

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2024-02-24 01:43:28 -06:00
Romain Geissler 127a8060ab
Ignore docker's end point config when the final network mode isn't bridge.
Closes #21754

Signed-off-by: Romain Geissler <romain.geissler@amadeus.com>
2024-02-23 21:11:25 +00:00
openshift-merge-bot[bot] e4719cb7cd
Merge pull request #21788 from containers/renovate/github.com-klauspost-compress-1.x
Update module github.com/klauspost/compress to v1.17.7
2024-02-23 11:06:36 +00:00
Miloslav Trmač 5d303ca267 Reformulate sparseWriter to deal with starting/ending zeroes explicitly
... instead of using a multi-variable state machine.

The net effect of this code is exactly the same as the previous implementation,
except:
- the operation after Write() returns an error might differ
- If the file ends with zeroes, we don't Seek(-1), and
  we don't create a hole at all if it is too small, preferring
  to save a syscall.

But this formulation is hopefully easier to prove correct.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2024-02-23 02:09:39 +01:00
Miloslav Trmač c5434bf711 Expand sparseWriter tests
- Add more test cases
- Test that we create the expected (large) holes;
  don't enforce anything for the <zerosThresholt ones.

O)nly changes test code, should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2024-02-23 02:09:39 +01:00
openshift-merge-bot[bot] a19f4ef988
Merge pull request #21793 from mtrmac/allow-zstd-config
Adjust some tests to work with Zstd in containers.conf
2024-02-22 22:02:55 +00:00
openshift-merge-bot[bot] 36d8e27601
Merge pull request #21517 from jakecorrenti/fix-qemu-todos
machine: Address some QEMU TODOs
2024-02-22 21:21:50 +00:00
openshift-merge-bot[bot] 2882b74d4f
Merge pull request #21791 from containers/renovate/golang.org-x-net-0.x
Update module golang.org/x/net to v0.21.0
2024-02-22 21:16:08 +00:00
openshift-merge-bot[bot] bb44510db6
Merge pull request #21639 from cevich/require_build
Rearrange CI tasks for safety + efficiency
2024-02-22 21:05:08 +00:00
openshift-merge-bot[bot] 67998d9cfb
Merge pull request #21794 from mheon/bump_500rc3
Bump to v5.0.0-RC3
2024-02-22 20:59:39 +00:00
openshift-merge-bot[bot] add368b25d
Merge pull request #21792 from edsantiago/new-vms
Bump VMs. New pasta, gvisor
2024-02-22 19:59:10 +00:00