Bug 1916597

Summary: [machines] The page will turn white if undefining the VM
Product: Red Hat Enterprise Linux 8 Reporter: YunmingYang <yunyang>
Component: cockpit-appstreamAssignee: Katerina Koukiou <kkoukiou>
Status: CLOSED ERRATA QA Contact: YunmingYang <yunyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.4CC: leiwang, mmarusak, mpitt, skobyda, wshi, xchen, ymao
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.4   
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: 2021-05-18 15:53:30 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-01-15 08:37:51 UTC
Description of problem:
Create a VM without checking "Immediately start VM". Then switch to the VM detail page. Undefine the VM by "virsh undefine $vm-name"

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

How reproducible:
100%

Steps to Reproduce:
1 Create a  VM without checking "Immediately start VM"
2 Go to the VM detail page
3 undefine the VM by "virsh undefine $vm-name"

Actual results:
1 After step 3, the page will turn white

Expected results: 
1 After step 3,the page will be directed to the VM list page

Additional info:

Comment 1 Katerina Koukiou 2021-01-18 11:58:12 UTC
PR posted upstream https://github.com/cockpit-project/cockpit/pull/15158

Comment 2 YunmingYang 2021-02-04 05:05:15 UTC
Pre-verified Versions:
cockpit-machines-236-1.el8.noarch
cockpit-236-1.el8.x86_64
libvirt-dbus-1.3.0-2.module+el8.3.0+6423+e4cb6418.x86_64

Pre-verified Steps:
1 Create a  VM without checking "Immediately start VM"
2 Go to the VM detail page
3 undefine the VM by "virsh undefine $vm-name"

Pre-verified Results:
1 After step 3, the VM detail page will be directed to another page which shows "Go VMs list" button and "VM test does not exist on system connection". Then, if clicking "Go VMs list" button, the page will be directed to VMs list page.

According to the results, change ‘Verified’ status to ‘TESTED’.

Comment 5 YunmingYang 2021-02-07 06:06:54 UTC
Test Versions:
cockpit-machines-237-1.el8.noarch
cockpit-236-1.el8.x86_64
libvirt-dbus-1.3.0-2.module+el8.3.0+6423+e4cb6418.x86_64


Test Steps:
1 Create a  VM without checking "Immediately start VM"
2 Go to the VM detail page
3 undefine the VM by "virsh undefine $vm-name"

Test Results:
1 After step 3, the VM detail page will be directed to another page which shows "Go VMs list" button and "VM test does not exist on system connection". Then, if clicking "Go VMs list" button, the page will be directed to VMs list page.

According to the results, move the status to VERIFIED.

Comment 7 errata-xmlrpc 2021-05-18 15:53:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (cockpit-appstream bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1875