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] Warning before server is ready, possibly a sign for a broken load balancer setup. #422

Closed
oglok opened this issue Nov 4, 2021 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@oglok
Copy link
Contributor

oglok commented Nov 4, 2021

What happened:

Logs show a persistent warning:

W1104 11:20:59.283644   45618 patch_genericapiserver.go:123] Request to "/apis/template.openshift.io/v1" (source IP 192.168.122.249:34706, user agent "Go-http-client/2.0") before server is ready, possibly a sign for a broken load balancer setup.

eventhought openshift and oauth apiservers are in ready state.

What you expected to happen:

If Aggregated API servers are ready, those warnings should not appear.

How to reproduce it (as minimally and precisely as possible):

  1. microshift run

Anything else we need to know?:

After a bit of investigation, we have applied the following patch:

https://github.com/redhat-et/microshift/blob/main/scripts/rebase_patches/0004_b301080e0639_UPSTREAM_carry_create-termination-events.patch

which should be used by the root (kube) apiserver, while the openshift-apiserver and oauth-apiserver should be using this patch:

openshift/kubernetes-apiserver@888e3d5

However, go.mod has a replace line to point k8s.io/apiserver to openshift/kubernetes-apiserver. We need to patch of try to split dependencies. (I think)

Environment:

  • Microshift version (use microshift version): main branch
  • Hardware configuration: Libvirt VM
  • OS (e.g: cat /etc/os-release): Fedora 34
  • Kernel (e.g. uname -a): Linux fedora 5.11.12-300.fc34.x86_64 Init #1 SMP Wed Apr 7 16:31:13 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Relevant Logs

W1104 11:23:16.595813   45618 patch_genericapiserver.go:123] Request to "/apis/apps.openshift.io/v1" (source IP 192.168.122.249:34782, user agent "microshift/v1.21.1 (linux/amd64) kubernetes/b09a9ce/system:serviceaccount:kube-system:generic-garbage-collector") before server is ready, possibly a sign for a broken load balancer setup.
W1104 11:23:16.600575   45618 patch_genericapiserver.go:123] Request to "/apis/template.openshift.io/v1" (source IP 192.168.122.249:34734, user agent "microshift/v1.21.1 (linux/amd64) kubernetes/b09a9ce/system:serviceaccount:kube-system:generic-garbage-collector") before server is ready, possibly a sign for a broken load balancer setup.
W1104 11:23:16.601055   45618 patch_genericapiserver.go:123] Request to "/apis/user.openshift.io/v1" (source IP 192.168.122.249:53360, user agent "microshift/v1.21.1 (linux/amd64) kubernetes/b09a9ce/system:serviceaccount:kube-system:generic-garbage-collector") before server is ready, possibly a sign for a broken load balancer setup.
W1104 11:23:16.602803   45618 patch_genericapiserver.go:123] Request to "/apis/route.openshift.io/v1" (source IP 192.168.122.249:34726, user agent "microshift/v1.21.1 (linux/amd64) kubernetes/b09a9ce/system:serviceaccount:kube-system:generic-garbage-collector") before server is ready, possibly a sign for a broken load balancer setup.
W1104 11:23:16.603180   45618 patch_genericapiserver.go:123] Request to "/apis/project.openshift.io/v1" (source IP 192.168.122.249:34756, user agent "microshift/v1.21.1 (linux/amd64) kub
@oglok oglok added the kind/bug Categorizes issue or PR as related to a bug. label Nov 4, 2021
@oglok oglok changed the title [BUG] Warning patch_genericapiserver.go:123] Request to "/apis/template.openshift.io/v1" (source IP 192.168.122.249:34706, user agent "Go-http-client/2.0") before server is ready, possibly a sign for a broken load balancer setup. [BUG] Warning before server is ready, possibly a sign for a broken load balancer setup. Nov 4, 2021
@fzdarsky
Copy link
Contributor

fzdarsky commented Nov 4, 2021

Duplicate of #249.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants