Bug 2215599

Summary: [machines] The raw disk is attached by qcow2 format
Product: Red Hat Enterprise Linux 8 Reporter: YunmingYang <yunyang>
Component: cockpit-appstreamAssignee: Simon Kobyda <skobyda>
Status: VERIFIED --- QA Contact: YunmingYang <yunyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.9CC: jscotka, kkoukiou, mpitt, qzhang, wshi, xchen, ymao
Target Milestone: rcKeywords: Triaged
Target Release: 8.9   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: cockpit-appstream-296-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 2023-06-16 17:57:07 UTC
Description of problem:
For a closed VM, open "Add disk" dialog, then select "Custom path" to attach the disk. Then select "Device" to "CD/DVD disc" first, after that input a raw disk, then click "Add" of the dialog. The format of the disk is qcow2, not raw.

Version-Release number of selected components (if applicable):
cockpit-machines-292-1.el8.noarch
cockpit-292-1.el8.x86_64
libvirt-dbus-1.3.0-2.module+el8.8.0+16781+9f4724c2.x86_64

How reproducible:
100%

Steps to Reproduce:
1 Create a closed VM, then enter the VM detail page
2 Click "Add disk", then select "Custom path"
3 Select "Device" to "CD/DVD disc"
4 Input a raw disk path
5 Click "Add" on the dialog
6 Check the format of the disk attached above

Actual results:
1 The format of the disk is qcow2

Expected results:
1 The format of the disk should be raw

Additional info:

Comment 4 YunmingYang 2023-07-18 07:33:13 UTC
Test Versions:
cockpit-machines-296-1.el8.noarch
cockpit-296-1.el8.x86_64
libvirt-dbus-1.3.0-2.module+el8.9.0+18724+20190c23.x86_64

Test Steps:
1 Create a closed VM, then enter the VM detail page
2 Click "Add disk", then select "Custom path"
3 Select "Device" to "CD/DVD disc"
4 Input a raw disk path
5 Click "Add" on the dialog
6 Check the format of the disk attached above

Test Results:
1 The format of the disk is raw

According to the results, move status to VERIFIED.