Bug 1771333
Summary: | Cannot import template from OVA if it has disks | ||
---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Lucia Jelinkova <ljelinko> |
Component: | BLL.Virt | Assignee: | Liran Rotenberg <lrotenbe> |
Status: | CLOSED WORKSFORME | QA Contact: | Nisim Simsolo <nsimsolo> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.4.0 | CC: | bugs, derez, nsimsolo, rbarry, tnisan |
Target Milestone: | ovirt-4.4.1 | Flags: | pm-rhel:
ovirt-4.4+
|
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-05-19 15:36:32 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1825638 | ||
Bug Blocks: |
Description
Lucia Jelinkova
2019-11-12 07:53:34 UTC
I looked at the issue and it seems that it might have been introduced by this commit: https://github.com/oVirt/ovirt-engine/commit/797da354117b4d5bf3d83524d2275c5d01fdfe7e#diff-97a4ba06e96e5776340cd0d0ab200822 The newly added code expects the DiskImage to have storagePoolId set, but it was not for the OVA import. ImportVmTemplateFromOvaCommand overrides validateSourceStorageDomain method and does not set the storagePoolId. I tried to set the correct storagePoolId to the disk images but it started to fail with another NullPointerException in PrepareImageVDSCommand -> JsonRpcVdsServer.prepareImage. The PrepareImageReturn expected the response to contain "info" but it contained "status" saying: Storage domain does not exist: (u'00000000-0000-0000-0000-000000000000',). I do not know the logic behind the code so I would appreciate help from the storage team with this. What should be the "correct" storage domain here? Or could you take over the issue and investigate? Daniel, you are the author of the patch from comment #1, can you please assist Lucia? Might be fixed in latest OVA bugs. I tried the steps in comment #0 and it works. Closing as works for me. |