-
Notifications
You must be signed in to change notification settings - Fork 595
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
Cloud Controller Manager - Error from server: no preferred addresses found; known addresses: []
#709
Comments
I have been looking into this more and it may be due to when I have the cloud provider set as 'external' the nodes do not get an internal IP address assigned.
When I do not use an external cloud provider in the |
Maybe someone one day will stumble across this and it'll help them - I ended up going back to the in-tree provider. With that I got the error about my I then had issues again - what solved that was setting the DNS servers. I took a look at my network in openstack that I was in, checked the DNS addresses, configured my InitConfiguration object like so
And then the first node came up with an internal and external IP address. I'm sure it'll be much the same when using this external (out of tree) provider, as the code is probably the same/very similar. I don't know how I would have found those errors though without having used the in-tree cloud provider. Perhaps I missed it in the docs, perhaps a doc about debugging would be helpful? I'll leave this open for a maintainer to consider whether there is a way to get these kinds of errors out when using this cloud controller and perhaps start an issue for a docs update. If there's no time or inclination to do that, this issue can be closed. |
From the output here, your openstack vm doesn't have either fixed-ip or floating-ip. Can you show me the output of |
Thanks for the reply @lingxiankong - after adding the cluster dns settings the internal and external IP addresses were both found. I think that was a key part to it. I looked in my openstack dashboard and the network I was on to find the DNS settings. |
Glad to hear the issue was solved, can I close the issue now, or do you think it's necessary to add something to the doc? |
What would have been nice would be to know where the log files which will help trace errors are located, and if they exist. So my first issue was a malformed I then looked at the default configurations used by kubelet here As I am new to this, it seemed a really difficult way around, and I'm not sure if there would have been anything in any logs for the 2nd issue. I think docs to help with debugging would be extremely helpful - and this is assuming I haven't just missed some documentation that explains all of this, in which case I'd be very sorry! |
I've not played with in-tree cloud provider for a long time because it's already deprecated and not recommended. I don't know how you deploy your k8s cluster, but I am using the ansible playbook here which is deploying the openstack-cloud-controller-manager. |
Thanks for the comments - I was certainly trying to use this out-of-tree provider when I raised this ticket (as seen the files I create with the commands in my initial post). It was moving to the deprecated in-tree provider where an error was thrown about the It's likely that switching back to the kubeadm init config I have in the initial post would now work. I think I was just suggesting some docs about debugging, and possibly some updated manifests for example here: https://github.com/kubernetes/cloud-provider-openstack/blob/master/manifests/controller-manager/kubeadm.conf I'm afraid I don't use a deployment tool, at the moment I'm just learning after having installed kubeadm. I have seen a lot about ansible and must do more research into it! I've only been trying to work out Kubernetes for 4 weeks or so, including the devops side so I'm sorry if I just missed something. I'll close this ticket off though. Thank you for your time and help! |
/kind bug
What happened:
The openstack-cloud-controller-manager pod returns an error:
Error from server: no preferred addresses found; known addresses: []
I believe this is because my instance sits on a network where the public IP address is not available to the machine. I'm not sure if that's the issue but after following the guides, the above error is logged before the controller manager goes into a crash loop back off status.
What you expected to happen:
When following the guides, the cloud-controller-manager to start up without error.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
uname -a
): Linux kube-controller---production 4.15.0-48-generic OWNERS: add user v1k0d3n as reviewer #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/LinuxI'm sorry if I've done something silly, I've been trying to do this for a very long time now and being new to Kubernetes, it's possible I've done something wrong. I've been on this for days now though so if you're able to say whether this is a bug or perhaps what addresses I should be seeing here, it'd be extremely helpful. Thank you in advance!
** edit for clarification **
as mentioned above, my open stack instance does not know its own external IP address because it sits behind a router/gateway, I can't seem to work out if this would be the issue and how I would define it for the cloud controller if that is the case - or if that is a feature that needs adding...or if that is the main problem.
The text was updated successfully, but these errors were encountered: