Environment check error
Organization Name:
Short summary about the issue/question:
run “/bin/bash requirement.sh -m /home/ouc/master.csv -w /home/ouc/worker.csv -c /home/ouc/config”
/etc/docker/daemon.json
Successfully run “docker run nvidia/cuda:10.0-base nvidia-smi”
Brief what process you are following:
How to reproduce it:
OpenPAI Environment:
- OpenPAI version:v1.0.0
- Cloud provider or hardware configuration:
- OS (e.g. from /etc/os-release):
- Kernel (e.g.
uname -a): - Hardware (e.g. core number, memory size, storage size, GPU type etc.):
- Others:
Anything else we need to know:
pls try this command https://github.com/microsoft/pai/blob/master/contrib/kubespray/roles/requirement/worker/tasks/ubuntu-nvidia.yml#L37
请尝试使用此命令 https://github.com/microsoft/pai/blob/master/contrib/kubespray/roles/requirement/worker/tasks/ubuntu-nvidia.yml#L37
ouc@gu2:~$ command -v nvidia-container-runtime
/usr/bin/nvidia-container-runtime
And then try this https://github.com/microsoft/pai/blob/master/contrib/kubespray/roles/requirement/worker/tasks/ubuntu-docker.yml#L20
And then try this https://github.com/microsoft/pai/blob/master/contrib/kubespray/roles/requirement/worker/tasks/ubuntu-docker.yml#L20
ouc@gu2:~$ sudo docker info -f '{{json .DefaultRuntime}}'
[sudo] password for ouc:
"nvidia"
ouc@gu2:~$

After this line https://github.com/microsoft/pai/blob/master/contrib/kubespray/roles/requirement/worker/tasks/ubuntu-docker.yml#L30
pls add the following source code
- debug:
var: default_runtime
- debug:
var: default_runtime_processed
- debug:
var: worker_default_docker_runtime
And try to execute the environment playbooks to get the output.
output like:
TASK [requirement/worker : debug] **************************************************************************************
ok: [pai-worker3] => {
"default_runtime": {
"changed": false,
"failed": false,
"failed_when_result": false,
"rc": 0,
"stderr": "Shared connection to 192.168.50.128 closed.\r\n",
"stderr_lines": [
"Shared connection to 192.168.50.128 closed."
],
"stdout": "\r\n\"nvidia\"\r\n",
"stdout_lines": [
"",
"\"nvidia\""
]
}
}
TASK [requirement/worker : debug] **************************************************************************************
ok: [pai-worker3] => {
"default_runtime_processed": ""
}
TASK [requirement/worker : debug] **************************************************************************************
ok: [pai-worker3] => {
"worker_default_docker_runtime": "nvidia"
}
TASK [requirement/worker : Check the default runtime is set correctly] *************************************************
fatal: [pai-worker3]: FAILED! => {"changed": false, "msg": "The default runtime is not set correctly"}
to retry, use: --limit @/home/kingcyk/pai/contrib/kubespray/environment-check.retry
"stdout_lines": [
"",
"\"nvidia\""
]
"default_runtime_processed": ""
Thanks for sharing the output. The issue is caused by that default_runtime_processed is assiged with default_runtime.stdout_lines[0]. However this value in your case is empty.
That's the point and I modify .stdout_lines[0] to .stdout_lines[1] manually solve the issue in my case. Don't know why it is different.
@mtzfei would you mind share your Org's name? we are clustering issues with org names to better manage issues.
@mtzfei would you mind share your Org's name? we are clustering issues with org names to better manage issues.
qingdaoxinuozhineng,thanks
This also happens to me. Did you successfully install the OpenPAI after changing .stdout_lines[0] to .stdout_lines[1]? Thanks.
@qingdo
- wheather your default docker runtime is nvidia or not
- Debug your env based on this link https://github.com/microsoft/pai/issues/4564#issuecomment-633782813,
Hi, I encountered exactly the same problem with @k1ngcyk
I changed .stdout_lines[0] to .stdout_lines[1] in the YAML file and successfully set up the entire system. The system is up running now. I am not sure why this happens or if this is a common issue. But anyway, this helped me out.
Thanks for the help.