k8sPaiLibrary.maintainlib.common : There will be a delay after installing, please wait
when I use " ./k8sClusterManagement.py -p /cluster-configuration -a deploy" , some errors in log:
error 1:
k8sPaiLibrary.maintainlib.common : Executing the command on host [192.168.1.*]: sudo ./worker-deployment/hosts-check.sh 192.168.1.*
error 2:
2018-06-01 09:20:26,974 [INFO] - k8sPaiLibrary.maintainlib.kubectl_install : Execute the script to install kubectl on your host!
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 51.7M 100 51.7M 0 0 5386k 0 0:00:09 0:00:09 --:--:-- 5095k
2018-06-01 09:20:37,582 [INFO] - k8sPaiLibrary.maintainlib.kubectl_install : Generate the configuation file of kubectl.
Error from server (InternalError): an error on the server ("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n\n<head>\n<title>500 Unable to connect</title>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n</head>\n\n<body>\n\n<h1>Unable to connect</h1>\n\n<p>Tinyproxy was unable to connect to the remote web server.</p>\n\n<hr />\n\n<p><em>Generated by <a href=\"https://banu.com/tinyproxy/\">tinyproxy</a> version 1.8.3.</em></p>\n\n</body>\n\n</html>") has prevented the request from succeeding (get nodes)
2018-06-01 09:20:38,731 [ERROR] - k8sPaiLibrary.maintainlib.common : There will be a delay after installing, please wait.
I come from china and some website about google is not accessed,I used the proxy in my machine but error still come,So anyone have idea about this? ths
@wm10240
- error1: It seems your log is incomplete, and could you show us the complete log?
- error2: Juse as the log saying. 2018-06-01 09:20:38,731 [ERROR] - k8sPaiLibrary.maintainlib.common : There will be a delay after installing, please wait.
There will be a delay before the master node started. So you will have to wait for sometimes. Actually it's not an error, it should be a warning.
@ydye Thank you very much, so fast your answer,The following is log completely(I don't use VPN this time):
error1 :
root@dev-55:/pai/pai-management# ./k8sClusterManagement.py -p /cluster-configuration -a deploy
2018-06-02 03:40:52,326 [INFO] - __main__ : Begin option validation!
2018-06-02 03:40:52,326 [INFO] - __main__ : Pass option validation!
2018-06-02 03:40:52,353 [INFO] - __main__ : Begin to initialize PAI.
2018-06-02 03:40:52,365 [WARNING] - k8sPaiLibrary.maintainlib.deploy : Begin to deploy a new cluster to your machine or vm.
2018-06-02 03:40:52,365 [INFO] - k8sPaiLibrary.maintainlib.deploy : Begin to deploy k8s on host 192.168.1.55, the node role is [ master ]
2018-06-02 03:40:52,405 [INFO] - paramiko.transport : Connected (version 2.0, client OpenSSH_7.2p2)
/usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py:141: FutureWarning: CTR mode needs counter parameter, not IV
self._cipher = factory.new(key, *args, **kwargs)
2018-06-02 03:40:52,682 [INFO] - paramiko.transport : Authentication (publickey) failed.
2018-06-02 03:40:52,696 [INFO] - paramiko.transport : Authentication (password) successful!
**********
2018-06-02 03:40:52,852 [INFO] - paramiko.transport : Connected (version 2.0, client OpenSSH_7.2p2)
2018-06-02 03:40:53,009 [INFO] - paramiko.transport : Authentication (password) successful!
2018-06-02 03:40:53,144 [INFO] - paramiko.transport.sftp : [chan 0] Opened sftp connection (server version 3)
2018-06-02 03:40:53,146 [INFO] - paramiko.transport.sftp : [chan 0] sftp session closed.
2018-06-02 03:40:53,152 [INFO] - paramiko.transport : Connected (version 2.0, client OpenSSH_7.2p2)
2018-06-02 03:40:53,360 [INFO] - paramiko.transport : Authentication (publickey) failed.
2018-06-02 03:40:53,370 [INFO] - paramiko.transport : Authentication (password) successful!
2018-06-02 03:40:53,484 [INFO] - k8sPaiLibrary.maintainlib.common : Executing the command on host [192.168.1.55]: tar -xvf master-deployment.tar
**********
tar: master-deployment.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
2018-06-02 03:40:53,491 [INFO] - paramiko.transport : Connected (version 2.0, client OpenSSH_7.2p2)
2018-06-02 03:40:53,675 [INFO] - paramiko.transport : Authentication (publickey) failed.
2018-06-02 03:40:53,694 [INFO] - paramiko.transport : Authentication (password) successful!
2018-06-02 03:40:53,800 [INFO] - k8sPaiLibrary.maintainlib.common : Executing the command on host [192.168.1.55]: sudo ./master-deployment/hosts-check.sh 192.168.1.55
**********
sudo: ./master-deployment/hosts-check.sh: command not found
2018-06-02 03:40:53,814 [INFO] - paramiko.transport : Connected (version 2.0, client OpenSSH_7.2p2)
2018-06-02 03:40:53,994 [INFO] - paramiko.transport : Authentication (publickey) failed.
2018-06-02 03:40:54,017 [INFO] - paramiko.transport : Authentication (password) successful!
2018-06-02 03:40:54,183 [INFO] - k8sPaiLibrary.maintainlib.common : Executing the command on host [192.168.1.55]: sudo ./master-deployment/docker-ce-install.sh
**********
error2:
2018-06-02 03:41:17,298 [INFO] - k8sPaiLibrary.maintainlib.kubectl_install : Generate the configuation file of kubectl.
Unable to connect to the server: dial tcp: lookup IP on 192.168.1.1:53: no such host
2018-06-02 03:41:22,673 [ERROR] - k8sPaiLibrary.maintainlib.common : There will be a delay after installing, please wait.
Unable to connect to the server: dial tcp: lookup IP on 192.168.1.1:53: no such host
2018-06-02 03:41:22,836 [ERROR] - k8sPaiLibrary.maintainlib.common : There will be a delay after installing, please wait.
Unable to connect to the server: dial tcp: lookup IP on 192.168.1.1:53: no such host
2018-06-02 03:41:22,928 [ERROR] - k8sPaiLibrary.maintainlib.common : There will be a delay after installing, please wait.
Unable to connect to the server: dial tcp: lookup IP on 192.168.1.1:53: no such host
2018-06-02 03:41:23,037 [ERROR] - k8sPaiLibrary.maintainlib.common : There will be a delay after installing, please wait.
Unable to connect to the server: dial tcp: lookup IP on 192.168.1.1:53: no such host
2018-06-02 03:41:23,103 [ERROR] - k8sPaiLibrary.maintainlib.common : There will be a delay after installing, please wait.
Unable to connect to the server: dial tcp: lookup IP on 192.168.1.1:53: no such host
2018-06-02 03:41:23,185 [ERROR] - k8sPaiLibrary.maintainlib.common : There will be a delay after installing, please wait.
Unable to connect to the server: dial tcp: lookup IP on 192.168.1.1:53: no such host
Hi,
Some Questions.
1): Which branch do you use to deploy pai to your cluster?
2): How many master nodes in your cluster-configuration? If there are more than one master node in the configuration file, how did you set the load-balance-ip in kubernetes-configuration.yaml.
3): Changing this line to self.clean_flag = False, can you check the path in one of master node to ensure whether is the tar package there or not? Path : /home/$(YourUsername)/
Update on 6/4/2018:
4): Are you working on the localhost environment or in the dev-box container?
@wm10240 Please make sure that you have correctly set the username and password for the ssh service on each machine (I noticed that your password was '**********' in your log. Did you replace the actual one with these wildcards before pasting it here?). And please also tell us your: 1) Linux distribution version; and 2) Python version. Thanks!
@hwuu @ydye I have checked the problem. when I use root to install, the tar package in /home/root, but the application try to find in /root, and using 'ln -s /root /home/root' it right. I aslo find that when "tar -xvf master-deployment.tar" and master-deployment.tar not exist, no errors is showed.
[INFO] - k8sPaiLibrary.maintainlib.common : Executing the command on host [192.168.1.*]: tar -xvf master-deployment.tar
--following message was not be showed before
master-deployment/hosts-check.sh
master-deployment/kubelet-start.sh
master-deployment/docker-ce-install.sh
master-deployment/kubelet.sh
master-deployment/etc/kubernetes/config
master-deployment/etc/kubernetes/manifests/apiserver.yaml
master-deployment/etc/kubernetes/manifests/scheduler.yaml
master-deployment/etc/kubernetes/manifests/etcd.yaml
master-deployment/etc/kubernetes/manifests/controller-manager.yaml
Hi, thanks to report this. I think this a bug in the script. Because, by default, the script assume the tar package should be in the path /home/${user}, but when the user is root, and the issue will be triggled.
@hwuu We should fix this Bug.
@wm10240 I have fix the issue through this PR. And It will be merged into master in the future. #657 @hwuu Please help me to review it.
Btw #655 we should be careful about the return value of the ssh function.
Hi @wm10240 the fix has been merged into master branch. I think it could solve the first problem.
@ydye good work,ths