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

Just annoying message (loading OpenAPI spec for "v1alpha1...." failed) #23

Open
EnochTheWise opened this issue Aug 10, 2022 · 7 comments

Comments

@EnochTheWise
Copy link

Hi ;o)

kubernetes: v1.22.4
cert-manager: v1.9.1
cert-manager-webhook-pdns: v2.2.0

kube-apiserver log messages:

E0810 07:18:21.893411       1 controller.go:116] loading OpenAPI spec for "v1alpha1.fintechiq" failed with: OpenAPI spec does not exist
I0810 07:18:21.893429       1 controller.go:129] OpenAPI AggregationController: action for item v1alpha1.fintechiq: Rate Limited Requeue.
@zachomedia
Copy link
Owner

Hello @EnochTheWise, can you elaborate on what the issue is with the cert-manager-webhook-pdns? Can you provide logs from the cert-manager-webhook-pdns pod?

As an aside, I would say your issue in the kube-apiserver logs is with the fintechiq custom resource and not anything related to this project.

@EnochTheWise
Copy link
Author

Hi 8)

Hello @EnochTheWise, can you elaborate on what the issue is with the cert-manager-webhook-pdns? Can you provide logs from the cert-manager-webhook-pdns pod?

E0815 02:59:57.617695       1 reflector.go:138] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: Failed to watch *v1beta2.FlowSchema: failed to list *v1beta2.FlowSchema: the server could not find the requested resource
W0815 02:59:58.536460       1 reflector.go:324] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: failed to list *v1beta2.PriorityLevelConfiguration: the server could not find the requested resource

@ghost
Copy link

ghost commented Sep 14, 2022

Hello @zachomedia , i have same issue as @EnochTheWise.
Logs from pod is

W0914 18:02:05.994387       1 reflector.go:324] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: failed to list *v1beta2.FlowSchema: the server could not find the requested resource
E0914 18:02:05.994439       1 reflector.go:138] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: Failed to watch *v1beta2.FlowSchema: failed to list *v1beta2.FlowSchema: the server could not find the requested resource
W0914 18:02:21.547800       1 reflector.go:324] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: failed to list *v1beta2.PriorityLevelConfiguration: the server could not find the requested resource
E0914 18:02:21.547838       1 reflector.go:138] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: Failed to watch *v1beta2.PriorityLevelConfiguration: failed to list *v1beta2.PriorityLevelConfiguration: the server could not find the requested resource

meanwhile cluster not have this api-resources:

root@mycluster-master-01 ~ # kubectl api-resources --verbs=list | grep -i flow
flowschemas                     flowcontrol.apiserver.k8s.io/v1beta1   false    FlowSchema
prioritylevelconfigurations     flowcontrol.apiserver.k8s.io/v1beta1   false    PriorityLevelConfiguration

so i think ACME resolver try to work with not existed resources
Is it possible to switch v1beta2.flow... to v1beta1.flow...?


googled that this error not affects anything.

@zachomedia
Copy link
Owner

@EnochTheWise / @ABess-Flant Can you share what version of Kubernetes you're running? I will see if I can reproduce the issue. There is nothing in my code that is loading those resources, so it might be something with the Kubernetes libraries.

@ghost
Copy link

ghost commented Sep 19, 2022

k8s version 1.21.14.
But i suppose that some libraries ( maybe go lib ) queries all know versions and print those, which can't find.
I successfully set this webhook up, so this error not affect anything.

@EnochTheWise
Copy link
Author

EnochTheWise commented Oct 13, 2022

A some addition.
ApiService is exist:

$ k get apiservices v1alpha1.v1alpha1.fintechiq
NAME               SERVICE                                  AVAILABLE   AGE
v1alpha1.fintechiq   cert-manager/cert-manager-webhook-pdns   True        64d

@necipakca
Copy link

necipakca commented Dec 18, 2024

We have same issue :

E1218 13:26:46.615437       1 controller.go:102] loading OpenAPI spec for "v1alpha1.acme.zacharyseguin.ca" failed with: failed to download v1alpha1.acme.zacharyseguin.ca: resource not found                                                     
I1218 13:26:46.615465       1 controller.go:109] OpenAPI AggregationController: action for item v1alpha1.acme.zacharyseguin.ca: Rate Limited Requeue.

This is not breaking any functionality but annoying to see those logs. Also I don't know what is real impact on kube-apiserver.
k8s : v1.29.5
cert-manager-webhook-pdns : v2.5.1

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

3 participants