kubernetes/kops · error

no known addresses for node %s

Error message

no known addresses for node %s

What it means

dumpNotRegistered found a cloud instance with neither public nor private addresses, so there is no way to reach it for log dumping; the instance's network interfaces report empty address lists.

Source

Thrown at pkg/dump/dumper.go:287

	}
}

func (d *logDumper) dumpNotRegistered(ctx context.Context, node *resources.Instance) (string, error) {
	if ctx.Err() != nil {
		klog.Infof("stopping dumping nodes: %v", ctx.Err())
		return "", ctx.Err()
	}

	klog.Infof("dumping node not registered in kubernetes: %s", node.Name)
	d.grantSSHAccess(ctx, node.Name)
	if len(node.PublicAddresses) > 0 {
		return node.PublicAddresses[0], d.dumpNode(ctx, node.PublicAddresses[0], node.PublicAddresses[0], false)
	}

	if len(node.PrivateAddresses) > 0 {
		return node.PrivateAddresses[0], d.dumpNode(ctx, node.PrivateAddresses[0], node.PrivateAddresses[0], true)
	}
	return "", fmt.Errorf("no known addresses for node %s", node.Name)
}

// defaultNodeDumpTimeout bounds the time spent connecting to and dumping a single node.
// A healthy node dumps in well under a minute. Without this cap, an SSH operation
// against an unreachable node blocks until the OS TCP timeout (~15 min) expires.
// Large clusters dump multi-GB logs per node and need a higher value, configurable
// via the --node-dump-timeout flag, because the files are dumped sequentially and a
// single oversized log can otherwise exhaust the budget before the rest are read.
const defaultNodeDumpTimeout = time.Minute

// DumpNode connects to a node and dumps the logs.
func (d *logDumper) dumpNode(ctx context.Context, name string, ip string, useBastion bool) error {
	if ip == "" {
		return fmt.Errorf("could not find address for %v, ", name)
	}

	klog.Infof("Dumping node %s", name)

View on GitHub (pinned to 4c8573c808)

Solutions

  1. Check the instance's network interfaces in the cloud console
  2. Skip the unaddressable node and dump the rest
  3. Investigate why the instance has no assigned addresses (still launching, or network misconfiguration)
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at pkg/dump/dumper.go:287 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05). Data as JSON: /api/errors/f763552c4c47e7b9. Report an issue: GitHub.