NetApp / trident

Storage orchestrator for containers
Apache License 2.0
753 stars 219 forks source link

Trident reports offline volume as online #836

Open bromaniac opened 1 year ago

bromaniac commented 1 year ago

Describe the bug tridentctl reports state of backend volume as online when it isn't.

Environment Provide accurate information about the environment to help us reproduce the issue.

To Reproduce Create an iscsi volume with Trident.

Somehow make the backend volume go offline with state space-error like this: https://kb.netapp.com/onprem/ontap/os/Lun_goes_offline_with_space-error

Do a tridentctl get volumes. The volume which is offline with space-error is reported as STATE online.

Expected behavior Preferably tridentctl should show STATE space-error but STATE offline would also be ok. STATE online however is wrong.

Additional context As an k8s/Trident operator I do not have access to NetApp. Only our storage team has that. When several of our PVC:s broke and I tried to investigate why, the volumes were reported as online. Looking in NetApp with the storage team, it turned out they were actully in state space-error because of snapshots not being delete as described in the link I posted above.

Best regards, Fredrik

bromaniac commented 2 months ago

I think this was fixed here https://github.com/NetApp/trident/issues/543