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

VPA E2E tests are failing #4557

Closed
jbartosik opened this issue Dec 22, 2021 · 6 comments · Fixed by #4561
Closed

VPA E2E tests are failing #4557

jbartosik opened this issue Dec 22, 2021 · 6 comments · Fixed by #4561
Labels
area/vertical-pod-autoscaler kind/bug Categorizes issue or PR as related to a bug.

Comments

@jbartosik
Copy link
Collaborator

VPA e2e tests are consistently failing. They were consistently passing (flake once every few days) until recently.

For full suite:

  • Last green run was on 2021-12-20 at 16:15 CET prow link,
  • First red run was on 2021-12-20 at 18:15 CET prow link.

For admission-controller:

  • Last green run was on 2021-12-20 at 16:14 CET prow link,
  • First red run was on 2021-12-20 at 18:14 CET prow link.

For actuation:

  • Last green run was on 2021-12-20 at 16:14 CET prow link,
  • First red run was on 2021-12-20 at 18:14 CET prow link.

It looks like admission-controller is broken. I suspect that the culprit is #4537

@jbartosik jbartosik added area/vertical-pod-autoscaler kind/bug Categorizes issue or PR as related to a bug. labels Dec 22, 2021
@jbartosik
Copy link
Collaborator Author

#4537 merged on 2021-12-20 17:02 CET and affects admission controller, that's why I suspect it causes the problem.

jbartosik added a commit to jbartosik/autoscaler that referenced this issue Dec 22, 2021
This reverts commit dfce769.

Reason for reverting the change is that I suspect it broke our E2E
tests: see issue kubernetes#4557
@jbartosik
Copy link
Collaborator Author

When I run e2e tests in my cluster from current master in logs of API server I see logs like:

"failed calling webhook "vpa.k8s.io": expected webhook response of admission.k8s.io/v1, Kind=AdmissionReview, got /, Kind="

@adriananeci
Copy link
Contributor

What do you have configured for admissionReviewVersions in vpa webhook in your cluster? Was the VPA webhook manually created and vpa admission-controller started with--register-webhook=False ?

@adriananeci
Copy link
Contributor

Is there a way I can run the E2E tests suite locally, on my laptop?

@jbartosik
Copy link
Collaborator Author

Is there a way I can run the E2E tests suite locally, on my laptop?

I don't know. I create a cluster and use ./hack/deploy-for-e2e.sh admission-controller to deploy admission controller from what's in my repo, then ./hack/run-e2e-tests.sh admission-controller to run e2e test.

@jbartosik
Copy link
Collaborator Author

What do you have configured for admissionReviewVersions in vpa webhook in your cluster? Was the VPA webhook manually created and vpa admission-controller started with--register-webhook=False ?

$ kubectl get MutatingWebhookConfiguration vpa-webhook-config -oyaml
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
  creationTimestamp: {{scrubbed}}
  generation: 1
  name: vpa-webhook-config
  resourceVersion: {{scrubbed}}
  uid: {{scrubbed}}
webhooks:
- admissionReviewVersions:
  - v1
  clientConfig:
    caBundle: {{scrubbed}}
    service:
      name: vpa-webhook
      namespace: kube-system
      port: 443
  failurePolicy: Ignore
  matchPolicy: Equivalent
  name: vpa.k8s.io
  namespaceSelector: {}
  objectSelector: {}
  reinvocationPolicy: Never
  rules:
  - apiGroups:
    - ""
    apiVersions:
    - v1
    operations:
    - CREATE
    resources:
    - pods
    scope: '*'
  - apiGroups:
    - autoscaling.k8s.io
    apiVersions:
    - '*'
    operations:
    - CREATE
    - UPDATE
    resources:
    - verticalpodautoscalers
    scope: '*'
  sideEffects: None
  timeoutSeconds: 30

jbartosik added a commit to jbartosik/autoscaler that referenced this issue Dec 22, 2021
Admission controller responses are rejected with

```
failed calling webhook "vpa.k8s.io": expected webhook response of admission.k8s.io/v1, Kind=AdmissionReview, got /, Kind=
```

Fix this by setting fields API server expects us to set.

Fixes kubernetes#4557
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/vertical-pod-autoscaler kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants