Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert: "always force stop when using Virtualization.framework" #370

Merged
merged 3 commits into from
Feb 14, 2024

Conversation

pendo324
Copy link
Member

This reverts commit c521f1f.

Issue #, if available: After #368 is merged, the change to always force stop the VM is no longer necessary, since the upstream issue mentioned in #350 has been fixed in the new version of Lima.

Description of changes: Undo the changes in #350

Testing done:

  • local testing

  • unit tests

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Refs: c521f1f

@pendo324 pendo324 requested a review from ningziwen April 17, 2023 23:19
@pendo324 pendo324 self-assigned this Apr 17, 2023
@pendo324 pendo324 force-pushed the revert-always-use-force-stop-vz branch from 9f4073b to dd7853d Compare April 17, 2023 23:19
@pendo324 pendo324 marked this pull request as ready for review April 17, 2023 23:20
ningziwen
ningziwen previously approved these changes Apr 17, 2023
@pendo324
Copy link
Member Author

Yeah, I don't think we should merge this yet.

Looks like the new Lima release didn’t fix our issue 100% of the time. I actually can’t repro it after the first vm init + vm stop (tried like 10 times). To clarify, the issue still seems to exist on vm init + vm stop, but not vm start + vm stop.

I’ll see if this happens with regular/non-Finch Lima and post on the Lima GitHub if there’s not already an issue

INFO[0000] Stopping existing Finch virtual machine...
ERRO[0180] Finch virtual machine failed to stop, debug logs:
time="2023-04-18T12:54:33-04:00" level=info msg="Sending SIGINT to hostagent process 89382"
time="2023-04-18T12:54:33-04:00" level=info msg="Waiting for the host agent and the driver processes to shut down"
time="2023-04-18T12:54:33-04:00" level=info msg="[hostagent] 2023/04/18 12:52:50 tcpproxy: for incoming conn 127.0.0.1:56378, error dialing \"192.168.5.15:22\": connect tcp 192.168.5.15:22: no route to host"
time="2023-04-18T12:54:33-04:00" level=info msg="[hostagent] 2023/04/18 12:53:00 tcpproxy: for incoming conn 127.0.0.1:56401, error dialing \"192.168.5.15:22\": connect tcp 192.168.5.15:22: connection was refused"
time="2023-04-18T12:54:33-04:00" level=info msg="[hostagent] 2023/04/18 12:53:10 tcpproxy: for incoming conn 127.0.0.1:56427, error dialing \"192.168.5.15:22\": connect tcp 192.168.5.15:22: connection was refused"
time="2023-04-18T12:54:33-04:00" level=info msg="[hostagent] Received SIGINT, shutting down the host agent"
time="2023-04-18T12:54:33-04:00" level=info msg="[hostagent] Shutting down the host agent"
time="2023-04-18T12:54:33-04:00" level=info msg="[hostagent] Stopping forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/alvajus/Code/finch/_output/lima/data/finch/ga.sock\" (host)"
time="2023-04-18T12:54:33-04:00" level=info msg="[hostagent] Unmounting disk \"finch\""
time="2023-04-18T12:54:33-04:00" level=info msg="[hostagent] Shutting down VZ"
time="2023-04-18T12:54:35-04:00" level=info msg="[hostagent] panic: runtime/cgo: misuse of an invalid Handle"
time="2023-04-18T12:54:35-04:00" level=info msg="[hostagent] goroutine 17 [running, locked to thread]:"
time="2023-04-18T12:54:35-04:00" level=info msg="[hostagent] runtime/cgo.Handle.Value(...)"
time="2023-04-18T12:54:35-04:00" level=info msg="[hostagent] \t/usr/local/Cellar/go/1.20.3/libexec/src/runtime/cgo/handle.go:124"
time="2023-04-18T12:54:35-04:00" level=info msg="[hostagent] github.com/Code-Hex/vz/v3.changeStateOnObserver("
time="2023-04-18T12:54:35-04:00" level=info msg="[hostagent] 0xc000006601?"
time="2023-04-18T12:54:35-04:00" level=info msg="[hostagent] )"
time="2023-04-18T12:54:35-04:00" level=info msg="[hostagent] \t/Users/ec2-user/go/pkg/mod/github.com/!code-!hex/vz/[email protected]/virtualization.go:160 +0xb4"
time="2023-04-18T12:57:33-04:00" level=fatal msg="did not receive an event with the \"exiting\" status"
FATA[0180] exit status 1

Shubhranshu153
Shubhranshu153 previously approved these changes Feb 14, 2024
Signed-off-by: Justin Alvarez <[email protected]>
@pendo324
Copy link
Member Author

Overriding and merging due to a few Windows test flakes

@pendo324 pendo324 merged commit cb3051e into runfinch:main Feb 14, 2024
20 of 21 checks passed
mharwani pushed a commit that referenced this pull request Feb 21, 2024
🤖 I have created a release *beep* *boop*
---


## [1.1.2](v1.1.1...v1.1.2)
(2024-02-20)


### Build System or External Dependencies

* **deps:** Bump github.com/docker/docker from 25.0.1+incompatible to
25.0.3+incompatible
([#799](#799))
([d761301](d761301))
* **deps:** Bump github.com/goccy/go-yaml from 1.11.2 to 1.11.3
([#780](#780))
([2e616ff](2e616ff))
* **deps:** Bump github.com/shirou/gopsutil/v3 from 3.23.12 to 3.24.1
([#787](#787))
([55f6d92](55f6d92))
* **deps:** Bump golang.org/x/crypto from 0.18.0 to 0.19.0
([#806](#806))
([3fbc87c](3fbc87c))
* **deps:** Bump golang.org/x/tools from 0.17.0 to 0.18.0
([#807](#807))
([7323751](7323751))
* **deps:** Bump k8s.io/apimachinery from 0.29.1 to 0.29.2
([#820](#820))
([6ca0f7f](6ca0f7f))
* **deps:** Bump submodules and dependencies
([#795](#795))
([ec77f1a](ec77f1a))
* **deps:** Bump submodules and dependencies
([#805](#805))
([0bf9148](0bf9148))


### Bug Fixes

* Correct typo in type name of struct (NerdctlClientOuput)
([#743](#743))
([13de2b9](13de2b9))
* Env variable CONTAINERD_SNAPSHOTTER cleared on overlayfs and ref…
([#816](#816))
([d222a34](d222a34))
* msi release tests cleanup
([#819](#819))
([0f23660](0f23660))
* stop Finch on uninstall
([#818](#818))
([a96788b](a96788b))
* **windows-installer:** add new cleanup script on install
([#824](#824))
([fccfa1d](fccfa1d))
* **windows-installer:** ignore FilesInUse/Restart dialogue
([#823](#823))
([f64835d](f64835d))
* **windows-installer:** uninstall script behavior
([#822](#822))
([ace37ea](ace37ea))


### Reverts

* "always force stop when using Virtualization.framework"
([#370](#370))
([cb3051e](cb3051e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants