vmware-samples / cloud-native-storage-self-service-manager

Cloud Native Storage (CNS) Manager is a diagnostic and self-service tool that helps detect and auto-remediate some of the known issues in storage control plane.
Apache License 2.0
15 stars 4 forks source link

Add API to fix VStorageObjectControlFlags #12

Open divyenpatel opened 1 year ago

divyenpatel commented 1 year ago

Is your feature request related to a problem? Please describe.

When Node VM has no CBT but FCD has, FCD can not be attached to the Node VM. Refer to the KB Article here - https://kb.vmware.com/s/article/88193 and GitHub Issue here - https://github.com/kubernetes-sigs/vsphere-csi-driver/issues/1416#issuecomment-1320732759

vSphere CSI Driver does not create FCD with CBT enabled, but when a customer uses some backup tooling somehow node VM got CBT enabled with all volumes attached to it. when this volume get detached from the Node and attempted to be attached to another node with CBT disabled, attach volume is failing with CnsFault error: CNS: Failed to attach disk when calling AttachDisk:Fault cause: vim.fault.InvalidState

Describe the solution you'd like

API should help clear enableChangedBlockTracking from FCD

Describe alternatives you've considered

No response

Additional context

No response

gnufied commented 1 year ago

Thanks for filing this. In this case all our customer saw was - CnsFault error: VSLM task failed . While we fix the flag on FCD, can we improve error reporting at least ?