Skip to content

Hyperdisk smaller than 4GiB can not be created #2038

@dfajmon

Description

@dfajmon

When trying to create a hyperdisk smaller than 4GiB it fails.

Warning  ProvisioningFailed    20s (x10 over 5m1s)  pd.csi.storage.gke.io_ahafe-gcp-high-bhhd5-master-2.c.ocpstrat-1278.internal_ee5a8bd3-b1d9-4e9f-837d-73d624d90e91  failed to provision volume with StorageClass "balanced-storage": rpc error: code = InvalidArgument desc = CreateVolume failed: rpc error: code = InvalidArgument desc = CreateVolume failed to create single zonal disk pvc-4b0d2cc9-a677-4d36-9b34-bc14c8650826: failed to insert zonal disk: unknown Insert disk error: googleapi: Error 400: Disk size cannot be smaller than 4 GB for disk type hyperdisk-balanced., badRequest%!v(MISSING)

Resolution:
The driver should check if the size is valid, if the size is invalid it should round up to the closest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions