kubernetes/kops · error
error creating IP Address: %v
Error message
error creating IP Address: %v
What it means
The GCE Address task's RenderGCE wraps Compute Addresses.Insert failure when creating a new static IP address (only when no existing address was found). It fires when GCE rejects the insert — name/quota conflicts, invalid subnetwork or address type — so the apply fails and will retry on the next run.
Source
Thrown at upup/pkg/fi/cloudup/gcetasks/address.go:186
cloud := t.Cloud
addr := &compute.Address{
Name: *e.Name,
Address: fi.ValueOf(e.IPAddress),
AddressType: fi.ValueOf(e.IPAddressType),
Purpose: fi.ValueOf(e.Purpose),
Region: cloud.Region(),
}
if e.Subnetwork != nil {
addr.Subnetwork = e.Subnetwork.URL(t.Cloud.Project(), t.Cloud.Region())
}
if a == nil {
klog.V(2).Infof("Creating Address: %q", addr.Name)
op, err := cloud.Compute().Addresses().Insert(cloud.Project(), cloud.Region(), addr)
if err != nil {
return fmt.Errorf("error creating IP Address: %v", err)
}
if err := cloud.WaitForOp(op); err != nil {
return fmt.Errorf("error waiting for IP Address: %v", err)
}
} else {
return fmt.Errorf("cannot apply changes to IP Address: %v", changes)
}
return nil
}
type terraformAddress struct {
Name *string `cty:"name"`
AddressType *string `cty:"address_type"`
Purpose *string `cty:"purpose"`
Subnetwork *terraformWriter.Literal `cty:"subnetwork"`
}View on GitHub (pinned to 4c8573c808)
Solutions
- Check the wrapped API error for the rejection reason
- Verify address name uniqueness in the region
- Check in-use IP address quota
- Retry after resolving the cause
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/gcetasks/address.go:186 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/2a3697f421fd820d.
Report an issue: GitHub.