Bug 1506092
| Summary: | Disks and interfaces don't appear in VM's snapshots | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Michael Burman <mburman> | ||||
| Component: | BLL.Storage | Assignee: | Maor <mlipchuk> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Raz Tamir <ratamir> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | 4.2.0 | CC: | amureini, bugs | ||||
| Target Milestone: | ovirt-4.2.0 | Keywords: | Regression | ||||
| Target Release: | --- | Flags: | rule-engine:
ovirt-4.2+
rule-engine: blocker+ |
||||
| 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: | 2017-12-20 11:20:04 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
Michael Burman
2017-10-25 06:03:54 UTC
After undo, the VM remains with no disks and non-operational Created attachment 1343095 [details]
engine log
The root issue here is that the snapshot created without the VM's disks and without the VM's network interfaces. In the bottom line, when creating a snaphsot, it contains no disks and no networks cards. Doing undo will leave the VM completely non-operational. Maor, this bug was introduced here: https://gerrit.ovirt.org/#/c/82429/18/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/snapshots/SnapshotsManager.java (see line 616) You're creating an empty ArrayList, and then iterate it, which of course does nothing, whereas the original implementation of ovfManager.importVm before the patch received this List and populated it before iterating it. Please address this ASAP. Note that the same problem exists here: https://gerrit.ovirt.org/#/c/82429/18/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/disk/image/ImagesHandler.java (line 765) Line 766 should be changed to fullEntityOvfData.setDiskImages(fullEntityOvfData.getDiskImages()); (In reply to Tal Nisan from comment #5) > Note that the same problem exists here: > > https://gerrit.ovirt.org/#/c/82429/18/backend/manager/modules/bll/src/main/ > java/org/ovirt/engine/core/bll/storage/disk/image/ImagesHandler.java (line > 765) > > Line 766 should be changed to > fullEntityOvfData.setDiskImages(fullEntityOvfData.getDiskImages()); That is not a bug since we already set this list in line 766: fullEntityOvfData.setDiskImages(snapshotImages); (In reply to Tal Nisan from comment #5) > Note that the same problem exists here: > > https://gerrit.ovirt.org/#/c/82429/18/backend/manager/modules/bll/src/main/ > java/org/ovirt/engine/core/bll/storage/disk/image/ImagesHandler.java (line > 765) > > Line 766 should be changed to > fullEntityOvfData.setDiskImages(fullEntityOvfData.getDiskImages()); That is not a bug since we already set this list in line 766: fullEntityOvfData.setDiskImages(snapshotImages); I published a patch which fix the issue and also make the code a bit more clear in ImagesHandler.java (line 765) Verified on ovirt-engine-4.2.0-0.0.master.20171027213842.gitded437c.el7.centos After preview/preview + undo the VM's disks/network interfaces still exists 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. |