{"record":{"id":"367025301c9e9921","repo":"kubernetes/kops","slug":"updatings-tags-for-load-balancer-q-w","errorCode":null,"errorMessage":"updatings tags for load-balancer %q: %w","messagePattern":"updatings tags for load-balancer %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/scalewaytasks/loadbalancer.go","lineNumber":171,"sourceCode":"func (l *LoadBalancer) RenderScw(t *scaleway.ScwAPITarget, actual, expected, changes *LoadBalancer) error {\n\tlbService := t.Cloud.LBService()\n\n\tif actual != nil {\n\n\t\tklog.Infof(\"Updating existing load-balancer with name %q\", fi.ValueOf(expected.Name))\n\n\t\t// We update the tags\n\t\tif changes != nil || len(actual.Tags) != len(expected.Tags) {\n\t\t\t_, err := lbService.UpdateLB(&lb.ZonedAPIUpdateLBRequest{\n\t\t\t\tZone:                  scw.Zone(fi.ValueOf(actual.Zone)),\n\t\t\t\tLBID:                  fi.ValueOf(actual.LBID),\n\t\t\t\tName:                  fi.ValueOf(actual.Name),\n\t\t\t\tDescription:           expected.Description,\n\t\t\t\tSslCompatibilityLevel: lb.SSLCompatibilityLevel(expected.SslCompatibilityLevel),\n\t\t\t\tTags:                  expected.Tags,\n\t\t\t})\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"updatings tags for load-balancer %q: %w\", fi.ValueOf(expected.Name), err)\n\t\t\t}\n\t\t}\n\n\t\texpected.LBID = actual.LBID\n\t\texpected.LBAddresses = actual.LBAddresses\n\n\t} else {\n\n\t\tklog.Infof(\"Creating new load-balancer with name %q\", fi.ValueOf(expected.Name))\n\n\t\tlbCreated, err := lbService.CreateLB(&lb.ZonedAPICreateLBRequest{\n\t\t\tZone: scw.Zone(fi.ValueOf(expected.Zone)),\n\t\t\tName: fi.ValueOf(expected.Name),\n\t\t\tType: LbDefaultType,\n\t\t\tTags: expected.Tags,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"creating load-balancer: %w\", err)","sourceCodeStart":153,"sourceCodeEnd":189,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/scalewaytasks/loadbalancer.go#L153-L189","documentation":"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).","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/scalewaytasks/loadbalancer.go:171 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error for the update failure reason","Verify the LB is not being modified concurrently","Retry the apply operation"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}