kubernetes/kops · error
error deleting port: %v
Error message
error deleting port: %v
What it means
The Neutron port delete call failed with an error other than 404 (404 is treated as success). Deletion is retried with backoff; common blockers are the port still being attached to a device or in a non-deletable state.
Source
Thrown at upup/pkg/fi/cloudup/openstack/port.go:137
})
if err != nil {
return p, err
} else if done {
return p, nil
} else {
return p, wait.ErrWaitTimeout
}
}
func (c *openstackCloud) DeletePort(portID string) error {
return deletePort(c, portID)
}
func deletePort(c OpenstackCloud, portID string) error {
done, err := vfs.RetryWithBackoff(deleteBackoff, func() (bool, error) {
err := ports.Delete(context.TODO(), c.NetworkingClient(), portID).ExtractErr()
if err != nil && !isNotFound(err) {
return false, fmt.Errorf("error deleting port: %v", err)
}
if isNotFound(err) {
return true, nil
}
return false, nil
})
if err != nil {
return err
} else if done {
return nil
} else {
return wait.ErrWaitTimeout
}
}
View on GitHub (pinned to 4c8573c808)
Solutions
- Check if the port is still attached and detach it first
- Inspect the wrapped Neutron error for the blocker
- Retry the deletion after the port is free
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/openstack/port.go:137 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/f8200010254a7589.
Report an issue: GitHub.