[求助/Help]在执行run.py安装部署时遇到pull ocadm images 错误
rekazer0 opened this issue · comments
这个 registry.cn-beijing.aliyuncs.com通过dns获取到的为什么是ipv6的地址?虚机使用的是阿里的公共dns223.5.5.5,尝试过本机写入hosts文件指向,但结果并没有什么变化
TASK [primary-master-node/setup_k8s : Pull ocadm images on node] ***************
FAILED - RETRYING: [10.112.9.60]: Pull ocadm images on node (3 retries left).
FAILED - RETRYING: [10.112.9.60]: Pull ocadm images on node (2 retries left).
FAILED - RETRYING: [10.112.9.60]: Pull ocadm images on node (1 retries left).
fatal: [10.112.9.60]: FAILED! => {"attempts": 3, "changed": true, "cmd": ["/opt/yunion/bin/ocadm", "config", "images", "pull", "--image-repository", "registry.cn-beijing.aliyuncs.com/yunion", "--onecloud-version", "v3.11.3", "--operator-version", "v3.11.3"], "delta": "0:00:10.272500", "end": "2024-05-15 03:19:42.749556", "msg": "non-zero return code", "rc": 1, "start": "2024-05-15 03:19:32.477056", "stderr": "failed to pull image \"registry.cn-beijing.aliyuncs.com/yunion/kube-apiserver:v1.15.8\": output: Error response from daemon: Head \"https://registry.cn-beijing.aliyuncs.com/v2/yunion/kube-apiserver/manifests/v1.15.8\": Get \"https://dockerauth.cn-hangzhou.aliyuncs.com/auth?scope=repository%3Ayunion%2Fkube-apiserver%3Apull&service=registry.aliyuncs.com%3Acn-beijing%3A26842\": dial tcp [2408:4005:1000:10::1]:443: connect: network is unreachable\n, error: exit status 1", "stderr_lines": ["failed to pull image \"registry.cn-beijing.aliyuncs.com/yunion/kube-apiserver:v1.15.8\": output: Error response from daemon: Head \"https://registry.cn-beijing.aliyuncs.com/v2/yunion/kube-apiserver/manifests/v1.15.8\": Get \"https://dockerauth.cn-hangzhou.aliyuncs.com/auth?scope=repository%3Ayunion%2Fkube-apiserver%3Apull&service=registry.aliyuncs.com%3Acn-beijing%3A26842\": dial tcp [2408:4005:1000:10::1]:443: connect: network is unreachable", ", error: exit status 1"], "stdout": "[config/images] Pulling registry.cn-beijing.aliyuncs.com/yunion/kube-apiserver:v1.15.8", "stdout_lines": ["[config/images] Pulling registry.cn-beijing.aliyuncs.com/yunion/kube-apiserver:v1.15.8"]}
PLAY RECAP *********************************************************************
10.112.9.60 : ok=101 changed=15 unreachable=0 failed=1 skipped=44 rescued=0 ignored=0
root@cloudpods:~/ocboot# ping registry.cn-beijing.aliyuncs.com
PING registry.cn-beijing.aliyuncs.com (47.95.181.38) 56(84) bytes of data.
64 bytes from registry.cn-beijing.aliyuncs.com (47.95.181.38): icmp_seq=1 ttl=90 time=44.7 ms
64 bytes from registry.cn-beijing.aliyuncs.com (47.95.181.38): icmp_seq=2 ttl=90 time=44.4 ms
@rekazer0 试下禁用操作系统的 ipv6 呢?
禁用后新的报错是连不上8.8.8.8的udp53,但我dns并没有使用谷歌的(当前网络连不上8.8.8.8)。检查run.py,发现了这个dns,感觉并不是ipv6的问题。
目前尝试修改为223.5.5.5,正在重试。
@rekazer0
试一下这个命令能否正常执行:
docker pull registry.cn-beijing.aliyuncs.com/yunion/web:v3.11.3
@rekazer0 试一下这个命令能否正常执行:
docker pull registry.cn-beijing.aliyuncs.com/yunion/web:v3.11.3
可以的,但现在的新问题是我重新清除了/opt/、/tmp/、/ocboot/,按照站点上的命令卸载清除了环境,重新clone 3.11。
现在出现了以下的报错:
TASK [primary-master-node/setup_k8s : Pull ocadm images on node] ***************
FAILED - RETRYING: [10.112.9.60]: Pull ocadm images on node (3 retries left).
FAILED - RETRYING: [10.112.9.60]: Pull ocadm images on node (2 retries left).
FAILED - RETRYING: [10.112.9.60]: Pull ocadm images on node (1 retries left).
fatal: [10.112.9.60]: FAILED! => {"attempts": 3, "changed": true, "cmd": "/opt/yunion/bin/ocadm config images pull --image-repository registry.cn-beijing.aliyuncs.com/yunion --onecloud-version v3.11.3 --operator-version v3.11.3", "msg": "[Errno 2] No such file or directory: b'/opt/yunion/bin/ocadm'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
PLAY RECAP *********************************************************************
10.112.9.60 : ok=101 changed=15 unreachable=0 failed=1 skipped=44 rescued=0 ignored=0
很明显我还有一些配置文件没有清除完全,导致run.py认为我已经安装了ocadm。请问我应该清除清理干净我得环境以便重新安装吗?
顺便说一下,我得环境:
Linux cloudpods 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
22.04.4 LTS (Jammy Jellyfish)
@rekazer0 试一下这个命令能否正常执行:
docker pull registry.cn-beijing.aliyuncs.com/yunion/web:v3.11.3可以的,但现在的新问题是我重新清除了/opt/、/tmp/、/ocboot/,按照站点上的命令卸载清除了环境,重新clone 3.11。 现在出现了以下的报错:
TASK [primary-master-node/setup_k8s : Pull ocadm images on node] *************** FAILED - RETRYING: [10.112.9.60]: Pull ocadm images on node (3 retries left). FAILED - RETRYING: [10.112.9.60]: Pull ocadm images on node (2 retries left). FAILED - RETRYING: [10.112.9.60]: Pull ocadm images on node (1 retries left). fatal: [10.112.9.60]: FAILED! => {"attempts": 3, "changed": true, "cmd": "/opt/yunion/bin/ocadm config images pull --image-repository registry.cn-beijing.aliyuncs.com/yunion --onecloud-version v3.11.3 --operator-version v3.11.3", "msg": "[Errno 2] No such file or directory: b'/opt/yunion/bin/ocadm'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} PLAY RECAP ********************************************************************* 10.112.9.60 : ok=101 changed=15 unreachable=0 failed=1 skipped=44 rescued=0 ignored=0很明显我还有一些配置文件没有清除完全,导致run.py认为我已经安装了ocadm。请问我应该清除清理干净我得环境以便重新安装吗? 顺便说一下,我得环境: Linux cloudpods 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 22.04.4 LTS (Jammy Jellyfish)
执行下面卸载命令,再执行安装脚本
kubeadm reset -f
for i in yunion-climc yunion-executor yunion-fetcherfs yunion-ocadm yunion-qemu-4.2.0; do apt-get remove ${i} -y; done
rm -rf /etc/kubernetes/ \
/var/lib/etcd/ \
/root/.kube \
/etc/yunion/