{"record":{"id":"2eba27f14dcb6243","repo":"kubernetes/kops","slug":"error-creating-router-interface-v","errorCode":null,"errorMessage":"error creating router interface: %v","messagePattern":"error creating router interface: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstack/router.go","lineNumber":91,"sourceCode":"\t\treturn r, err\n\t} else if done {\n\t\treturn r, nil\n\t} else {\n\t\treturn r, wait.ErrWaitTimeout\n\t}\n}\n\nfunc (c *openstackCloud) CreateRouterInterface(routerID string, opt routers.AddInterfaceOptsBuilder) (*routers.InterfaceInfo, error) {\n\treturn createRouterInterface(c, routerID, opt)\n}\n\nfunc createRouterInterface(c OpenstackCloud, routerID string, opt routers.AddInterfaceOptsBuilder) (*routers.InterfaceInfo, error) {\n\tvar i *routers.InterfaceInfo\n\n\tdone, err := vfs.RetryWithBackoff(writeBackoff, func() (bool, error) {\n\t\tv, err := routers.AddInterface(context.TODO(), c.NetworkingClient(), routerID, opt).Extract()\n\t\tif err != nil {\n\t\t\treturn false, fmt.Errorf(\"error creating router interface: %v\", err)\n\t\t}\n\t\ti = v\n\t\treturn true, nil\n\t})\n\tif err != nil {\n\t\treturn i, err\n\t} else if done {\n\t\treturn i, nil\n\t} else {\n\t\treturn i, wait.ErrWaitTimeout\n\t}\n}\n\nfunc (c *openstackCloud) DeleteRouterInterface(routerID string, opt routers.RemoveInterfaceOptsBuilder) error {\n\treturn deleteRouterInterface(c, routerID, opt)\n}\n\nfunc deleteRouterInterface(c OpenstackCloud, routerID string, opt routers.RemoveInterfaceOptsBuilder) error {","sourceCodeStart":73,"sourceCodeEnd":109,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstack/router.go#L73-L109","documentation":"Adding an interface to a router failed at the Neutron API. The operation is retried with backoff; persistent failure usually means the subnet/port cannot be attached, e.g. already attached, conflict, or wrong state.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstack/router.go:91 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error for the conflict reason","Verify the subnet is not already attached to another router interface","Retry after resolving the conflict"],"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"}