Liron Aravot has posted comments on this change.
Change subject: core: Change disks status to illegal.
......................................................................
Patch Set 2: (1 inline comment)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveVmCommand.java
Line 284:
Line 285: // If the VM still has disk images related to it, change
their status to Illegal.
Line 286: if (!diskImages.isEmpty()) {
Line 287: for (DiskImage diskImage : diskImages) {
Line 288: if (diskImage.getimageStatus() !=
ImageStatus.ILLEGAL) {
looking at the comment in lune 285, seems like that this was the logic and that
it was removed - can you verify why? shouldn't it be done only if the disk had
snapshots?
Line 289: log.errorFormat("Disk {0} which is part of VM {1}
was not at ILLEGAL state.",
Line 290: diskImage.getDiskAlias(),
Line 291: getVm().getVmName());
Line 292:
ImagesHandler.updateImageStatus(diskImage.getImage().getId(),
ImageStatus.ILLEGAL);
--
To view, visit http://gerrit.ovirt.org/11248
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic4075c03b8d70d50b69222c73169ccc63e3ab66e
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches