Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'SnapshotContentMissing' VolumeSnapshotContent is missing #163

Closed
wavezhang opened this issue Aug 22, 2019 · 5 comments
Closed

'SnapshotContentMissing' VolumeSnapshotContent is missing #163

wavezhang opened this issue Aug 22, 2019 · 5 comments

Comments

@wavezhang
Copy link

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?

@wavezhang
Copy link
Author

@xing-yang

@xing-yang
Copy link
Collaborator

@wavezhang Please leave volumeSnapshotSource to nil and give a try.

@wavezhang
Copy link
Author

@xing-yang You mean use the following:

apiVersion: snapshot.storage.k8s.io/v1alpha1
kind: VolumeSnapshotContent
metadata:
  name: vsc-test
spec:
  snapshotClassName: csi-rbdplugin-snapclass
  volumeSnapshotRef:
    apiVersion: snapshot.storage.k8s.io/v1alpha1
    kind: VolumeSnapshot
    name: test
    namespace: test

same error, and I‘ll miss the snapshot name to be imported

@wavezhang
Copy link
Author

wavezhang commented Aug 23, 2019

problem solved by using cephcsi-v1.1 and csi-snapshotter-v1.2.1

@xing-yang
Copy link
Collaborator

I meant to refer to the source field in VolumeSnapshot yaml, not the volumeSnapshotSource field in VolumeSnapshotContent, but the source field is already nil in your case. Glad you got it resolved. Thanks.

xing-yang added a commit to xing-yang/external-snapshotter that referenced this issue Jul 20, 2021
c0a4fb1 Merge pull request kubernetes-csi#164 from anubha-v-ardhan/patch-1
9c6a6c0 Master to main cleanup
682c686 Merge pull request kubernetes-csi#162 from pohly/pod-name-via-shell-command
36a29f5 Merge pull request kubernetes-csi#163 from pohly/remove-bazel
68e43ca prow.sh: remove Bazel build support
c5f59c5 prow.sh: allow shell commands in CSI_PROW_SANITY_POD
71c810a Merge pull request kubernetes-csi#161 from pohly/mock-test-fixes
9e438f8 prow.sh: fix mock testing
d7146c7 Merge pull request kubernetes-csi#160 from pohly/kind-update
4b6aa60 prow.sh: update to KinD v0.11.0
7cdc76f Merge pull request kubernetes-csi#159 from pohly/fix-deployment-selection
ef8bd33 prow.sh: more flexible CSI_PROW_DEPLOYMENT, part II
204bc89 Merge pull request kubernetes-csi#158 from pohly/fix-deployment-selection
61538bb prow.sh: more flexible CSI_PROW_DEPLOYMENT
2b0e6db Merge pull request kubernetes-csi#157 from humblec/csi-release
a2fcd6d Adding myself to csi reviewers group
f325590 Merge pull request kubernetes-csi#149 from pohly/cluster-logs
4b03b30 Merge pull request kubernetes-csi#155 from pohly/owners
a6453c8 owners: introduce aliases
ad83def Merge pull request kubernetes-csi#153 from pohly/fix-image-builds
5561780 build.make: fix image publishng
29bd39b Merge pull request kubernetes-csi#152 from pohly/bump-csi-test
bc42793 prow.sh: use csi-test v4.2.0
b546baa Merge pull request kubernetes-csi#150 from mauriciopoppe/windows-multiarch-args
bfbb6f3 add parameter base_image and addon_image to BUILD_PARAMETERS
2d61d3b Merge pull request kubernetes-csi#151 from humblec/cm
48e71f0 Replace `which` command ( non standard)  with `command -v` builtin
feb20e2 prow.sh: collect cluster logs
7b96bea Merge pull request kubernetes-csi#148 from dobsonj/add-checkpathcmd-to-prow
2d2e03b prow.sh: enable -csi.checkpathcmd option in csi-sanity
09d4151 Merge pull request kubernetes-csi#147 from pohly/mock-testing
74cfbc9 prow.sh: support mock tests
4a3f110 prow.sh: remove obsolete test suppression
6616a6b Merge pull request kubernetes-csi#146 from pohly/kubernetes-1.21
510fb0f prow.sh: support Kubernetes 1.21
c63c61b prow.sh: add CSI_PROW_DEPLOYMENT_SUFFIX
51ac11c Merge pull request kubernetes-csi#144 from pohly/pull-jobs
dd54c92 pull-test.sh: test importing csi-release-tools into other repo
7d2643a Merge pull request kubernetes-csi#143 from pohly/path-setup
6880b0c prow.sh: avoid creating paths unless really running tests

git-subtree-dir: release-tools
git-subtree-split: c0a4fb1
xing-yang pushed a commit to xing-yang/external-snapshotter that referenced this issue Jul 26, 2021
rhrmo pushed a commit to rhrmo/external-snapshotter that referenced this issue Oct 2, 2024
…ncy-openshift-4.18-ose-csi-snapshot-controller

OCPBUGS-41140: Updating ose-csi-snapshot-controller-container image to be consistent with ART for 4.18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants