diff options
author | Shane Smith <shane.smith@shopify.com> | 2022-06-15 14:58:08 -0400 |
---|---|---|
committer | Shane Smith <shane.smith@shopify.com> | 2022-06-28 13:28:38 -0400 |
commit | 59a7ac210b56865540131c73777a90ebe96c591c (patch) | |
tree | 601a2ec2d5f07e8c07dbc1eb1d2a046b232dd07e /pkg/k8s.io | |
parent | 8f79604864412a05d5d1b8614cb356f5b481306b (diff) | |
download | podman-59a7ac210b56865540131c73777a90ebe96c591c.tar.gz podman-59a7ac210b56865540131c73777a90ebe96c591c.tar.bz2 podman-59a7ac210b56865540131c73777a90ebe96c591c.zip |
Make `podman machine stop` wait for qemu to exit
- New `VMPidFilePath` field in MachineVM config holds the path for the
qemu PID file
- qemu is now started with the `-pidfile` argument set to `VMPidFilePath`
- Machines created before this won't have the VM PID file configured,
stopping these VMs will revert back to waiting on the state to change
away from `Running`, plus an added 2s sleep to give time for the VM to
exit and to avoid potential issues
- Machines created after this will have a VM PID file configured and
stopping the machine will wait indefinitely for the VM to exit
[NO NEW TESTS NEEDED]
Signed-off-by: Shane Smith <shane.smith@shopify.com>
Diffstat (limited to 'pkg/k8s.io')
0 files changed, 0 insertions, 0 deletions