Source:
<code>public VdsInstaller(VDS vds, String rootPassword, boolean overrideFirewall, boolean rebootAfterInstallation) { super(); _vds = vds; this.overrideFirewall = overrideFirewall; _messages = new InstallerMessages(vds.getId()); _fileGuid = Guid.NewGuid(); _certFileNameLocal = "cert.pem"; _certRequestFileName = String.format("cert_%1$s.req", _fileGuid); _certFileName = String.format("cert_%1$s.pem", _fileGuid); _caFileName = String.format("CA_%1$s.pem", _fileGuid); String[] parts = _bootstrapRunningScript.split("[.]", -1); if (parts.length > 1) { _bootstrapRunningScript = String.format("%1$s_%2$s.%3$s", parts[0], _fileGuid, parts[1]); } else { throw new RuntimeException(); } _remoteBootstrapRunningScriptPath = _remoteDirectory + "/" + _bootstrapRunningScript; remoteFwRulesFilePath = String.format("%s/%s.%s", _remoteDirectory,FIREWALL_CONFIG_FILENAME_PREFIX,_fileGuid); _bootStrapInitialCommand = InitInitialCommand(vds, _bootStrapInitialCommand); <START> _bootStrapInitialCommand = _bootStrapInitialCommand.replace("-g", ""); <END> _finishCommand = _bootStrapInitialCommand; _bootStrapInitialCommand = _bootStrapInitialCommand.replace("{RunFlag}", "False"); _finishCommand = _finishCommand.replace("{RunFlag}", "True"); if (!rebootAfterInstallation) { _finishCommand = _finishCommand.replace(" -b ", " "); } _serverName = vds.gethost_name(); _rootPassword = rootPassword; _wrapper.InitCallback(this); _certFileNameLocal = _serverName + _certFileNameLocal; }</code><technical_language>1. This is a bug, replace /any/ '-g' in string, including other stuff. need is ' -g ' (spaces), a pattern code is {g-dummy}. 2. missing another line for '-v'</technical_language>

Target:
public VdsInstaller(VDS vds, String rootPassword, boolean overrideFirewall, boolean rebootAfterInstallation) { super(); _vds = vds; this.overrideFirewall = overrideFirewall; _messages = new InstallerMessages(vds.getId()); _fileGuid = Guid.NewGuid(); _certFileNameLocal = "cert.pem"; _certRequestFileName = String.format("cert_%1$s.req", _fileGuid); _certFileName = String.format("cert_%1$s.pem", _fileGuid); _caFileName = String.format("CA_%1$s.pem", _fileGuid); String[] parts = _bootstrapRunningScript.split("[.]", -1); if (parts.length > 1) { _bootstrapRunningScript = String.format("%1$s_%2$s.%3$s", parts[0], _fileGuid, parts[1]); } else { throw new RuntimeException(); } _remoteBootstrapRunningScriptPath = _remoteDirectory + "/" + _bootstrapRunningScript; remoteFwRulesFilePath = String.format("%s/%s.%s", _remoteDirectory,FIREWALL_CONFIG_FILENAME_PREFIX,_fileGuid); _bootStrapInitialCommand = InitInitialCommand(vds, _bootStrapInitialCommand); _bootStrapInitialCommand = _bootStrapInitialCommand.replace("-g {gluster-dummy}", ""); _bootStrapInitialCommand = _bootStrapInitialCommand.replace("-v {virt-dummy}", "-v"); _finishCommand = _bootStrapInitialCommand; _bootStrapInitialCommand = _bootStrapInitialCommand.replace("{RunFlag}", "False"); _finishCommand = _finishCommand.replace("{RunFlag}", "True"); if (!rebootAfterInstallation) { _finishCommand = _finishCommand.replace(" -b ", " "); } _serverName = vds.gethost_name(); _rootPassword = rootPassword; _wrapper.InitCallback(this); _certFileNameLocal = _serverName + _certFileNameLocal; }