kubernetes cannot be installed
Environment: gpu:tesla v100 cpu::Intel(R) Xeon(R) CPU E5-2690 v4 @ 2.60GHz Ubuntu 16.04.5
Followed this (https://github.com/Microsoft/pai) procedure,docker image still old version. Then we get other url https://www.cnblogs.com/ms-uap/p/openpai_or_pai.html but the kubernetes cannot be innstalled. when we run "python paictl.py cluster k8s-bootup -p $CONFIG_PATH" the procedure quite and windows closed. We are trapped here. Pls help us fix this issue.
the screenshots as follows:






@Michellechen78 Did you deploy pai on a single-box mode? And the Dev-box is in the same host machine where you wanna deploy pai?
@Michellechen78 Did you deploy pai on a single-box mode? And the Dev-box is in the same host machine where you wanna deploy pai?
yes
@ydye yes single mode and the same host
Sorry for the inconvenient, that's a known issue for dev-box. Because when deploying kubernetes, paictl will try to enable log-rotation feature for docker-daemon to avoid the large usage of contianer's log. So we will re-start the docker-daemon on the target node to enable the configuration. So when dev-box is in the environment, it will be stopped due to the restart of docker-d.
Here is the solution to walk around this issue when deploy single-box. And here is another issue with the same problem.
Solution
Clone pai's repo on the local host (Don't use dev-box). And install the dependency package. Then use paictl on the host environment.
apt-get -y update && \
apt-get -y install \
nano \
vim \
joe \
wget \
curl \
jq \
gawk \
psmisc \
python \
python-yaml \
python-jinja2 \
python-paramiko \
python-urllib3 \
python-tz \
python-nose \
python-prettytable \
python-netifaces \
python-dev \
python-pip \
python-mysqldb \
openssh-server \
openssh-client \
git \
bash-completion \
inotify-tools \
rsync \
realpath \
net-tools && \
mkdir -p /cluster-configuration &&\
pip install python-etcd docker kubernetes GitPython
And by the way, now, we have a public registry to provide the latest released serivce's image, and user do not need building image by themselves. https://github.com/Microsoft/pai/blob/master/docs/pai-management/doc/how-to-write-pai-configuration.md#services_configuration
Yes, Cpu node shoud be master, and the Gpu node shoud be work. And one thing important is that don't run the dev-box in your OpenPai cluster, or you will occurs the issue this time again due to the restart of docker-daemon.
Yes, Cpu node shoud be master, and the Gpu node shoud be work. And one thing important is that don't run the dev-box in your OpenPai cluster, or you will occurs the issue this time again due to the restart of docker-daemon.
Pull a ubuntu:16.04 docker image and create a ubuntu:16.04 container,then clone pai in the / directory. Upgrade the following software before this. apt-get -y update && apt-get -y install nano vim joe wget curl jq gawk psmisc python python-yaml python-jinja2 python-paramiko python-urllib3 python-tz python-nose python-prettytable python-netifaces python-dev python-pip python-mysqldb openssh-server openssh-client git bash-completion inotify-tools rsync realpath net-tools && mkdir -p /cluster-configuration && pip install python-etcd docker kubernetes GitPython
If you wanna deploy OpenPai in a host which belongs to the OpenPai cluster. Please don't do any operate in a docker container, because it will be stopped when restarting docker-d. And your deployment will be failed. You should install the dependency package on the local environment of that host, and then follow the steps to install OpenPai.
Yes, Cpu node shoud be master, and the Gpu node shoud be work. And one thing important is that don't run the dev-box in your OpenPai cluster, or you will occurs the issue this time again due to the restart of docker-daemon.
Do GPU nodes need to deploy the hadoopAI environment in advance? Is it necessary to install cuda and cudnn?
@NothingLZ Little confused about your question. Are there 2 different question? And for the questions
Is it necessary to install cuda and cudnn?
The answer is no. Please don't install any nvidia drivers on the gpu machine. Paictl will start the drivers one shot service to do it.
And for the question
Do GPU nodes need to deploy the hadoopAI environment in advance?
I think the environment of hadoopAI can be setup by paictl.
@NothingLZ Little confused about your question. Are there 2 different question? And for the questions
Is it necessary to install cuda and cudnn?The answer is no. Please don't install any nvidia drivers on the gpu machine. Paictl will start the drivers one shot service to do it.
And for the question
Do GPU nodes need to deploy the hadoopAI environment in advance?I think the environment of hadoopAI can be setup by paictl.
Step 1: Follow https://github.com/Microsoft/pai/blob/master/src/dev-box/build/dev-box.dockerfile Step 2: Follow https://github.com/Microsoft/pai/blob/master/docs/pai-management/doc/cluster-bootup.md#singlebox
@NothingLZ Little confused about your question. Are there 2 different question? And for the questions
Is it necessary to install cuda and cudnn?The answer is no. Please don't install any nvidia drivers on the gpu machine. Paictl will start the drivers one shot service to do it.
And for the question
Do GPU nodes need to deploy the hadoopAI environment in advance?I think the environment of hadoopAI can be setup by paictl.
My previous hadoopAI environment was built according to https://github.com/Microsoft/pai/tree/master/src/hadoop-ai/build. I don't know how to build it with paictl?
With the latest release, you could build all OpenPai's service with the tool pai-build. Please refer to this link.
root@mic:/home/pai/build# ./pai_build.py build -c /path/to/configuration-dir/ 2018-10-19 11:53:24,664 - main - INFO - Pai build starts at 2018-10-19 11:53:24.663910 2018-10-19 11:53:24,689 - core.build_utility - INFO - Begin to execute the command: docker login -u None -p None docker.io Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password 2018-10-19 11:53:31,596 - core.build_utility - INFO - Executing command failed: docker login -u None -p None docker.io
Is it necessary to configure username and password?
Yes, you should configure password and username, if the registry has those configuration.
And you can also use the image we published. If you choose this solution, you can skip build progress.
docker-registry-info:
- docker-namespace: openpai
- docker-registry-domain: docker.io
#- docker-username: <n/a>
#- docker-password: <n/a>
- docker-tag: latest # or a specific version, i.e. 0.5.0.
- secret-name: <anything>
Sorry, I didn't figure it out. Is your image hosted in hub.docker.com? So what is the image name? Can I pull it directly?
You can configure the corresponding properties in your service-configuration.yaml as following.
docker-registry-info:
- docker-namespace: openpai
- docker-registry-domain: docker.io
- docker-tag: latest # or a specific version, i.e. 0.5.0.
- secret-name: <anything>
And then, beging at this steps.
I tried to build the pai locally, but there was an error in the process.
WARNING: No swap limit support Docker ROOT DIR IS /var/lib/docker Unable to find image 'gcr.io/google_containers/hyperkube:v1.9.9' locally gcr.io/google_containers/hyperkube:v1.9.9docker: Error response from daemon: Get https://gcr.io/v1/_ping: dial tcp 74.125.203.82:443: i/o timeout. See 'docker run --help'.