Bug 1916120

Summary: [machines] The VM detail page turns white when installing
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-14 09:23:47 UTC
Description of problem:
If 'default' network is inactive, then create a VM with "Local install media" and without checking "Immediately start VM", go to the detail page and click "Install" button, the detail page will turn white.

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 Make sure default network status is inactive
2 Create a VM with "Local install media" and without checking "Immediately start VM"
3 Go to the detail page of the VM
4 Click "Install" button

Actual results:
1 After step 4, the VM detail page turns white

Expected results: 
1 After step 4, VM detail page will be redirected to VM list page correctly, and there will be an error shown, which is "network 'default' is not active"

Additional info:

Comment 1 Katerina Koukiou 2021-01-15 11:40:31 UTC
PR posted upstream https://github.com/cockpit-project/cockpit/pull/15154

The only point I would like to make here, is that the expected behavior when the user is in the VM details and clicks the 'Install' button is IMO slightly different.

* the user should remain in the VM details page,
* the 'Install' button should get disabled
* the 'Install' button should get marked with an spinner to show indicate the in progress operation
* in the case of failure there will indeed be a alert present in the same page

Comment 2 YunmingYang 2021-02-04 05:24:29 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 Make sure default network status is inactive
2 Create a VM with "Local install media" and without checking "Immediately start VM"
3 Go to the detail page of the VM
4 Click "Install" button

Pre-verified Results:
1 After clicking the 'Install' button, the button is disabled, and get marked with an spinner to indicate the in progress operation. Then, after some seconds, the "Install" button is enabled. There will be an error shown under the VM name,the error message is "network 'default' is not active". The error can be closed. The VM still exists.

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

Comment 5 YunmingYang 2021-02-07 05:37:11 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 Make sure default network status is inactive
2 Create a VM with "Local install media" and without checking "Immediately start VM"
3 Go to the detail page of the VM
4 Click "Install" button

Test Results:
1 After clicking the 'Install' button, the button is disabled, and get marked with an spinner to indicate the in progress operation. Then, after some seconds, the "Install" button is enabled. There will be an error shown under the VM name,the error message is "network 'default' is not active". The error can be closed. The VM still exists.

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