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

[BUG] cluster snapshot backup failed on gcp #5336

Closed
JashBook opened this issue Oct 8, 2023 · 0 comments · Fixed by #5337
Closed

[BUG] cluster snapshot backup failed on gcp #5336

JashBook opened this issue Oct 8, 2023 · 0 comments · Fixed by #5337
Assignees
Labels
bug kind/bug Something isn't working
Milestone

Comments

@JashBook
Copy link
Collaborator

JashBook commented Oct 8, 2023

Describe the bug
cluster snapshot backup failed on gcp:
admission webhook "validation-webhook.snapshot.storage.k8s.io" denied the request: expect resource to be {snapshot.storage.k8s.io v1 volumesnapshots}, {snapshot.storage.k8s.io v1 volumesnapshotcontents} or {snapshot.storage.k8s.io v1 volumesnapshotclasses}

kbcli version
Kubernetes: v1.26.7-gke.500
KubeBlocks: 0.6.3-beta.0
kbcli: 0.6.3-beta.0

To Reproduce
Steps to reproduce the behavior:

  1. create cluster
  2. snapshot backup
  3. See error
kubectl get backup
backup-default-mongo-eqkiyr-20231008163953      snapshot   Failed      mongo-eqkiyr                              2023-10-08T08:39:59Z 
kubectl describe backup backup-default-mongo-eqkiyr-20231008163953
Name:         backup-default-mongo-eqkiyr-20231008163953
Namespace:    default
Labels:       app.kubernetes.io/instance=mongo-eqkiyr
              app.kubernetes.io/managed-by=kubeblocks
              apps.kubeblocks.io/component-name=mongodb
              dataprotection.kubeblocks.io/backup-type=snapshot
              dataprotection.kubeblocks.io/cluster-uid=68753be4-e0cd-4b2c-830b-9ce3914908cd
              kubeblocks.io/backup-protection=retain
Annotations:  dataprotection.kubeblocks.io/target-pod-name: mongo-eqkiyr-mongodb-0
              kubeblocks.io/cluster-snapshot:
                {"metadata":{"name":"mongo-eqkiyr","namespace":"default","creationTimestamp":null},"spec":{"clusterDefinitionRef":"mongodb","clusterVersio...
API Version:  dataprotection.kubeblocks.io/v1alpha1
Kind:         Backup
Metadata:
  Creation Timestamp:  2023-10-08T08:39:59Z
  Finalizers:
    dataprotection.kubeblocks.io/finalizer
  Generation:        1
  Resource Version:  51730
  UID:               f77d6c00-30e7-43c6-a76a-a86141549b17
Spec:
  Backup Policy Name:  mongo-eqkiyr-mongodb-backup-policy
  Backup Type:         snapshot
Status:
  Expiration:       2023-10-15T08:39:59Z
  Failure Reason:   admission webhook "validation-webhook.snapshot.storage.k8s.io" denied the request: expect resource to be {snapshot.storage.k8s.io v1 volumesnapshots}, {snapshot.storage.k8s.io v1 volumesnapshotcontents} or {snapshot.storage.k8s.io v1 volumesnapshotclasses}
  Phase:            Failed
  Source Cluster:   mongo-eqkiyr
  Start Timestamp:  2023-10-08T08:39:59Z
Events:             <none>

Expected behavior
cluster snapshot backup success on gcp.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@JashBook JashBook added the kind/bug Something isn't working label Oct 8, 2023
@JashBook JashBook added this to the Release 0.7.0 milestone Oct 8, 2023
@wangyelei wangyelei linked a pull request Oct 8, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants