{"record":{"id":"a991d6f2b2572a4e","repo":"kubernetes/kops","slug":"failed-to-get-storage-availability-zone-s","errorCode":null,"errorMessage":"Failed to get storage availability zone: %s","messagePattern":"Failed to get storage availability zone: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstacktasks/volume.go","lineNumber":129,"sourceCode":"\t\t\treturn fi.CannotChangeField(\"AvailabilityZone\")\n\t\t}\n\t\tif changes.VolumeType != nil {\n\t\t\treturn fi.CannotChangeField(\"VolumeType\")\n\t\t}\n\t\tif changes.SizeGB != nil {\n\t\t\treturn fi.CannotChangeField(\"SizeGB\")\n\t\t}\n\t}\n\treturn nil\n}\n\nfunc (_ *Volume) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *Volume) error {\n\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","sourceCodeStart":111,"sourceCodeEnd":147,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstacktasks/volume.go#L111-L147","documentation":"Mapping the task's compute availability zone to a storage (Cinder) availability zone failed while creating a PersistentVolume. The wrapped error means the compute AZ has no matching storage AZ visible to the credentials.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstacktasks/volume.go:129 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Compare openstack availability zone list (compute) with volume availability zones","Choose an availability zone where both compute and storage exist","Retry with the corrected AZ"],"exampleFix":null,"handlingStrategy":"validation","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"}