Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Error with cluster Restore #3160

Closed
Abhiger opened this issue Oct 23, 2020 · 3 comments
Closed

Error with cluster Restore #3160

Abhiger opened this issue Oct 23, 2020 · 3 comments
Labels
Needs info Waiting for information Needs investigation

Comments

@Abhiger
Copy link

Abhiger commented Oct 23, 2020

Hi All,

Cluster: error restoring mutatingwebhookconfigurations.admissionregistration.k8s.io/aks-webhook-admission-controller: MutatingWebhookConfiguration.admissionregistration.k8s.io "aks-webhook-admission-controller" is invalid: webhooks[0].sideEffects: Unsupported value: "Unknown": supported values: "None", "NoneOnDryRun"
Namespaces:

While restoring an AKS cluster I get the following error
Cluster: error restoring mutatingwebhookconfigurations.admissionregistration.k8s.io/aks-webhook-admission-controller: MutatingWebhookConfiguration.admissionregistration.k8s.io "aks-webhook-admission-controller" is invalid: webhooks[0].sideEffects: Unsupported value: "Unknown": supported values: "Namespaces:

Will Velero restore not work if the SideEffects Key is set to "UnKnown" ?
Do we have to explicitly set the value to "None" or "NoneOnDryRun" ?

@nrb
Copy link
Contributor

nrb commented Nov 16, 2020

@Abhiger Velero doesn't modify the webhook properties that get backed up. This is due to AKS having support only for 2 values on its webhook side effect field, as shown in the error message.

Were you migrating between versions of AKS? That may have introduced this new constraint.

@HizzyCO
Copy link

HizzyCO commented Nov 20, 2020

I have this same error and haven't migrated version. @nrb wnat info do you need to help resolve this?

@nrb nrb transferred this issue from vmware-tanzu/velero-plugin-for-microsoft-azure Dec 8, 2020
@nrb nrb added Needs info Waiting for information Needs investigation labels Dec 8, 2020
@taisyo7333
Copy link

I have the same issue.
My environment is the following.

Environment

  • Velero v1.5.2
  • Amazon EKS v1.18.9-eks-d1db3
  • Chart v2.14.1
  • Helm v3.4.2

Log

{"level":"info","logSource":"pkg/restore/restore.go:1170","msg":"error restoring pod-identity-webhook: MutatingWebhookConfiguration.admissionregistration.k8s.io \"pod-identity-webhook\" is invalid: webhooks[0].sideEffects: Unsupported value: \"Unknown\": supported values: \"None\", \"NoneOnDryRun\"","restore":"velero/velero-backup-20201224075249-20201224173831","time":"2020-12-24T08:39:14Z"}

Describe -> Errors

Errors:
  Velero:     <none>
  Cluster:  error restoring mutatingwebhookconfigurations.admissionregistration.k8s.io/pod-identity-webhook: MutatingWebhookConfiguration.admissionregistration.k8s.io "pod-identity-webhook" is invalid: webhooks[0].sideEffects: Unsupported value: "Unknown": supported values: "None", "NoneOnDryRun"
  Namespaces: <none>

Work around

The work around I did is the below.

velero restore create --from-schedule velero-backup  --exclude-resources MutatingWebhookConfiguration.admissionregistration.k8s.io

@vmware-tanzu vmware-tanzu locked and limited conversation to collaborators Jan 13, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Needs info Waiting for information Needs investigation
Projects
None yet
Development

No branches or pull requests

5 participants