Allon Mureinik has posted comments on this change.

Change subject: core, engine: Prevent snapshot in ppc64
......................................................................


Patch Set 2: Code-Review-1

(6 comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CreateAllSnapshotsFromVmCommand.java
Line 402
Line 403
Line 404
Line 405
Line 406
Remove this blank line is unrelated to the patch.


Line 268:         }
Line 269: 
Line 270:         if (getParameters().isSaveMemory()
Line 271:                 && !isMemorySnapshotSupported()) {
Line 272:             log.warnFormat("A memory snapshot was required but not 
created, since VM architecture does not support it.");
This line will never be executed - the first if statement in the method will 
evaluate to true, and a NullableMemoryImageBuilder will be returned.

Moreover, in such a situation I don't think we should just log the discrepancy, 
but fail canDoAction() - the use has obviously requested an impossible command 
to be run.
Line 273:         }
Line 274: 
Line 275:         incrementVmGeneration();
Line 276: 


....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java
Line 136:             if (getVm().getStatus() != VMStatus.Suspended) {
Line 137:                 boolean archSupportSnapshot = 
FeatureSupported.isMemorySnapshotSupportedByArchitecture(
Line 138:                         getVm().getClusterArch(),
Line 139:                         getVm().getVdsGroupCompatibilityVersion());
Line 140:                 memorySnapshotSupported = 
FeatureSupported.memorySnapshot(getVm().getVdsGroupCompatibilityVersion()) && 
archSupportSnapshot;
Minor performance enhancement - flip the && operands' order.
This way, if archSupportSnapshot is false, you won't need to execute another 
costly FeatureSupported call
Line 141:                 // If the VM is not hibernated, save the hibernation 
volume from the baseline snapshot
Line 142:                 memoryVolumeFromSnapshot = 
getActiveSnapshot().getMemoryVolume();
Line 143:             }
Line 144:         }


....................................................
File 
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/UpdateVmCommandTest.java
Line 3
Line 4
Line 5
Line 6
Line 7
Is this import removal intentional?


Line 28
Line 29
Line 30
Line 31
Line 32
Is this import removal intentional?


....................................................
File packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql
Line 672: select fn_db_add_config_value('IsSnapshotSupported','{"undefined": 
"true", "x86_64": "true", "ppc64" : "false" }','3.0');
Line 673: select fn_db_add_config_value('IsSnapshotSupported','{"undefined": 
"true", "x86_64": "true", "ppc64" : "false" }','3.1');
Line 674: select fn_db_add_config_value('IsSnapshotSupported','{"undefined": 
"true", "x86_64": "true", "ppc64" : "false" }','3.2');
Line 675: select fn_db_add_config_value('IsSnapshotSupported','{"undefined": 
"true", "x86_64": "true", "ppc64" : "false" }','3.3');
Line 676: 
What's the merit of separating this configuration to versions? Why not just use 
"general"?
Line 677: 
------------------------------------------------------------------------------------
Line 678: --                  Update with override section
Line 679: 
------------------------------------------------------------------------------------
Line 680: 


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I4f201b63ddf441a9bc76a37fda33f54fa766d937
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Leonardo Bianconi <leonardo.bianc...@eldorado.org.br>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Arik Hadas <aha...@redhat.com>
Gerrit-Reviewer: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Gustavo Frederico Temple Pedrosa 
<gustavo.pedr...@eldorado.org.br>
Gerrit-Reviewer: Leonardo Bianconi <leonardo.bianc...@eldorado.org.br>
Gerrit-Reviewer: Liron Ar <lara...@redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com>
Gerrit-Reviewer: Roy Golan <rgo...@redhat.com>
Gerrit-Reviewer: Vitor de Lima <vitor.l...@eldorado.org.br>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: liron aravot <liron.ara...@gmail.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to