Skip to main content

Hi!

I am testing Kasten and currently face a problem with Exporting the snapshot of a PVC that belongs to a VM to S3.

Error:

- cause:
    cause:
      cause:
        cause:
          cause:
            message: volume's storage class does not support block mode export
          file: kasten.io/k10/kio/exec/phases/phase/artifactcopier.go:874
          function: kasten.io/k10/kio/exec/phases/phase.(*ArtifactCopier).maybeUseGenericBlockUploader
          linenumber: 874
          message: volume's storage class does not support block mode export
        file: kasten.io/k10/kio/exec/phases/phase/artifactcopier.go:632
        function: kasten.io/k10/kio/exec/phases/phase.(*ArtifactCopier).getSnapshotConverters
        linenumber: 632
        message: blockModeUploader
      file: kasten.io/k10/kio/exec/phases/phase/artifactcopier.go:268
      function: kasten.io/k10/kio/exec/phases/phase.(*ArtifactCopier).Copy
      linenumber: 268
      message: Error converting snapshots
    file: kasten.io/k10/kio/exec/phases/phase/export.go:172
    function: kasten.io/k10/kio/exec/phases/ph

Failed checking jobs in group
Failure in exporting restorepoint
Job failed to be executed
Failed to copy artifacts
Error converting snapshots
blockModeUploader
volume's storage class does not support block mode export
volume's storage class does not support block mode export

ase.(*exportRestorePointPhase).Run
    linenumber: 172
    message: Failed to copy artifacts
  message: Job failed to be executed

 

The snapshot completes successfully. The error above always shows when exporting to S3 (MinIO). But only when a PVC from a Virtual Machine is part of the snapshot. Other volumes on the same storageclass (RWX/RWO) all work fine.

I tested many things and just updated to the most recent version 6.5.8 because of the following line in the changelog:

  • Fixed an issue where export with block mode volumes failed due to misconfigurations in the ephemeral pods' spec.

Updating this not solve this issue.

Any tips to tackle this issue?

If additional information is needed please let me know :)

Edit:

this is the less detailled error in the UI:

Failed checking jobs in group
Failure in exporting restorepoint
Job failed to be executed
Failed to copy artifacts
Error converting snapshots
blockModeUploader
volume's storage class does not support block mode export
volume's storage class does not support block mode export

Edit 2:

I think I found out what the setting is in the PVC that is causing the Export to fail.

By default when you describe a PVC that is created for a VM it will be set with the property:

  • volumeMode: Block

I noticed pretty much none of the volumes have this. I created a new VM and manually set the volumeMode to Filesystem. I installed the OS on this PVC and made a new snapshot and exported this with success.

I did just now find this link that might contain information about the solution https://docs.kasten.io/latest/usage/protect.htmlBlock Mode Export

 

Fixed!

oc annotate storageclass ocs-storagecluster-ceph-rbd k10.kasten.io/sc-supports-block-mode-exports=true

Applying the annotation on the storageclass the exports of VM’s are now working.

Found the information I needed at:https://docs.kasten.io/latest/usage/protect.html#block-mode-export

 


Glad you found the answer in documentation.


Comment