Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1918156

Summary: [machines] The page will be turned white if deleting the cdrom by "rm -rf" before installation
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, mpitt, skobyda, wshi, xchen, ymao
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.4   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 236 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-20 08:19:58 UTC
Description of problem:
Create a VM which is not installed. Then delete the cdrom by "rm -rf $vol_path". After that, go to the VM detail page, and click the "Install" button, the page will be turned 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 Create a VM which is not installed
2 delete the cdrom by "rm -rf $vol_path"
3 Go the VM detail page, and click "Install" button

Actual results:
1 The page will be turned white

Expected results: 
1 There will be an error shown on the page, and the page will not be turned white

Additional info:

Comment 1 Katerina Koukiou 2021-01-21 17:51:10 UTC
This was fixed upstream by https://github.com/cockpit-project/cockpit/pull/15154.

Comment 2 YunmingYang 2021-02-04 05:33:44 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 which is not installed
2 Delete the cdrom by "rm -rf $vol_path"
3 Go the VM detail page, and 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 again. And the page won't be turned white. There will be also an error under the VM name, and the error can be closed. The VM also still exists.

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

Comment 5 YunmingYang 2021-02-07 06:11:55 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 which is not installed
2 Delete the cdrom by "rm -rf $vol_path"
3 Go the VM detail page, and 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 again. And the page won't be turned white. There will be also an error under the VM name, and the error can be closed. The VM also 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