Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyperdisk creation multi-writer (accesMode = ReadWriteMany) fails with Invalid value for field 'resource.multiWriter': 'true' #1863

Open
karkunpavan opened this issue Nov 7, 2024 · 0 comments · May be fixed by #1864

Comments

@karkunpavan
Copy link

It was observed in https://issues.redhat.com/browse/STOR-2043 that dynamic provisioning of disk in multi-writer mode on C3 instance type with hyperdisk-balanced disk failed with below error:

Warning ProvisioningFailed 31m (x15 over 57m) pd.csi.storage.gke.io_wduan-1030a-g-vdnqh-master-0_dc46e9f6-1725-4f15-922c-99f0e281e102
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-0b65d680-636b-46c6-876d-d3a6c412c3ef: failed to insert zonal disk: unknown Insert disk error:
googleapi: Error 400: Invalid value for field 'resource.multiWriter': 'true'. Cannot specify the multi writer field for
'hyperdisk-balanced' disks, please use access mode instead., invalid%!v(MISSING)

I think the bug is here the driver is still calling the beta API when multi writer is set to true.

this sets betaDiskToCreate.MultiWriter = multiWriter the boolean flag is only available in v0.beta APIs and not in v1 API.

The fix is to call v1 APIs which support accessMode = ReadWriteMany. Will create a PR.

@karkunpavan karkunpavan changed the title Hyperdisk creating multi-writer (accesMode = ReadWriteMany) fails with Invalid value for field 'resource.multiWriter': 'true' Hyperdisk creation multi-writer (accesMode = ReadWriteMany) fails with Invalid value for field 'resource.multiWriter': 'true' Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant