spiegel_podman/pkg/machine
Valentin Rothberg f8abd7ff75 machine config: make write atomic
As indicated in #21849, loading the machine config can flake/fail with
an EOF JSON error indicating an incomplete file.  Address the issue by
atomically writing the config.  This way, it is not possible to load an
incomplete or partially written file.  The lock can be acquired later on
to sync state.

[NO NEW TESTS NEEDED] as it's a hard-to-hit race.

Fixes: #21849
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2024-02-28 09:44:41 +01:00
..
applehv Enable lint for Darwin and fix identified issues 2024-02-26 11:01:54 -05:00
compression Reformulate sparseWriter to deal with starting/ending zeroes explicitly 2024-02-23 02:09:39 +01:00
connection pkg/machine: make only one AddConnection() call 2024-02-16 14:58:17 +01:00
define zstd now default compression for podman machine 2024-02-20 14:26:41 -06:00
e2e Ensure HyperV 9p mounts work when a dir doesn't exist 2024-02-27 14:33:53 -05:00
hyperv Ensure HyperV 9p mounts work when a dir doesn't exist 2024-02-27 14:33:53 -05:00
ignition Fix race conditions in hyperv readiness checking 2024-02-24 01:43:28 -06:00
lock podman5 machine reconfig 1 2024-02-07 08:17:43 -06:00
ocipull pkg/machine/ocipull: add default policy.json file 2024-02-27 15:29:59 +01:00
os Bump Go module to v5 2024-02-08 09:35:39 -05:00
provider wsl - wip 2024-02-11 12:58:11 -06:00
proxyenv machine: implement http proxy logic for all providers 2024-02-22 11:23:45 +01:00
qemu Change QEMU netdev to Unix domain socket 2024-02-26 20:02:46 +02:00
shim Merge pull request #21786 from Luap99/machine-gvproxy-cleanup 2024-02-22 16:13:41 +00:00
sockets Extract waitForGvProxy into shared utility function 2024-02-19 18:00:00 +02:00
stdpull wsl - wip 2024-02-11 12:58:11 -06:00
vmconfigs machine config: make write atomic 2024-02-28 09:44:41 +01:00
wsl machine: implement http proxy logic for all providers 2024-02-22 11:23:45 +01:00
cleanup.go Machine: Teardown on init failure 2023-10-12 09:26:06 -04:00
config.go Remove image provenance from machine inspect 2024-02-22 08:34:27 -05:00
config_test.go pkg/machine: cleanup MakeSSHURL 2024-02-16 14:41:14 +01:00
fedora_unix.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
fedora_windows.go Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
gvproxy.go pkg/machine: ignore gvproxy pidfile not exists error 2024-02-22 12:39:20 +01:00
gvproxy_unix.go Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
gvproxy_windows.go Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
keys.go Use single persistent ssh key for all machines 2024-01-04 23:47:49 -05:00
machine_common.go Complete WSL implementation, refactor a few areas 2024-02-11 12:58:11 -06:00
machine_unix.go Complete WSL implementation, refactor a few areas 2024-02-11 12:58:11 -06:00
machine_unsupported.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
machine_windows.go Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
options_darwin.go podman5 machine reconfig 1 2024-02-07 08:17:43 -06:00
options_freebsd.go podman5 machine reconfig 1 2024-02-07 08:17:43 -06:00
options_linux.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
options_windows.go podman5 machine reconfig 1 2024-02-07 08:17:43 -06:00
ports.go Implement automatic port reassignment on Windows 2023-08-21 07:23:31 -05:00
ports_unix.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
ports_windows.go Implement automatic port reassignment on Windows 2023-08-21 07:23:31 -05:00
pull.go Prune FCOS related code 2024-02-15 21:05:17 -06:00
qemuprovider.go podman5 machine reconfig 1 2024-02-07 08:17:43 -06:00
ssh.go machine: implement http proxy logic for all providers 2024-02-22 11:23:45 +01:00
ssh_unix.go machine: implement http proxy logic for all providers 2024-02-22 11:23:45 +01:00
ssh_windows.go machine: implement http proxy logic for all providers 2024-02-22 11:23:45 +01:00
update.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
volumes.go Bump Go module to v5 2024-02-08 09:35:39 -05:00