Alon Bar-Lev has posted comments on this change. Change subject: bootstrap: rewrite bootstrap using the new ovirt-host-deploy package ......................................................................
Patch Set 11: (7 inline comments) .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsDeploy.java Line 52: import org.ovirt.ovirt_host_deploy.constants.GlusterEnv; Line 53: import org.ovirt.ovirt_host_deploy.constants.VdsmEnv; Line 54: Line 55: /** Line 56: * vdsm bootstrap implementatoin. Done Line 57: * Line 58: * Executed if: Line 59: * <ul> Line 60: * <li>Host install.</li> Line 109: _vds.gethost_name(), Line 110: vdsmid Line 111: ); Line 112: Line 113: List<VDS> list = LinqUtils.filter( Oh.. ok, I added few finals. Line 114: DbFacade.getInstance().getVdsDao().getAllWithUniqueId(vdsmid), Line 115: new Predicate<VDS>() { Line 116: @Override Line 117: public boolean eval(VDS vds) { Line 291: */ Line 292: private Callable _customizationDialog[] = new Callable[] { Line 293: new Callable<Object>() { public Object call() throws Exception { Line 294: if ( Line 295: (Boolean)_parser.cliEnvironmentGet( Hmm... you suggest N methods of gets with name as same as the type. What is the difference between putting Boolean at the suffix or (Boolean) at prefix? Line 296: VdsmEnv.OVIRT_NODE Line 297: ) Line 298: ) { Line 299: _messages.post( Line 297: ) Line 298: ) { Line 299: _messages.post( Line 300: InstallerMessages.Severity.INFO, Line 301: "Host is hypervisor" But ovirt-node is a term for upstream only, no? Line 302: ); Line 303: _setNode(); Line 304: } Line 305: return null; Line 382: }}, Line 383: new Callable<Object>() { public Object call() throws Exception { Line 384: _parser.cliEnvironmentSet( Line 385: VdsmEnv.ENGINE_HOST, Line 386: new URL(Config.<String> GetValue(ConfigValues.VdcBootStrapUrl)).getHost() But this is alternate name... I will create a different patch for that. Line 387: ); Line 388: return null; Line 389: }}, Line 390: new Callable<Object>() { public Object call() throws Exception { Line 462: new Callable<Object>() { public Object call() throws Exception { Line 463: _parser.cliInstall(); Line 464: return null; Line 465: }}, Line 466: null Nice! I was sure I tried this once. Line 467: }; Line 468: /** Line 469: * Execute the next customization vector entry. Line 470: */ Line 473: if (_customizationShouldAbort) { Line 474: _parser.cliAbort(); Line 475: } Line 476: else { Line 477: _customizationDialog[_customizationIndex++].call(); No... the iteration will be stopped when the dialog stops requesting any more commands. The last command "install" or "quit" simply move to the next stage. Query:CUSTOMIZATION_COMMAND Response: command Query:CUSTOMIZATION_COMMAND Response: command Query:CUSTOMIZATION_COMMAND Response: install <snip> Query:TERMINATION_COMMAND ... So if we get another query after 'install' command something really wrong. Line 478: } Line 479: } Line 480: catch (SoftError e) { Line 481: log.errorFormat( -- To view, visit http://gerrit.ovirt.org/9175 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: If78c62601231f4729ca95da7653907b37856d672 Gerrit-PatchSet: 11 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com> Gerrit-Reviewer: Barak Azulay <bazu...@redhat.com> Gerrit-Reviewer: Doron Fediuck <dfedi...@redhat.com> Gerrit-Reviewer: Douglas Schilling Landgraf <dougsl...@redhat.com> Gerrit-Reviewer: Eli Mesika <emes...@redhat.com> Gerrit-Reviewer: Juan Hernandez <juan.hernan...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches