kubernetes/kops · error
updatings tags for load-balancer %q: %w
Error message
updatings tags for load-balancer %q: %w
What it means
In the load-balancer task's RenderScw, lbService.UpdateLB failed while syncing tags on an existing load-balancer (the update is triggered when there are changes or the tag counts differ). The load-balancer name identifies the LB; the wrapped error is the SDK response (permissions, invalid state, concurrent modification).
Source
Thrown at upup/pkg/fi/cloudup/scalewaytasks/loadbalancer.go:171
func (l *LoadBalancer) RenderScw(t *scaleway.ScwAPITarget, actual, expected, changes *LoadBalancer) error {
lbService := t.Cloud.LBService()
if actual != nil {
klog.Infof("Updating existing load-balancer with name %q", fi.ValueOf(expected.Name))
// We update the tags
if changes != nil || len(actual.Tags) != len(expected.Tags) {
_, err := lbService.UpdateLB(&lb.ZonedAPIUpdateLBRequest{
Zone: scw.Zone(fi.ValueOf(actual.Zone)),
LBID: fi.ValueOf(actual.LBID),
Name: fi.ValueOf(actual.Name),
Description: expected.Description,
SslCompatibilityLevel: lb.SSLCompatibilityLevel(expected.SslCompatibilityLevel),
Tags: expected.Tags,
})
if err != nil {
return fmt.Errorf("updatings tags for load-balancer %q: %w", fi.ValueOf(expected.Name), err)
}
}
expected.LBID = actual.LBID
expected.LBAddresses = actual.LBAddresses
} else {
klog.Infof("Creating new load-balancer with name %q", fi.ValueOf(expected.Name))
lbCreated, err := lbService.CreateLB(&lb.ZonedAPICreateLBRequest{
Zone: scw.Zone(fi.ValueOf(expected.Zone)),
Name: fi.ValueOf(expected.Name),
Type: LbDefaultType,
Tags: expected.Tags,
})
if err != nil {
return fmt.Errorf("creating load-balancer: %w", err)View on GitHub (pinned to 4c8573c808)
Solutions
- Check the wrapped error for the update failure reason
- Verify the LB is not being modified concurrently
- Retry the apply operation
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/scalewaytasks/loadbalancer.go:171 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/367025301c9e9921.
Report an issue: GitHub.