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

Fix external lb error #8299

Merged

Conversation

singeleaf
Copy link
Contributor

@singeleaf singeleaf commented Dec 12, 2021

What type of PR is this?
/kind bug

What this PR does / why we need it:
At the kube_control_plane node, apiserver_loadbalancer_domain_name should point to dbip

Which issue(s) this PR fixes:
Fixes #8290

Special notes for your reviewer:
n/a

Does this PR introduce a user-facing change?:

Fix `apiserver_loadbalancer_domain_name` pointing to external LB instead of dbip

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 12, 2021
@k8s-ci-robot
Copy link
Contributor

Hi @singeleaf. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Dec 12, 2021
@cristicalin
Copy link
Contributor

Thanks @singeleaf for this fix!

/ok-to-test
/lgtm

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 13, 2021
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 13, 2021
@oomichi
Copy link
Contributor

oomichi commented Dec 13, 2021

Thanks for fixing.

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: oomichi, singeleaf

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 13, 2021
@k8s-ci-robot k8s-ci-robot merged commit 4f2e452 into kubernetes-sigs:master Dec 13, 2021
@floryut floryut added the kind/bug Categorizes issue or PR as related to a bug. label Dec 14, 2021
nmasse-itix pushed a commit to nmasse-itix/kubespray that referenced this pull request Dec 20, 2021
@floryut floryut mentioned this pull request Dec 21, 2021
@1Const1
Copy link

1Const1 commented Dec 23, 2021

actually this fix produce new bug that now even external LB is present in all.yml

External LB example config
apiserver_loadbalancer_domain_name: "loadbalancer-kube.example.com"
loadbalancer_apiserver:
  address: 10.0.0.10
  port: 6443

than it writes in control-plane nodes hosts file:
127.0.0.1 loadbalancer-kube.example.com localhost localhost.localdomain

so next what's happened control plane nodes can't connect to external load balancer because ex lb is now localhost

changes:

apiserver_loadbalancer_domain_name_host: |-
  {% if inventory_hostname in groups['kube_control_plane'] -%}
      127.0.0.1
  {%- else -%}
      {{ loadbalancer_apiserver.address }}
  {%- endif %}

kubespray need new fix after that
code was merged and not even tested with lb configuration present

node2 : ok=634 changed=119 unreachable=0 failed=1 skipped=640 rescued=0 ignored=2
node3 : ok=634 changed=119 unreachable=0 failed=1 skipped=640 rescued=0 ignored=2

node1,2,3 - master nodes, so 2 nodes can't connect without lb

before this commit everything working fine with or without loadbalancer

floryut added a commit that referenced this pull request Jan 3, 2022
unai-ttxu pushed a commit to unai-ttxu/kubespray that referenced this pull request Jan 3, 2022
sakuraiyuta pushed a commit to sakuraiyuta/kubespray that referenced this pull request Apr 16, 2022
sakuraiyuta pushed a commit to sakuraiyuta/kubespray that referenced this pull request Apr 16, 2022
LuckySB pushed a commit to southbridgeio/kubespray that referenced this pull request Jun 28, 2023
LuckySB pushed a commit to southbridgeio/kubespray that referenced this pull request Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

External LB worker error
6 participants