Liron Aravot has posted comments on this change.
Change subject: engine: Re-run vm on other host if vm creation fail
......................................................................
Patch Set 1: (1 inline comment)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java
Line 205: VdcBllErrors errorCode = e.getErrorCode();
Line 206:
Line 207: // if the returned exception is such that shoudn't
trigger the re-run process,
Line 208: // re-throw it. otherwise, continue (the vm will be
down and a re-run will be triggered)
Line 209: switch (errorCode) {
I think that's a little over defensive..and no flows will work that way - but
that's up to you.
If you already catch the exception, i'd set setSuccesful(false) instead of
expnensive re-throw..if you can please take a look at this option - though
that's a suggestion.
Line 210: case Done:
Line 211: case exist:
Line 212: throw e;
Line 213: default:
--
To view, visit http://gerrit.ovirt.org/9085
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I35569a2ebfbea3e8eb69b414c31748c49cb29841
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Sharad Mishra <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches