Skip to content

Internal Loadbalancers don't work if a cluster is using custom mode subnets #612

@upodroid

Description

@upodroid

https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kops/15972/pull-kops-kubernetes-e2e-cos-gce-slow/1707525650782359552

 mahamed  REDACTED  ~  $  curl -s https://storage.googleapis.com/kubernetes-jenkins/pr-logs/pull/kops/15972/pull-kops-kubernetes-e2e-cos-gce-slow/1707525650782359552/artifacts/cluster-info/kube-system/cloud-controller-manager-nbgbm/logs.txt | grep lb-internal | head -10
I0928 23:17:57.922612       1 controller.go:397] Ensuring load balancer for service loadbalancers-2999/lb-internal
I0928 23:17:57.922679       1 controller.go:906] Adding finalizer to service loadbalancers-2999/lb-internal
I0928 23:17:57.923315       1 event.go:307] "Event occurred" object="loadbalancers-2999/lb-internal" fieldPath="" kind="Service" apiVersion="v1" type="Normal" reason="EnsuringLoadBalancer" message="Ensuring load balancer"
E0928 23:18:27.799181       1 gce_loadbalancer.go:206] Failed to EnsureLoadBalancer(e2e-pr15972-pull-kops-kubernetes-e2e-cos-gce-slow-k8s-local, loadbalancers-2999, lb-internal, a95259e9dc5fe403282161291b197790, us-east4), err: googleapi: Error 400: Invalid value for field 'resource.subnetwork': ''. Network interface must specify a subnet if the network resource is in custom subnet mode., invalid
E0928 23:18:27.799521       1 controller.go:298] error processing service loadbalancers-2999/lb-internal (retrying with exponential backoff): failed to ensure load balancer: googleapi: Error 400: Invalid value for field 'resource.subnetwork': ''. Network interface must specify a subnet if the network resource is in custom subnet mode., invalid
I0928 23:18:27.799882       1 event.go:307] "Event occurred" object="loadbalancers-2999/lb-internal" fieldPath="" kind="Service" apiVersion="v1" type="Warning" reason="SyncLoadBalancerFailed" message="Error syncing load balancer: failed to ensure load balancer: googleapi: Error 400: Invalid value for field 'resource.subnetwork': ''. Network interface must specify a subnet if the network resource is in custom subnet mode., invalid"
I0928 23:20:53.782977       1 controller.go:397] Ensuring load balancer for service loadbalancers-2999/lb-internal
I0928 23:20:53.784454       1 event.go:307] "Event occurred" object="loadbalancers-2999/lb-internal" fieldPath="" kind="Service" apiVersion="v1" type="Normal" reason="EnsuringLoadBalancer" message="Ensuring load balancer"
E0928 23:20:57.892662       1 gce_loadbalancer.go:206] Failed to EnsureLoadBalancer(e2e-pr15972-pull-kops-kubernetes-e2e-cos-gce-slow-k8s-local, loadbalancers-2999, lb-internal, a95259e9dc5fe403282161291b197790, us-east4), err: googleapi: Error 400: Invalid value for field 'resource.subnetwork': ''. Network interface must specify a subnet if the network resource is in custom subnet mode., invalid
E0928 23:20:57.893048       1 controller.go:298] error processing service loadbalancers-2999/lb-internal (retrying with exponential backoff): failed to ensure load balancer: googleapi: Error 400: Invalid value for field 'resource.subnetwork': ''. Network interface must specify a subnet if the network resource is in custom subnet mode., invalid

kube-up creates subnets in auto-mode subnets, kops creates subnets in custom mode

Worth mentioning that no really uses auto mode subnets in prod(you can't control the IPs of the subnets)

/kind bug

Metadata

Metadata

Labels

kind/bugCategorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions