hashicorp/nomad · error
description longer than %d
Error message
description longer than %d
What it means
NodePool.Validate found a description longer than the 256-character maximum allowed for node pool descriptions.
Source
Thrown at nomad/structs/node_pool.go:91
// Raft indexes.
CreateIndex uint64
ModifyIndex uint64
}
// GetID implements the IDGetter interface required for pagination.
func (n *NodePool) GetID() string {
return n.Name
}
// Validate returns an error if the node pool is invalid.
func (n *NodePool) Validate() error {
var mErr *multierror.Error
mErr = multierror.Append(mErr, ValidateNodePoolName(n.Name))
if len(n.Description) > maxNodePoolDescriptionLength {
mErr = multierror.Append(mErr, fmt.Errorf("description longer than %d", maxNodePoolDescriptionLength))
}
mErr = multierror.Append(mErr, n.SchedulerConfiguration.Validate())
return mErr.ErrorOrNil()
}
// Canonicalize is used to set default values for the node pool. This currently
// only sets the default TTL for node identities if it is not set.
func (n *NodePool) Canonicalize() {
if n == nil {
return
}
if n.NodeIdentityTTL == 0 {
n.NodeIdentityTTL = DefaultNodePoolNodeIdentityTTL
}
}View on GitHub (pinned to 482b49bf1a)
Solutions
- Shorten the description to 256 characters or fewer
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at nomad/structs/node_pool.go:91 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of hashicorp/nomad@482b49bf1a (2026-09-04).
Data as JSON: /api/errors/2234cf363b535be1.
Report an issue: GitHub.