Bug 1944057

Summary: [machines] The VM still exist after deleting it
Product: Red Hat Enterprise Linux 8 Reporter: YunmingYang <yunyang>
Component: cockpit-appstreamAssignee: Katerina Koukiou <kkoukiou>
Status: NEW --- QA Contact: YunmingYang <yunyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.4CC: leiwang, mpitt, skobyda, wshi, xchen, ymao
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-20 07:28:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description YunmingYang 2021-03-29 07:15:48 UTC
Description of problem:
Prepare a VM without checking "Immediately start VM". Click "Install". Then delete the VM, the VM will still exist

Version-Release number of selected components (if applicable):
cockpit-machines-238.2-1.el8.noarch
cockpit-238.2-1.el8.x86_64
libvirt-dbus-1.3.0-2.module+el8.3.0+6423+e4cb6418.x86_64

How reproducible:
100%

Steps to Reproduce:
1 Prepare a VM without checking "Immediately start VM"
2 Click "Install"
3 Delete the VM

Actual results:
1 The VM is still exist after deletion

Expected results: 
1 The VM can be deleted correctly

Additional info:

Comment 2 RHEL Program Management 2022-09-29 07:27:53 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Comment 4 Simon Kobyda 2022-11-24 00:41:32 UTC
Hey, I can no longer reproduce this issue with cockpit-machines 278. Can you check if it's still reproducible? 
A lot has been already changed and refactored in our creation process during a past year and a half, so maybe this bug was fixed along the way.

Comment 5 YunmingYang 2022-11-29 11:12:09 UTC
I could reproduce this issue with cockpit-machines-279-1.el8.noarch, but I think the reproduced steps are needed to be changed as some changed and refactored is merged in our creation process during past year and a half.

Steps:
1 Click "Create VM", use "Download an OS" for "Installation type", input "Fedora Linux 36", then click "Create and edit", after that wait until the page is redirected to the VM detail page
2 Click "Install", remove the VM immediately after "Install" button is changed to "Shut off"

Additional information:
In step 2, when the button is still "Install" after clicking, click "Delete" of the VM, the VM will also exist after removing

Comment 7 RHEL Program Management 2023-04-20 07:28:14 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.