Liron Ar has posted comments on this change.

Change subject: wip: core: RemoveImage as sync operation
......................................................................


Patch Set 5: (3 inline comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveDiskCommand.java
Line 266:             p.setRemoveFromSnapshots(true);
Line 267:             
p.setStorageDomainId(getParameters().getStorageDomainId());
Line 268:             p.setForceDelete(getParameters().getForceDelete());
Line 269:             if (diskImage.getStorageIds().size() > 1) {
Line 270:                 p.setRemoveFromDB(false);
it's true by default, take a look in the parameters class
Line 271:             }
Line 272:             VdcReturnValueBase vdcReturnValue =
Line 273:                             
Backend.getInstance().runInternalAction(VdcActionType.RemoveImage,
Line 274:                                     p,


....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveImageCommand.java
Line 88:             } catch (VdcBLLException e) {
Line 89:                 if (e.getErrorCode() != 
VdcBllErrors.ImageDoesNotExistInDomainError) {
Line 90:                     throw e;
Line 91:                 }
Line 92:                 log.debugFormat("The image group with id {0} wasn't 
actually deleted from the storage domain {1} because it didn't exist in it",
changed to warn
Line 93:                         getDiskImage().getId(),
Line 94:                         getStorageDomainId());
Line 95:             }
Line 96: 


....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveVmCommand.java
Line 230:     public AuditLogType getAuditLogTypeValue() {
Line 231:         switch (getActionState()) {
Line 232:         case EXECUTE:
Line 233:             return getSucceeded() ? 
AuditLogType.USER_REMOVE_VM_FINISHED : (hasImages ? AuditLogType.
Line 234:                     USER_REMOVE_VM_FINISHED_WITH_ILLEGAL_DISKS : 
AuditLogType.USER_FAILED_REMOVE_VM);
it won't,  we won't print anything during the end method when the execute 
method will finish as the vm would be deleted and disksLeftInVm will be empty.
Line 235:         case END_FAILURE:
Line 236:         case END_SUCCESS:
Line 237:         default:
Line 238:             return disksLeftInVm.isEmpty() ? AuditLogType.UNASSIGNED


--
To view, visit http://gerrit.ovirt.org/13611
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ic822a92acb8231d2ca84ae092bd98659507925d8
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Ar <lara...@redhat.com>
Gerrit-Reviewer: Alissa Bonas <abo...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Ayal Baron <aba...@redhat.com>
Gerrit-Reviewer: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Liron Ar <lara...@redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com>
Gerrit-Reviewer: Vered Volansky <vvola...@redhat.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybron...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to