{"record":{"id":"0b85e322c334e8c8","repo":"kubernetes/kops","slug":"error-creating-security-group-v-v","errorCode":null,"errorMessage":"error creating security group %v: %v","messagePattern":"error creating security group (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstack/security_group.go","lineNumber":68,"sourceCode":"\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\nfunc (c *openstackCloud) CreateSecurityGroup(opt sg.CreateOptsBuilder) (*sg.SecGroup, error) {\n\treturn createSecurityGroup(c, opt)\n}\n\nfunc createSecurityGroup(c OpenstackCloud, opt sg.CreateOptsBuilder) (*sg.SecGroup, error) {\n\tvar group *sg.SecGroup\n\n\tdone, err := vfs.RetryWithBackoff(writeBackoff, func() (bool, error) {\n\t\tg, err := sg.Create(context.TODO(), c.NetworkingClient(), opt).Extract()\n\t\tif err != nil {\n\t\t\treturn false, fmt.Errorf(\"error creating security group %v: %v\", opt, err)\n\t\t}\n\t\tgroup = g\n\t\treturn true, nil\n\t})\n\tif err != nil {\n\t\treturn group, err\n\t} else if done {\n\t\treturn group, nil\n\t} else {\n\t\treturn group, wait.ErrWaitTimeout\n\t}\n}\n\nfunc (c *openstackCloud) ListSecurityGroupRules(opt sgr.ListOpts) ([]sgr.SecGroupRule, error) {\n\treturn listSecurityGroupRules(c, opt)\n}\n\nfunc listSecurityGroupRules(c OpenstackCloud, opt sgr.ListOpts) ([]sgr.SecGroupRule, error) {","sourceCodeStart":50,"sourceCodeEnd":86,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstack/security_group.go#L50-L86","documentation":"The Neutron security-group create call failed after retry-with-backoff. The wrapped error names the actual API rejection, commonly invalid rules, duplicate names, or quota limits.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstack/security_group.go:68 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error for the rejected option","Validate rule options (protocol, port range, CIDR)","Fix conflicts/quota and retry"],"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"}