{"record":{"id":"4ad3033dd0299db5","repo":"kubernetes/kops","slug":"found-more-than-one-floating-ip-for-instance-v","errorCode":null,"errorMessage":"found more than one floating ip for instance %v","messagePattern":"found more than one floating ip for instance (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstacktasks/instance.go","lineNumber":245,"sourceCode":"\n\tif e.FloatingIP != nil && e.Port != nil {\n\t\tfips, err := cloud.ListL3FloatingIPs(l3floatingip.ListOpts{\n\t\t\tPortID: fi.ValueOf(e.Port.ID),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to fetch floating ips for instance %v: %v\", server.ID, err)\n\t\t}\n\n\t\tif len(fips) == 1 {\n\t\t\tfip := fips[0]\n\t\t\tfipTask := &FloatingIP{\n\t\t\t\tID:   new(fip.ID),\n\t\t\t\tName: new(fip.Description),\n\t\t\t}\n\n\t\t\tactual.FloatingIP = fipTask\n\t\t} else if len(fips) > 1 {\n\t\t\treturn nil, fmt.Errorf(\"found more than one floating ip for instance %v\", server.ID)\n\t\t}\n\t}\n\n\t// Avoid flapping\n\te.ID = actual.ID\n\te.Status = new(activeStatus)\n\tactual.WellKnownServices = e.WellKnownServices\n\n\t// Immutable fields\n\tactual.Flavor = e.Flavor\n\tactual.Image = e.Image\n\tactual.UserData = e.UserData\n\tactual.Region = e.Region\n\tactual.SSHKey = e.SSHKey\n\tactual.ServerGroup = e.ServerGroup\n\n\treturn actual, nil\n}","sourceCodeStart":227,"sourceCodeEnd":263,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstacktasks/instance.go#L227-L263","documentation":"More than one floating IP is associated with the instance's port. kops models at most one floating IP per instance; multiple associations indicate manual changes or leftover IPs and make the mapping ambiguous.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstacktasks/instance.go:245 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["List floating IPs for the port and remove stale associations","Keep exactly one floating IP per instance port","Re-run discovery afterwards"],"exampleFix":null,"handlingStrategy":"validation","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"}