{"record":{"id":"1e26b283ff1062cc","repo":"kubernetes/kops","slug":"error-listing-security-groups-v-v","errorCode":null,"errorMessage":"error listing security groups %v: %v","messagePattern":"error listing security groups (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstack/security_group.go","lineNumber":39,"sourceCode":"\t\"fmt\"\n\n\tsg \"github.com/gophercloud/gophercloud/v2/openstack/networking/v2/extensions/security/groups\"\n\tsgr \"github.com/gophercloud/gophercloud/v2/openstack/networking/v2/extensions/security/rules\"\n\t\"k8s.io/apimachinery/pkg/util/wait\"\n\t\"k8s.io/kops/util/pkg/vfs\"\n)\n\nfunc (c *openstackCloud) ListSecurityGroups(opt sg.ListOpts) ([]sg.SecGroup, error) {\n\treturn listSecurityGroups(c, opt)\n}\n\nfunc listSecurityGroups(c OpenstackCloud, opt sg.ListOpts) ([]sg.SecGroup, error) {\n\tvar groups []sg.SecGroup\n\n\tdone, err := vfs.RetryWithBackoff(readBackoff, func() (bool, error) {\n\t\tallPages, err := sg.List(c.NetworkingClient(), opt).AllPages(context.TODO())\n\t\tif err != nil {\n\t\t\treturn false, fmt.Errorf(\"error listing security groups %v: %v\", opt, err)\n\t\t}\n\n\t\tgs, err := sg.ExtractGroups(allPages)\n\t\tif err != nil {\n\t\t\treturn false, fmt.Errorf(\"error extracting security groups from pages: %v\", err)\n\t\t}\n\t\tgroups = gs\n\t\treturn true, nil\n\t})\n\tif err != nil {\n\t\treturn groups, err\n\t} else if done {\n\t\treturn groups, nil\n\t} else {\n\t\treturn groups, wait.ErrWaitTimeout\n\t}\n}\n","sourceCodeStart":21,"sourceCodeEnd":57,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstack/security_group.go#L21-L57","documentation":"Listing Neutron security groups with the given filters failed at the API level. Reads are retried; persistence indicates credentials, endpoint, or service issues reflected in the wrapped error.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstack/security_group.go:39 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error","Verify networking API access and credentials","Retry after service restoration"],"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"}