Bug 1496805 - GET to /api/disk return operation failed after importing VM with memory snapshot
Summary: GET to /api/disk return operation failed after importing VM with memory snapshot
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.2.0
: ---
Assignee: Eyal Shenitzky
QA Contact: Raz Tamir
URL:
Whiteboard:
: 1496809 1497620 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-28 12:44 UTC by Raz Tamir
Modified: 2017-12-20 11:45 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-20 11:45:32 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.2+
rule-engine: blocker+


Attachments (Terms of Use)
engine and vdsm logs (2.27 MB, application/x-gzip)
2017-09-28 12:44 UTC, Raz Tamir
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1497512 0 unspecified CLOSED Memory snapshots images of a VM imported as active=false instead of active=true 2021-02-22 00:41:40 UTC
oVirt gerrit 82413 0 master MERGED core: repair aggregateDiskImagesSnapshots. 2017-10-01 10:29:06 UTC

Internal Links: 1497512

Description Raz Tamir 2017-09-28 12:44:50 UTC
Created attachment 1331974 [details]
engine and vdsm logs

Description of problem:
Import a VM with memory snapshot from export domain will cause that listing the disks collection via the REST api will return Operation failed status code 503.

Logs attached



Version-Release number of selected component (if applicable):
ovirt-engine-4.2.0-0.0.master.20170926175518.git0d20200.el7.centos

How reproducible:
100%

Steps to Reproduce:
1. Create a VM with 1 disk + OS
2. Run it and create snapshot with memory
3. Export it to an export domain (no collapse, no override)
4. Remove the origin VM
5. Import the VM (no collapse, no clone)

Actual results:
Everything will work fine but the rest api /api/disks is no longer usabe


Expected results:


Additional info:

Comment 1 Raz Tamir 2017-09-28 13:11:28 UTC
*** Bug 1496809 has been marked as a duplicate of this bug. ***

Comment 2 Allon Mureinik 2017-09-28 13:48:21 UTC
Eyal, offhand this looks related to your patch c6d62293fcd.
Can you take a look please?

Comment 3 Red Hat Bugzilla Rules Engine 2017-09-28 13:48:28 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 4 Eyal Shenitzky 2017-10-01 09:04:41 UTC
Open new bug with the root cause which responsible for this bug - 
https://bugzilla.redhat.com/show_bug.cgi?id=1497512

Comment 5 Raz Tamir 2017-10-15 13:43:33 UTC
Verified on ovirt-engine-4.2.0-0.0.master.20171013142622.git15e767c.el7.centos

followed steps to reproduce and all works fine

Comment 6 Allon Mureinik 2017-10-23 08:22:42 UTC
*** Bug 1497620 has been marked as a duplicate of this bug. ***

Comment 7 Sandro Bonazzola 2017-12-20 11:45:32 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, 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.