Bug 1339686
Summary: | REST-API | Cannot delete template that was import from export_domain | ||||||
---|---|---|---|---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Meni Yakove <myakove> | ||||
Component: | BLL.Virt | Assignee: | Tal Nisan <tnisan> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Carlos Mestre González <cmestreg> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 4.0.0 | CC: | acanan, amureini, bugs, gklein, myakove, tjelinek, tnisan | ||||
Target Milestone: | ovirt-4.0.0-rc | Keywords: | Automation, Regression | ||||
Target Release: | 4.0.0 | Flags: | rule-engine:
ovirt-4.0.0+
rule-engine: blocker+ rule-engine: planning_ack+ tnisan: devel_ack+ acanan: testing_ack+ |
||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-07-05 07:56:51 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
Meni Yakove
2016-05-25 15:29:36 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. could you please attach engine logs? Created attachment 1162368 [details]
server and engine logs
I was able to simulate it - it happens only on templates which have been exported than imported and than tried to be deleted using REST (using webadmin it works). The issue is in VmTemplateHandler.updateDisksFromDb() on: DiskVmElement dve = DbFacade.getInstance().getDiskVmElementDao().get(new VmDeviceId(dit.getId(), vmt.getId())); where the "dve" is for some reason null. @Tal: It seems as a consequence of 6e55d137d5ca32085da8c4d2bf2b6841463422ae which introduced the DiskVmElement - moving to storage for further investigation. Delete of a template that was imported from an export domain succeeds: <action> <job href= "/ovirt-engine/api/jobs/dc9dfd67-6c6e-430c-b96c-01d7f2864b80" id="dc9dfd67-6c6e-430c-b96c-01d7f2864b80"/> <status>complete</status> </action> version: rhevm-4.0.0.4-0.1.el7ev.noarch oVirt 4.0.0 has been released, closing current release. |