Deploy 0.11.0 but pai services are still 0.8.0
Organization Name:
Short summary about the issue/question: I have been use PAI v0.8.0 for a while. After I deployed 0.11.0, the pai services were still 0.8.0. Brief what process you are following:
- Remove all containers and images in every nodes and the dev-box machine.
- Get prebuild dev-box image
# Pull the dev-box image from Docker Hub
sudo docker pull docker.io/openpai/dev-box:v0.11.0
# Run your dev-box
# Assume the path of custom-hadoop-binary-path in your service-configuration is /pathHadoop,
# and the path of your cluster-configuration is /pathConfiguration.
# By now, you can leave it as it is, we only mount those two directories into docker container for later usage.
sudo docker run -itd \
-e COLUMNS=$COLUMNS -e LINES=$LINES -e TERM=$TERM \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /pathConfiguration:/cluster-configuration \
-v /hadoop-binary:/hadoop-binary \
--pid=host \
--privileged=true \
--net=host \
--name=dev-box \
docker.io/openpai/dev-box:v0.11.0
# Working in your dev-box
sudo docker exec -it dev-box /bin/bash
cd /pai
- Write Quick start: add node IPs and account
- Generate configuration files
python paictl.py config generate -i /pai/deployment/quick-start/quick-start.yaml -o ~/pai-config -f
- Modify services-configuration.yaml According to the deploy guide I should modify the value of "docker-tag", but there was no "docker-tag" in this file and the value of "tag" was already 0.11.0. So I did nothing.
- Modify layout.yaml
machine-sku:
GENERIC:
mem: 1
gpu:
type: generic
count: 1
cpu:
vcore: 1
os: ubuntu16.04
DELL:
mem: 64
gpu:
type: generic
count: 1
cpu:
vcore: 6
os: ubuntu16.04
LENOVO:
mem: 256
gpu:
type: generic
count: 1
cpu:
vcore: 12
os: ubuntu16.04
machine-list:
- dashboard: "true"
docker-data: "/var/lib/docker"
etcdid: "etcdid1"
hostip: "192.168.11.202"
hostname: "openpai-node2"
k8s-role: "master"
machine-type: "LENOVO"
nodename: "192.168.11.202"
pai-master: "true"
password: "123456"
ssh-port: "22"
username: "openpai"
zkid: "1"
- docker-data: "/var/lib/docker"
hostip: "192.168.11.201"
hostname: "openpai-node1"
k8s-role: "worker"
machine-type: "DELL"
nodename: "192.168.11.201"
pai-worker: "true"
password: "123456"
ssh-port: "22"
username: "openpai"
- docker-data: "/var/lib/docker"
hostip: "192.168.11.203"
hostname: "openpai-node3"
k8s-role: "worker"
machine-type: "LENOVO"
nodename: "192.168.11.203"
pai-worker: "true"
password: "123456"
ssh-port: "22"
username: "openpai"
-
Modify kubernetes-configuration.yaml Change "docker-registry" to "docker.io/openpai".
-
Bootup k8s
python paictl.py cluster k8s-bootup -p ~/pai-config
After k8s bootup script finished, pai services have been installed automatically. and the version was 0.8.0. And the port 9090 of master node was unaccessible, PAI web interface was accessible. Images on master node are as follows:
REPOSITORY TAG IMAGE ID CREATED SIZE
openpai/pylon v0.8.0 de22e1d9f808 5 months ago 533MB
openpai/rest-server v0.8.0 2e0d1c3d061c 5 months ago 744MB
openpai/webportal v0.8.0 5d2d597eb508 5 months ago 1.22GB
openpai/watchdog v0.8.0 d2957a7f5374 6 months ago 934MB
openpai/yarn-frameworklauncher v0.8.0 b8d38a4531a6 6 months ago 1.96GB
openpai/job-exporter v0.8.0 16274dbe0c7c 6 months ago 1.14GB
openpai/hadoop-run v0.8.0 2c98475dd816 7 months ago 1.76GB
openpai/zookeeper v0.8.0 55174bd03c98 7 months ago 893MB
openpai/yarn-exporter v0.8.0 77c7a4d580a0 7 months ago 937MB
openpai/grafana v0.8.0 16c123d0a0b8 7 months ago 458MB
openpai/drivers v0.8.0 c2424b59b65b 7 months ago 2.62GB
openpai/hyperkube v1.9.9 06696cbe4586 9 months ago 652MB
openpai/kube-controller-manager v1.9.9 2f4813f0ccc3 9 months ago 140MB
openpai/kube-apiserver v1.9.9 09a56741e8c8 9 months ago 213MB
openpai/kube-scheduler v1.9.9 74cea6a9ab4d 9 months ago 63.7MB
prom/node-exporter v0.16.0 188af75e2de0 11 months ago 22.9MB
openpai/etcd 3.2.17 0d36cbbcc544 13 months ago 229MB
openpai/kubernetes-dashboard-amd64 v1.8.3 0c60bcf89900 14 months ago 102MB
prom/prometheus v2.1.0 c8ecf7c719c1 15 months ago 112MB
openpai/pause-amd64 3.0 99e59f495ffa 2 years ago 747kB
Images on worker nodes are as follows:
REPOSITORY TAG IMAGE ID CREATED SIZE
hello-world latest fce289e99eb9 3 months ago 1.84kB
openpai/job-exporter v0.8.0 16274dbe0c7c 6 months ago 1.14GB
openpai/hadoop-run v0.8.0 2c98475dd816 7 months ago 1.76GB
openpai/drivers v0.8.0 c2424b59b65b 7 months ago 2.62GB
openpai/hyperkube v1.9.9 06696cbe4586 9 months ago 652MB
prom/node-exporter v0.16.0 188af75e2de0 11 months ago 22.9MB
openpai/pause-amd64 3.0 99e59f495ffa 2 years ago 747kB
How to reproduce it:
OpenPAI Environment:
- OpenPAI version: 0.11.0
- Cloud provider or hardware configuration:
- OS (e.g. from /etc/os-release): Ubuntu 16.04 Server
- Kernel (e.g.
uname -a): 4.4.0-131-generic - Hardware (e.g. core number, memory size, storage size, GPU type etc.): 3 nodes, 1 Xeon CPU + 1 Quadro GPU for each node.
- Others:
Anything else we need to know:
you should push your config
cd/pai
./paictl.py config push -p ~/pai-config
then you can start you service
you should push your config
cd/pai ./paictl.py config push -p ~/pai-configthen you can start you service
It works, Thanks! After push the config, restart pai service will be OK. But why it installed 0.8.0 automatically at first after k8s boot? Is there any residual data after remove all containers and images? How can I clear all former data and configurations to perform a fresh deployment?

@NothingLZ - are you facing same problem? or anything need help here?