-
Notifications
You must be signed in to change notification settings - Fork 40
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
Read properly information from localhost API when it's needed #98
Conversation
/test e2e-metal-ipi |
/retitle Read properly information from localhost API when it's needed |
So if I'm reading the code correctly, the problem was that not passing kubeconfig in the localhost case was not valid? The change lgtm (I don't like overloading variable meanings the way we were before anyway), but I just want to make sure I understand. Particularly since I'm having trouble standing up a local cluster to check out the behavior of this code. :-/ |
That's correct. So, to hit the bug you can ssh to one of the masters and change the server value in /var/lib/kubelet/kubeconfig to some dummy server (e.g: server: https://192.168.111.199:6443) and you should see this error on haproxy-monitor logs. To verify the bug fix repeat on the same scenario and you shouldn't see this error message on haproxy-monitor logs. |
Yeah, I finally got a cluster up yesterday and reproduced the issue and the fix. I think we need this for #96 because that's predicated on being able to use the local api to update the keepalived config. Do you want to open a bug for this so we can get it merged in 4.6? It pretty much breaks our keepalived logic right now. I guess the other option would be to just include this in one of our other changes, but on its own this is a smaller change that is probably easier to get merged. |
I already added this commit yesterday to #92 (metal-ipi CI test was red without this fix) , which Brad already LGTM , so I think we can merge #92 , what do you think? |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bcrochet, yboaron 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 |
/close |
@celebdor: Closed this PR. In response to this:
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. |
For Keepalived unicast configuration, we should be able to read nodes details from the localhost:kube-apiserver
With this PR we should be able to read nodes information also from localhost.
How to verify the fix?
a. sudo vi /var/lib/kubelet/kubeconfig
b. change server: https://api-int.ostest.test.metalkube.org:6443 to some dummy server for example
server: https://192.168.111.199:6443