-
Notifications
You must be signed in to change notification settings - Fork 812
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What is version of KubeKey has the issue?
4.0.2
What is your os environment?
kylin v10
KubeKey config file
apiVersion: kubekey.kubesphere.io/v1
kind: Config
spec:
cni:
calico_version: v3.28.2
cilium_version: 1.15.4
hybridnet_version: 0.6.8
kubeovn_version: 1.13.0
multus:
image:
tag: v4.3.0
cri:
container_manager: containerd
containerd_version: v1.7.6
crictl_version: v1.33.0
cridockerd_version: v0.3.1
docker_version: 24.0.7
runc_version: v1.1.7
sandbox_image:
tag: "3.9"
dns:
dns_cache_image:
tag: 1.24.0
dns_image:
tag: v1.12.1
etcd:
etcd_version: v3.5.11
download:
arch:
- amd64
- arm64
image_registry:
docker_registry_version: 2.8.3
dockercompose_version: v2.20.3
harbor_version: v2.10.1
keepalived_version: 2.0.20
type: harbor
kubernetes:
helm_version: v3.18.5
kube_version: v1.33.3
storage_class:
local:
linux_utils_image:
tag: 4.2.0
provisioner_image:
tag: 4.2.0
nfs_provisioner_version: 4.3.0
image_manifests:
# kubernetes-v1.33.3A clear and concise description of what happend.
kubekey4.0.2 版本在对混合架构进行离线打包时,harbor 下载失败,经研究发现是因为10-download.yaml文件中没有写 arm 版本的地址,导致脚本检查时,地址为空,检查失败。
Relevant log output
I1210 15:32:51.112506 21563 local_connector.go:42] Warning: Failed to obtain local connector password when executing command with sudo. Please ensure the 'kk' process is run by a root-privileged user.
I1210 15:32:51.113007 21563 local_connector.go:109] "exec local command" cmd=<
harbor_name=harbor-offline-installer-v2.10.1.tgz
harbor_path=/root/kk/prepare/kubekey/image-registry/harbor/v2.10.1/amd64
if [ ! -f $harbor_path/$harbor_name ]; then
mkdir -p $harbor_path
# Attempt to download Harbor binary
http_code=$(curl -Lo /dev/null -s -w "%{http_code}" https://github.com/goharbor/harbor/releases/download/v2.10.1/harbor-offline-installer-v2.10.1.tgz)
if [ $http_code != 200 ]; then
echo "Failed to download Harbor binary. HTTP status code: $http_code"
exit 1
fi
curl -L -o $harbor_path/$harbor_name https://github.com/goharbor/harbor/releases/download/v2.10.1/harbor-offline-installer-v2.10.1.tgz
fi
>
I1210 15:32:51.133208 21563 connector.go:99] connector host is empty use: localhost
I1210 15:32:51.133237 21563 local_connector.go:42] Warning: Failed to obtain local connector password when executing command with sudo. Please ensure the 'kk' process is run by a root-privileged user.
I1210 15:32:51.133435 21563 local_connector.go:109] "exec local command" cmd=<
harbor_name=
harbor_path=/root/kk/prepare/kubekey/image-registry/harbor/v2.10.1/arm64
if [ ! -f $harbor_path/$harbor_name ]; then
mkdir -p $harbor_path
# Attempt to download Harbor binary
http_code=$(curl -Lo /dev/null -s -w "%{http_code}" )
if [ $http_code != 200 ]; then
echo "Failed to download Harbor binary. HTTP status code: $http_code"
exit 1
fi
curl -L -o $harbor_path/$harbor_name
fi
>
E1210 15:32:51.164325 21563 task_executor.go:145] "task run failed" err="exit status 2" host="localhost" stdout="" stderr=<
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
/bin/bash: line 7: [: !=: unary operator expected
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
> error="exit status 2" task="default/artifact-export-7bhhp-5t6x5"
⠋ [localhost] failed [0s]
I1210 15:32:51.168574 21563 task_executor.go:105] "end run task" task="default/artifact-export-7bhhp-5t6x5"
15:32:51 CST [Playbook default/artifact-export-7bhhp] finish. total: 27,success: 24,ignored: 2,failed: 1
Error: task [Binary | Ensure Harbor binary is present](default/artifact-export-7bhhp-5t6x5) run failed:
[localhost]: curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
/bin/bash: line 7: [: !=: unary operator expected
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
: exit status 2
task [Binary | Ensure Harbor binary is present](default/artifact-export-7bhhp-5t6x5) run failed:
[localhost]: curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
/bin/bash: line 7: [: !=: unary operator expected
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more informationAdditional information
No response
zhuyifeiRuichuang
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working