Source:
<code>void startActivated(NodeContext nodeContext, String optionalLicenseFile, String optionalNodeConfigurationDirectoryFromCLI) { String clusterName = nodeContext.getCluster().getName(); if (clusterName == null) { throw new IllegalArgumentException("Cluster name is required to pre-activate a node"); } if (nodeContext.getCluster().getStripeCount() > 1) { throw new UnsupportedOperationException("Cannot start a pre-activated multi-stripe cluster"); } Cluster cluster = nodeContext.getCluster(); Random random = new Random(clusterName.hashCode()); cluster.setUID(cluster.newUID(random)); cluster.getStripes().forEach(stripe -> { stripe.setUID(cluster.newUID(random)); stripe.getNodes().forEach(node -> { node.setUID(cluster.newUID(random)); }); }); <START> NameGenerator.assignFriendlyNames(cluster); <END> String nodeName = nodeContext.getNodeName(); ServerEnv.getServer().console("Starting node: in cluster: {}", nodeName, clusterName); Path nodeConfigurationDir = getOrDefaultConfigurationDirectory(optionalNodeConfigurationDirectoryFromCLI); ServerEnv.getServer().console("Creating node configuration directory at: {}", parameterSubstitutor.substitute(nodeConfigurationDir).toAbsolutePath()); nomadServerManager.init(nodeConfigurationDir, nodeContext); DynamicConfigService dynamicConfigService = nomadServerManager.getDynamicConfigService(); dynamicConfigService.activate(nodeContext.getCluster(), optionalLicenseFile == null ? null : read(optionalLicenseFile)); runNomadActivation(nodeContext.getCluster(), nodeContext.getNode(), nomadServerManager, nodeConfigurationDir); this.nodeContext = nodeContext; this.repairMode = false; this.unConfiguredMode = false; }</code><technical_language>need do if start a node un-configured a config file CLI (in startUnconfigured ) node names / stripe names generated</technical_language>

Target:
void startActivated(NodeContext nodeContext, String optionalLicenseFile, String optionalNodeConfigurationDirectoryFromCLI) { String clusterName = nodeContext.getCluster().getName(); if (clusterName == null) { throw new IllegalArgumentException("Cluster name is required to pre-activate a node"); } if (nodeContext.getCluster().getStripeCount() > 1) { throw new UnsupportedOperationException("Cannot start a pre-activated multi-stripe cluster"); } nodeContext = nodeContext.withCluster(new FormatUpgradeNomadChange(Version.V1, Version.CURRENT).apply(nodeContext.getCluster())).get(); String nodeName = nodeContext.getNode().getName(); ServerEnv.getServer().console("Starting node: in cluster: {}", nodeName, clusterName); Path nodeConfigurationDir = getOrDefaultConfigurationDirectory(optionalNodeConfigurationDirectoryFromCLI); ServerEnv.getServer().console("Creating node configuration directory at: {}", parameterSubstitutor.substitute(nodeConfigurationDir).toAbsolutePath()); nomadServerManager.init(nodeConfigurationDir, nodeContext); DynamicConfigService dynamicConfigService = nomadServerManager.getDynamicConfigService(); dynamicConfigService.activate(nodeContext.getCluster(), optionalLicenseFile == null ? null : read(optionalLicenseFile)); runNomadActivation(nodeContext.getCluster(), nodeContext.getNode(), nomadServerManager, nodeConfigurationDir); this.nodeContext = nodeContext; this.repairMode = false; this.unConfiguredMode = false; }