Coder Social home page Coder Social logo

Comments (10)

nivGandhi avatar nivGandhi commented on June 12, 2024 2

It sounds like SnapScheduler is working properly--- You're getting the VolumeSnapshot objects as expected, but they aren't being bound to VolumeSnapshotContent objects.

Some things to try:

  • Manually creating VolumeSnapshot objects for the PVCs that you are having trouble with. If this works, then perhaps there's a rate-limiting issue
  • Compare the PVC, PV, and VolumeSnapshot objects that work w/ those that don't. There must be some difference.
  • Take a look at the logs from the CSI driver. Perhaps it will show a more detailed error message.

Yes, you are correct, while taking snapshot backup manually, it is not working. I will debug the issues and update you.

you can close the bug.

from snapscheduler.

JohnStrunk avatar JohnStrunk commented on June 12, 2024

Where do you see the error? This looks like an error that would be reported by the CSI driver, perhaps as an event on the VolumeSnapshot object?

(assuming the above...)
SnapScheduler creates the VolumeSnapshot object, but it's up to the other controllers in the cluster to actually respond to that. Since you're getting snapshots for most of your volumes, all the components are probably present and working.

I'd suggest taking a look at the PVCs that you're having trouble with... Is it always the same ones? Is there something different about those? (Are they using a different StorageClass?)

from snapscheduler.

nivGandhi avatar nivGandhi commented on June 12, 2024

Where do you see the error? This looks like an error that would be reported by the CSI driver, perhaps as an event on the VolumeSnapshot object? "I am checking this error on volume sanpshort status tag"

(assuming the above...) SnapScheduler creates the VolumeSnapshot object, but it's up to the other controllers in the cluster to actually respond to that. Since you're getting snapshots for most of your volumes, all the components are probably present and working.

I'd suggest taking a look at the PVCs that you're having trouble with... Is it always the same ones? Is there something different about those? (Are they using a different StorageClass?)
1) I am getting errors in same PV and I am using same storage class disk.csi.azure.com
2) Volumesnapshotcontent are not available for all failed pv

from snapscheduler.

JohnStrunk avatar JohnStrunk commented on June 12, 2024

It sounds like SnapScheduler is working properly--- You're getting the VolumeSnapshot objects as expected, but they aren't being bound to VolumeSnapshotContent objects.

Some things to try:

  • Manually creating VolumeSnapshot objects for the PVCs that you are having trouble with. If this works, then perhaps there's a rate-limiting issue
  • Compare the PVC, PV, and VolumeSnapshot objects that work w/ those that don't. There must be some difference.
  • Take a look at the logs from the CSI driver. Perhaps it will show a more detailed error message.

from snapscheduler.

nivGandhi avatar nivGandhi commented on June 12, 2024

HI John,

Let me know if you have any idea. If disk was provisioned-by: kubernetes.io/azure-disk then it is not working and if disk is provisioned-by: disk.csi.azure.com it is working.

do you have any idea how to migrate the disk?

Thanks in advance.

from snapscheduler.

JohnStrunk avatar JohnStrunk commented on June 12, 2024

The kubernetes.io/azure-disk is the old in-tree driver, whereas disk.csi.azure.com is the (new) CSI driver. Snapshots are only supported for CSI drivers, so that's why it's not working.

All the in-tree drivers are being deprecated in favor of CSI--- each has its own timeline.

Fortunately, Azure Disk is supporting volume migration, allowing you to convert to the CSI driver. It looks like migration was declared stable in 1.24. I'm not sure what you need to do, but hopefully this at least gives you a starting point. Once you get the PVs switched over, I'd expect snapshots to start working.

from snapscheduler.

nivGandhi avatar nivGandhi commented on June 12, 2024

Hi John,

Just want to quick check. is there any way to tag the snapshot while taking the backup using snapscheduler.

Thanks in advance.

from snapscheduler.

JohnStrunk avatar JohnStrunk commented on June 12, 2024

The snapshotTemplate allows specifying labels. See: https://backube.github.io/snapscheduler/usage.html

from snapscheduler.

nivGandhi avatar nivGandhi commented on June 12, 2024

The snapshotTemplate allows specifying labels. See: https://backube.github.io/snapscheduler/usage.html

Thanks. I am looking for dynamic labeling like Velero do while taking backup. it will give complete snap information. please refer image.

image

from snapscheduler.

JohnStrunk avatar JohnStrunk commented on June 12, 2024

Feel free to open an issue for it w/ the labels you'd like to have. PRs welcome also.

from snapscheduler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.