NetApp / netapp-dataops-toolkit

The NetApp DataOps Toolkit is a Python library that makes it simple for developers, data scientists, DevOps engineers, and data engineers to perform various data management tasks, such as near-instantaneously provisioning, cloning, or snapshotting a data volume or JupyterLab workspace.
BSD 3-Clause "New" or "Revised" License
46 stars 12 forks source link

DataOps Toolkit for K8s - Snapshot-related Functions Return Error #24

Closed mboglesby closed 6 months ago

mboglesby commented 8 months ago

Support for v1beta1 of the Kubernetes VolumeSnapshot API was dropped as of Kubernetes v1.24 (see: https://kubernetes.io/blog/2022/05/03/kubernetes-1-24-release-announcement/#csi-snapshot). This means that all snapshot-related functions/operations within the DataOps Toolkit for Kubernetes will return an error when using Kubernetes v1.24 or above.

mboglesby commented 8 months ago

We are working on pushing out a fix. In the meantime, the following workaround can be implemented:

Edit your local copy of https://github.com/NetApp/netapp-dataops-toolkit/blob/main/netapp_dataops_k8s/netapp_dataops/k8s/__init__.py (you can find this file wherever your local pip-installed libraries reside), and change "v1beta1" on line 462 to "v1".

def _get_snapshot_api_version() -> str:
    return "v1"
mboglesby commented 6 months ago

This was fixed in v2.5.0 (https://github.com/NetApp/netapp-dataops-toolkit/releases/tag/v2.5.0).