{"record":{"id":"334866db147c4720","repo":"hashicorp/nomad","slug":"invalid-node-pool-v","errorCode":null,"errorMessage":"invalid node pool: %v","messagePattern":"invalid node pool: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nomad/structs/node.go","lineNumber":619,"sourceCode":"\t}\n\tif n.Node.ID == \"\" {\n\t\treturn errors.New(\"missing node ID for client registration\")\n\t}\n\tif n.Node.Datacenter == \"\" {\n\t\treturn errors.New(\"missing datacenter for client registration\")\n\t}\n\tif n.Node.Name == \"\" {\n\t\treturn errors.New(\"missing node name for client registration\")\n\t}\n\tif len(n.Node.Attributes) == 0 {\n\t\treturn errors.New(\"missing attributes for client registration\")\n\t}\n\tif n.Node.SecretID == \"\" {\n\t\treturn errors.New(\"missing node secret ID for client registration\")\n\t}\n\tif n.Node.NodePool != \"\" {\n\t\tif err := ValidateNodePoolName(n.Node.NodePool); err != nil {\n\t\t\treturn fmt.Errorf(\"invalid node pool: %v\", err)\n\t\t}\n\t\tif n.Node.NodePool == NodePoolAll {\n\t\t\treturn fmt.Errorf(\"node is not allowed to register in node pool %q\", NodePoolAll)\n\t\t}\n\t}\n\n\treturn nil\n}\n\n// ShouldGenerateNodeIdentity compliments the functionality within\n// AuthenticateNodeIdentityGenerator to determine whether a new node identity\n// should be generated within the RPC handler.\nfunc (n *NodeRegisterRequest) ShouldGenerateNodeIdentity(\n\tauthErr error,\n\tnow time.Time,\n\tttl time.Duration,\n) bool {\n","sourceCodeStart":601,"sourceCodeEnd":637,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/nomad/structs/node.go#L601-L637","documentation":"NodeRegisterRequest.Validate failed the node pool name check at registration; the node's configured node_pool does not pass ValidateNodePoolName (allowed pattern is alphanumeric, hyphen, underscore, 1-128 chars).","triggerScenarios":"Thrown at nomad/structs/node.go:619 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the node pool name in the client's `node_pool` config","Omit it to register into the `default` pool"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"482b49bf1aec006f089bcfc7e632d8f6ac303e5e","analyzedAt":"2026-09-04T07:54:14.808Z","contentChangedAt":"2026-09-04T07:54:14.808Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}