0

安装说明运行以下命令时:

sudo docker run --net=host -t -e LICENSE=accept -v $(pwd):/installer/cluster \
            ibmcom/icp-inception:2.1.0-beta-2-ee install

创建 Cloudant DB 的任务超时:

TASK [master : Ensuring that the Cloudant Database is ready] ***********************************************************************************************************************************************
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (20 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (19 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (18 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (17 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (16 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (15 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (14 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (13 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (12 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (11 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (10 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (9 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (8 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (7 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (6 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (5 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (4 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (3 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (2 retries left).
FAILED - RETRYING: TASK: master : Ensuring that the Cloudant Database is ready (1 retries left).
fatal: [10.20.30.29] => Status code was not [200]: Request failed: <urlopen error [Errno 111] Connection refused>

PLAY RECAP *************************************************************************************************************************************************************************************************
10.20.30.29                : ok=149  changed=57   unreachable=0    failed=1  

该容器仍在使用 CPU,/usr/bin/python /usr/bin/ansible-playbook -e @cluster/config.yaml playbook/site.yaml所以我认为它仍在安装中。如何增加重试次数?

4

3 回答 3

1

运行命令

docker info | grep -i cgroup

你应该看到

Cgroup Driver: systemd

...通过添加该行在 ICP 中匹配

kubelet_extra_args: ["--cgroup-driver=systemd"]

到ICPconfig.yaml

于 2017-10-05T15:26:04.183 回答
0

这通常意味着 cloudant db 需要很长时间才能准备好,到那时,已达到 20 次重试限制。卸载 ICP 2.1 beta2 并安装它通常可以解决这个问题。在 ICP 2.1 beta3 中,超时时间会增加。

如果这不起作用,您可以检查以下内容:

docker exec -it <cloudant container> bash

现在在容器内,检查数据库状态:

cast cluster status -p $ADMIN_PASSWORD

也可以检查:

docker logs <long cloudant container name>

再次安装 ICP beta2 之前,请检查是否 docker volume ls 已清理。

于 2017-10-05T01:57:44.943 回答
0

在某些情况下,我们发现基于 Cloudant 的 ICP 数据存储的大小需要一段时间才能下载。您是否考虑过将图像预拉到您的主机上?

docker pull ibmcom/icp-datastore:{version}

您需要在每个master(但不是在工作节点)上执行此操作。

于 2017-10-13T02:56:35.163 回答