Skip to content

'SnapshotContentMissing' VolumeSnapshotContent is missing #163

@wavezhang

Description

@wavezhang

I'm trying to import existing snapshot from ceph using following yamls:

apiVersion: snapshot.storage.k8s.io/v1alpha1
kind: VolumeSnapshotContent
metadata:
  name: vsc-test
spec:
  snapshotClassName: csi-rbdplugin-snapclass
  volumeSnapshotSource:
    csiVolumeSnapshotSource:
      driver: rbd.csi.ceph.com
      snapshotHandle:  snapname
  volumeSnapshotRef:
    apiVersion: snapshot.storage.k8s.io/v1alpha1
    kind: VolumeSnapshot
    name: test
    namespace: test
apiVersion: snapshot.storage.k8s.io/v1alpha1
kind: VolumeSnapshot
metadata:
  name: test
  namespace: test
spec:
  snapshotClassName: csi-rbdplugin-snapclass
  snapshotContentName: vsc-test

but get following error:

  Type     Reason                  Age                  From                              Message
  ----     ------                  ----                 ----                              -------
  Warning  SnapshotContentMissing  46s (x6 over 4m47s)  csi-snapshotter rbd.csi.ceph.com  VolumeSnapshotContent is missing

I0822 11:49:48.704819       1 util.go:135] storeObjectUpdate updating snapshot "test/test" with version 2972558
I0822 11:49:48.704894       1 snapshot_controller.go:252] synchronizing unready snapshot[test/test]: snapshotcontent "vsc-test" requested and not found, will try again next time
E0822 11:49:48.704922       1 snapshot_controller_base.go:392] could not sync volume "test/test": snapshot test/test is bound to a non-existing content vsc-test
I0822 11:49:48.705025       1 event.go:221] Event(v1.ObjectReference{Kind:"VolumeSnapshot", Namespace:"test", Name:"test", UID:"1746e253-3a9e-46c8-8339-11f63591034e", APIVersion:"snapshot.storage.k8s.io/v1alpha1", ResourceVersion:"2972558", FieldPath:""}): type: 'Warning' reason: 'SnapshotContentMissing' VolumeSnapshotContent is missing

why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions