Bug 1797500

Summary: Add disk operation failed to complete.
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Macku <jmacku>
Component: ovirt-engineAssignee: Benny Zlotnik <bzlotnik>
Status: CLOSED ERRATA QA Contact: meital avital <mavital>
Severity: high Docs Contact:
Priority: high    
Version: 4.4.0CC: bpelled, khakimi, michal.skrivanek, pelauter, tnisan
Target Milestone: ovirt-4.4.0Keywords: AutomationBlocker, Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: org.ovirt.engine-root-4.4.0-19 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-04 13:21:33 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
ovirt-engine-logs none

Description Jiri Macku 2020-02-03 10:00:53 UTC
Created attachment 1657319 [details]
ovirt-engine-logs

Description of problem:

While importing image from glace the import is failing with the following engine ERROR:

2020-02-03 04:00:21,065+02 ERROR [org.ovirt.engine.core.bll.storage.disk.AddDiskCommand] (EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-52) [2dc8b894] Error during ValidateFailure.: java.lang.NullPointerExc
eption
        at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidator.verifyVirtIoScsi(DiskVmElementValidator.java:80)
        at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidator.isVirtIoScsiValid(DiskVmElementValidator.java:54)
        at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.storage.disk.AddDiskCommand.checkIfImageDiskCanBeAdded(AddDiskCommand.java:299)
        at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.storage.disk.AddDiskCommand.validate(AddDiskCommand.java:195)
        at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.CommandBase.internalValidate(CommandBase.java:804)
        at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.CommandBase.executeAction(CommandBase.java:413)
        at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.executor.DefaultBackendActionExecutor.execute(DefaultBackendActionExecutor.java:13)
        at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.Backend.runAction(Backend.java:451)
        at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.Backend.runActionImpl(Backend.java:433)
        at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.Backend.runInternalAction(Backend.java:639)
        at jdk.internal.reflect.GeneratedMethodAccessor195.invoke(Unknown Source)
...


Version-Release number of selected component (if applicable):
ovirt-engine-4.4.0-0.18.master.el7.noarch


How reproducible:
100%

Steps to Reproduce:
1. Install engine
2. In UI select image in glance 
3. Try to import the image as template

Actual results:
The image is not added:
User admin@internal-authz failed to import image GlanceDisk-502938d as template GlanceTemplate-ecb6cb7 to domain iscsi_0.


Expected results:
The image is added.

Additional info:
The error appears also when  oVirt/ovirt-ansible-image-template is used for adding the template.

Comment 1 Michal Skrivanek 2020-02-03 11:17:55 UTC
seems like a regression introduced by https://gerrit.ovirt.org/#/c/106367/

Comment 4 Tal Nisan 2020-02-03 11:51:37 UTC
(In reply to Michal Skrivanek from comment #1)
> seems like a regression introduced by https://gerrit.ovirt.org/#/c/106367/

Indeed, Benny discovered that regression and fixed it

Comment 13 Daniel 2020-03-01 10:03:54 UTC
Verified via web-admin on version 4.4.0-0.20.master.el7.
Checked logs and it all seems clear and work as expected. Logs were clean without any errors nor warnings.
The image is added as it should.

Comment 16 errata-xmlrpc 2020-08-04 13:21:33 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 (Important: RHV Manager (ovirt-engine) 4.4 security, 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/RHSA-2020:3247