{"record":{"id":"b833410b735585a2","repo":"kubernetes/kops","slug":"failed-to-fetch-floating-ips-for-instance-v-v","errorCode":null,"errorMessage":"failed to fetch floating ips for instance %v: %v","messagePattern":"failed to fetch floating ips for instance (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstacktasks/instance.go","lineNumber":233,"sourceCode":"\n\tif len(ports) == 1 {\n\t\tport := ports[0]\n\t\tporttask, err := newPortTaskFromCloud(cloud, e.Lifecycle, &port, nil)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to fetch port for instance %v: %v\", server.ID, err)\n\t\t}\n\t\tactual.Port = porttask\n\n\t} else if len(ports) > 1 {\n\t\treturn nil, fmt.Errorf(\"found more than one port for instance %v\", server.ID)\n\t}\n\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)","sourceCodeStart":215,"sourceCodeEnd":251,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstacktasks/instance.go#L215-L251","documentation":"Listing L3 floating IPs associated with the instance's port failed at the API level. The wrapped error identifies the Neutron failure; the lookup is needed to model the instance's floating IP attachment.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstacktasks/instance.go:233 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped Neutron error","Verify the networking API is reachable","Retry after the failure clears"],"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"}