{"record":{"id":"8ddc3e9e5b814932","repo":"kubernetes/kops","slug":"error-attaching-volume-s-to-server-s-v","errorCode":null,"errorMessage":"error attaching volume %s to server %s: %v","messagePattern":"error attaching volume (.+?) to server (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstack/volume.go","lineNumber":91,"sourceCode":"\t})\n\tif err != nil {\n\t\treturn volume, err\n\t} else if done {\n\t\treturn volume, nil\n\t} else {\n\t\treturn volume, wait.ErrWaitTimeout\n\t}\n}\n\nfunc (c *openstackCloud) AttachVolume(serverID string, opts volumeattach.CreateOpts) (attachment *volumeattach.VolumeAttachment, err error) {\n\treturn attachVolume(c, serverID, opts)\n}\n\nfunc attachVolume(c OpenstackCloud, serverID string, opts volumeattach.CreateOpts) (attachment *volumeattach.VolumeAttachment, err error) {\n\tdone, err := vfs.RetryWithBackoff(writeBackoff, func() (bool, error) {\n\t\tvolumeAttachment, err := volumeattach.Create(context.TODO(), c.ComputeClient(), serverID, opts).Extract()\n\t\tif err != nil {\n\t\t\treturn false, fmt.Errorf(\"error attaching volume %s to server %s: %v\", opts.VolumeID, serverID, err)\n\t\t}\n\t\tattachment = volumeAttachment\n\t\treturn true, nil\n\t})\n\tif !done {\n\t\tif err == nil {\n\t\t\terr = wait.ErrWaitTimeout\n\t\t}\n\t\treturn attachment, err\n\t}\n\treturn attachment, err\n}\n\nfunc (c *openstackCloud) SetVolumeTags(id string, tags map[string]string) error {\n\treturn setVolumeTags(c, id, tags)\n}\n\nfunc setVolumeTags(c OpenstackCloud, id string, tags map[string]string) error {","sourceCodeStart":73,"sourceCodeEnd":109,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstack/volume.go#L73-L109","documentation":"Attaching a Cinder volume to a server failed at the API level. The operation is retried with backoff; typical failures are attaching to a non-ACTIVE server, volume in a non-available state, or conflicts.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstack/volume.go:91 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the server is ACTIVE and the volume is available","Inspect the wrapped error for the conflict","Retry the attachment once states allow"],"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"}