forked from runfinch/finch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds a --force flag to vm stop and remove (runfinch#178)
Signed-off-by: Sam Berning <[email protected]> Issue #, if available: runfinch#171 *Description of changes:* Adds a force flag to `finch vm stop` and `finch vm remove`. This gives us a native way to recover from "unrecognized system status" as seen in runfinch#171. *Testing done:* Unit testing, E2E testing. Force "unrecognized system status" by messing with the Lima instance ``` $ ./_output/bin/finch vm stop FATA[0000] unrecognized system status $ ./_output/bin/finch vm stop --force INFO[0000] Forcibly stopping Finch virtual machine... INFO[0001] Finch virtual machine stopped successfully $ ./_output/bin/finch vm start INFO[0000] Starting existing Finch virtual machine... INFO[0038] Finch virtual machine started successfully ``` ``` $ ./_output/bin/finch vm stop FATA[0000] unrecognized system status $ ./_output/bin/finch vm remove --force INFO[0000] Forcibly removing Finch virtual machine... INFO[0000] Finch virtual machine removed successfully $ ./_output/bin/finch vm status Nonexistent ``` - [x] 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. Signed-off-by: Sam Berning <[email protected]>
- Loading branch information
1 parent
903a1d4
commit d499a7d
Showing
5 changed files
with
165 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.