{"record":{"id":"20ff1fc4a4bf0b47","repo":"kubernetes/kops","slug":"error-creating-persistentvolume-v-20ff1f","errorCode":null,"errorMessage":"error creating PersistentVolume: %v","messagePattern":"error creating PersistentVolume: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstacktasks/volume.go","lineNumber":142,"sourceCode":"\tif a == nil {\n\t\tklog.V(2).Infof(\"Creating PersistentVolume with Name:%q\", fi.ValueOf(e.Name))\n\n\t\tstorageAZ, err := t.Cloud.GetStorageAZFromCompute(fi.ValueOf(e.AvailabilityZone))\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"Failed to get storage availability zone: %s\", err)\n\t\t}\n\n\t\topt := cinderv3.CreateOpts{\n\t\t\tSize:             int(*e.SizeGB),\n\t\t\tAvailabilityZone: storageAZ.ZoneName,\n\t\t\tMetadata:         e.Tags,\n\t\t\tName:             fi.ValueOf(e.Name),\n\t\t\tVolumeType:       fi.ValueOf(e.VolumeType),\n\t\t}\n\n\t\tv, err := t.Cloud.CreateVolume(opt)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error creating PersistentVolume: %v\", err)\n\t\t}\n\n\t\te.ID = new(v.ID)\n\t\te.AvailabilityZone = new(v.AvailabilityZone)\n\t\treturn nil\n\t}\n\n\tif changes != nil && changes.Tags != nil {\n\t\tklog.V(2).Infof(\"Update the tags on volume %q: %v, the differences are %v\", fi.ValueOf(e.ID), e.Tags, changes.Tags)\n\n\t\terr := t.Cloud.SetVolumeTags(fi.ValueOf(e.ID), e.Tags)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error updating the tags on volume %q: %v\", fi.ValueOf(e.ID), err)\n\t\t}\n\t}\n\n\tklog.V(2).Infof(\"Openstack task Volume::RenderOpenstack did nothing\")\n\treturn nil","sourceCodeStart":124,"sourceCodeEnd":160,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstacktasks/volume.go#L124-L160","documentation":"The Cinder volume create for the PersistentVolume task failed. The wrapped error identifies the rejection; common causes are quota exhaustion, invalid size or volume type, or AZ unavailability.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstacktasks/volume.go:142 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped Cinder error","Check volume quotas, size, type and AZ","Fix the configuration 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-12T12:17:11.808Z"}