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

VM Destroy Button Missing After Stopping VM #104

Open
JoelProminic opened this issue Jan 23, 2024 · 2 comments
Open

VM Destroy Button Missing After Stopping VM #104

JoelProminic opened this issue Jan 23, 2024 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@JoelProminic
Copy link
Contributor

JoelProminic commented Jan 23, 2024

While testing with Super.Human.Installer 0.8.20 and Development 0.8.21 on macOS Monterey and Ventura, I have noticed that in at least some cases I can't delete the VirtualBox VM after stopping a server:

image

I confirmed that the VirtualBox VM still exists:

% vagrant status
Current machine states:

7839--demo2.STARTcloud2.com poweroff (virtualbox)

Note that I have enabled "Do not stop/destroy servers that failed to start" in the Settings page, since I want to debug problems with the provisioners. In my above screenshot I see that the first VM shows "Stopped (provisioned)", while the second shows "Stopped" only. So, my suspicion is that this bug triggers when the "provisioned" tab is not set.

Steps to reproduce:

  1. Create a new server
  2. Run the server. This has usually been failing in my tests
  3. Stop the VM
  4. BUG: the delete button is not available once the state updates. I can delete the server, but this leaves the VirtualBox VM
  5. Restart SHI. BUG: the delete button is still missing
  6. Workaround: Open the directory in Terminal, and run "vagrant destroy". Restart SHI, and the server will be ready to be created again.
@piotrzarzycki21
Copy link
Contributor

In second case 7839 - wasn't provisioned/started at all yes ? In that case Delete button is priovided (last one) which has nothing to do with stopping the server itself. Do you expect in second case to have red button for stopping server ? Does second case exists in Virtual Box ?

@piotrzarzycki21 piotrzarzycki21 modified the milestones: v0.8.21, v0.8.22 Feb 1, 2024
@JoelProminic JoelProminic changed the title VM Delete Button Missing After Stopping VM VM Destroy Button Missing After Stopping VM Feb 13, 2024
@JoelProminic
Copy link
Contributor Author

Yes, I believe the demo2 VM was not successfully created, which is why it did not have the "provisioned" flag set. However, because I had enabled "Do not stop/destroy servers that failed to start", the VM was not stopped or deleted manually. I wanted to manually stop and destroy the VM so that I could rerun my test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants