Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2120228

Summary: ISO broken after upload via Browser.
Product: [oVirt] ovirt-engine Reporter: Tzu-Yi Liao <steven>
Component: GeneralAssignee: Artiom Divak <adivak>
Status: CLOSED CURRENTRELEASE QA Contact: Ilia Markelov <imarkelo>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.5.2CC: ahadas, bugs, fdelorey, germano, gveitmic, lsvaty, michal.skrivanek, mperina, mtessun, ovirt, sfishbai
Target Milestone: ovirt-4.5.3Keywords: Regression
Target Release: ---Flags: mperina: ovirt-4.5+
lsvaty: blocker-
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: ovirt-engine-4.5.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-16 07:22:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
VM can not boot from ISO. none

Description Tzu-Yi Liao 2022-08-22 09:47:49 UTC
Created attachment 1906890 [details]
VM can not boot from ISO.

Description of problem:
1. ISO broken after upload via browser (Firefox and Chrome).
2. VM one time boot fail by using ISO.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Download Rocky Linux 9 or Ubuntu ISO (any OS ISO).
2. Upload by browser (Firefox and Chrome)
3. Create VM.
4. [Run once] boot and select uploaded ISO.


Actual results:
VM Can not boot from ISO (Get not fount message, please review attachment file).

Expected results:


Additional info:
Test Client: MacOS (Firefox and Chrome)

1. Check ISO sha256 of ubuntu-22.04.1-live-server-amd64.iso: 10f19c5b2b8d6db711582e0e27f5116296c34fe4b313ba45f9b201a5007056cb
2. `qemu-img` Check before upload:
qemu-img info ubuntu-22.04.1-live-server-amd64.iso 
image: ubuntu-22.04.1-live-server-amd64.iso
file format: raw
virtual size: 1.37 GiB (1474873344 bytes)
disk size: 1.37 GiB

2. Upload ISO.
3. Check uploaded iso file, get different checksum: d5b8dfbe1daebf9a5e85e2c24234231aa886b799fa1ec50dcec9a1c830ac2a32
4. Check by `qemu-img info`:
image: 86a15ac8-743d-480a-b833-6f45ea34a901
file format: qcow2
virtual size: 1.37 GiB (1474875392 bytes)
disk size: 1.37 GiB
cluster_size: 65536
Format specific information:
    compat: 1.1
    compression type: zlib
    lazy refcounts: false
    refcount bits: 16
    corrupt: false
    extended l2: false

5. Compare with 4.4.5 uploaded file, `qemu-img info` get RAW type:
image: 944a0e76-bb6c-4878-9c26-2dc08cece284
file format: raw
virtual size: 1.37 GiB (1474875392 bytes)
disk size: 1.37 GiB

Comment 1 RHEL Program Management 2022-08-22 14:01:38 UTC
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.

Comment 2 Michal Skrivanek 2022-08-23 06:03:06 UTC
is it data or iso storage domain you're using? I observed same behavior on data domain, but on iso it worked for me.

Comment 3 Arik 2022-08-23 07:14:58 UTC
we've changed the default selection of "Enable incremental backup" so now it's selected by default but yeah, in upload-image it leads to this awkward situation in which an ISO changes to QCOW.
we need to make sure that for ISOs we disable the "Enable incremental backup" option and create them as RAW disks
as a workaround, the "Enable incremental backup" can be unchecked until then

Comment 4 RHEL Program Management 2022-08-23 07:15:06 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 5 Arik 2022-08-23 07:17:06 UTC
(a consequence of the fix for bz 1915029)

Comment 6 RHEL Program Management 2022-08-29 06:47:57 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 7 RHEL Program Management 2022-08-29 08:20:58 UTC
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.

Comment 10 Ilia Markelov 2022-09-14 10:46:48 UTC
Verified.

VM successfully ran from the uploaded ISO. "Enable Incremental Backup" option is not available for ISO anymore.

Versions:
engine-4.5.3-0.1.el8ev