Bug 2076042 - Error in engine.log when converting disk format/allocation policy
Summary: Error in engine.log when converting disk format/allocation policy
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.5.0.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.5.1
: ---
Assignee: Benny Zlotnik
QA Contact: Ilia Markelov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-17 10:53 UTC by sshmulev
Modified: 2022-06-23 05:54 UTC (History)
5 users (show)

Fixed In Version: ovirt-engine-4.5.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-23 05:54:58 UTC
oVirt Team: Storage
Embargoed:
pm-rhel: ovirt-4.5?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-engine pull 280 0 None open core: handle missing allocation policy/format when converting 2022-04-17 10:57:26 UTC
Github oVirt ovirt-engine pull 284 0 None open Refactor ConvertDiskCommand#getJobMessageProperties 2022-04-18 08:25:21 UTC
Red Hat Issue Tracker RHV-45783 0 None None None 2022-04-17 10:59:51 UTC

Description sshmulev 2022-04-17 10:53:06 UTC
Description of problem:
The following error shows up in the logs every time I try to perform convert:
"Failed to prepare command of type 'ConvertDisk' for monitoring due to error 'null'"

It doesn't matter which convert, it happens each time.

Version-Release number of selected component (if applicable):
engine-4.5.0.2-0.7.el8ev
vdsm-4.50.0.12-1.el8ev.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Create raw/preallocated/incremental_disabled disk
POST engine/ovirt-engine/api/disks
<disk>
  <storage_domains>
    <storage_domain id="{{ISCSI_SD}}"/>
  </storage_domains>
  <name>ISCSI_Raw-Preallocated-Disabled</name>
  <provisioned_size>1073741824</provisioned_size>
  <format>raw</format>
  <sparse>false</sparse>
  <backup>None</backup>
</disk>

2. Convert the disk to cow/preallocated/incremental_enabled
POST engine/ovirt-engine/api/disks/{{ISCSI_Raw-Preallocated-Disabled}}/convert
<action>
    <disk>
        <format>cow</format>
        <backup>incremental</backup>
    </disk>
</action>

Actual results:
The disk is converted successfully but with the error "Failed to prepare command of type 'ConvertDisk' for monitoring due to error 'null'"

Expected results:
The disk should be converted to cow/preallocated/incremental_enabled without any error logs

Comment 2 Ilia Markelov 2022-06-13 09:16:07 UTC
Verified.

Disk is converted successfully without any error logs.

Versions:
engine-4.5.1-0.62.el8ev 
vdsm-4.50.1.1-1.el8ev.x86_64

Comment 3 Sandro Bonazzola 2022-06-23 05:54:58 UTC
This bugzilla is included in oVirt 4.5.1 release, published on June 22nd 2022.
Since the problem described in this bug report should be resolved in oVirt 4.5.1 release, it has been closed with a resolution of CURRENT RELEASE.
If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.