{"record":{"id":"6816cb430f0735be","repo":"kubernetes/kops","slug":"error-creating-server-v-v","errorCode":null,"errorMessage":"error creating server %v: %v","messagePattern":"error creating server (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstack/instance.go","lineNumber":123,"sourceCode":"\t\tif err != nil {\n\t\t\tif IsPortInUse(err) && portID != \"\" {\n\t\t\t\tport, err := c.GetPort(portID)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn false, fmt.Errorf(\"error finding port %s: %v\", portID, err)\n\t\t\t\t}\n\t\t\t\t// port is attached to deleted instance, we need reset the status of the DeviceID\n\t\t\t\t// this is bug in OpenStack APIs\n\t\t\t\tif port.DeviceID != \"\" && port.DeviceOwner == \"\" {\n\t\t\t\t\tklog.Warningf(\"Port %s is attached to Device that does not exist anymore, reseting the status of DeviceID\", portID)\n\t\t\t\t\t_, err := c.UpdatePort(portID, ports.UpdateOpts{\n\t\t\t\t\t\tDeviceID: new(\"\"),\n\t\t\t\t\t})\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn false, fmt.Errorf(\"error updating port %s deviceid: %v\", portID, err)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false, fmt.Errorf(\"error creating server %v: %v\", opt, err)\n\t\t}\n\t\tserver = v\n\n\t\terr = waitForStatusActive(c, server.ID, nil)\n\t\tif err != nil {\n\t\t\treturn true, err\n\t\t}\n\n\t\treturn true, nil\n\t})\n\tif err != nil {\n\t\treturn server, err\n\t} else if done {\n\t\treturn server, nil\n\t} else {\n\t\treturn server, wait.ErrWaitTimeout\n\t}\n}","sourceCodeStart":105,"sourceCodeEnd":141,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstack/instance.go#L105-L141","documentation":"Server creation failed and the error was not the recoverable port-in-use case (or no port ID was given), so the raw Nova create error is surfaced. The message includes the create options and the API error; root cause is in the wrapped error.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstack/instance.go:123 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the wrapped Nova error to identify quota, image, flavor, network or scheduler failures","Fix the reported resource issue and retry the operation","Check openstack server create manually with the same options to reproduce"],"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"}