Open ZongbaoLiu opened 4 years ago
in hack/lib/common.sh, it need to get six runtime deployment files and maybe fail with connection refused.
# local function to download runtime deployment file
copyRuntimeDeploymentFile() {
if [[ $# != 2 ]]; then
echo "Invalid args in copyRuntimeDeploymentFile"
exit 1
fi
fileName=$1
pathInSrc=$2
if [[ (${OVERWRITE_DEPLOYMENT_FILES} == "true") || (! -f ${VIRTLET_DEPLOYMENT_FILES_DIR}/${fileName}) ]]; then
echo "Getting runtime deployment file " ${fileName}
wget -O ${VIRTLET_DEPLOYMENT_FILES_DIR}/${fileName} ${VIRTLET_DEPLOYMENT_FILES_SRC}/${pathInSrc}
fi
}
# Get runtime deployment files
copyRuntimeDeploymentFile "libvirt-qemu" "apparmor/libvirt-qemu"
copyRuntimeDeploymentFile "libvirtd" "apparmor/libvirtd"
copyRuntimeDeploymentFile "virtlet" "apparmor/virtlet"
copyRuntimeDeploymentFile "vms" "apparmor/vms"
copyRuntimeDeploymentFile "vmruntime.yaml" "data/virtlet-ds.yaml"
copyRuntimeDeploymentFile "images.yaml" "images.yaml"
It need to add a retry count in code
wget -O ${VIRTLET_DEPLOYMENT_FILES_DIR}/${fileName} ${VIRTLET_DEPLOYMENT_FILES_SRC}/${pathInSrc}
Maybe it's like this
wget -t 10 -O ${VIRTLET_DEPLOYMENT_FILES_DIR}/${fileName} ${VIRTLET_DEPLOYMENT_FILES_SRC}/${pathInSrc}
It can be solved, like this
wget --no-check-certificate -O ${VIRTLET_DEPLOYMENT_FILES_DIR}/${fileName} ${VIRTLET_DEPLOYMENT_FILES_SRC}/${pathInSrc}
What happened: execute hack/arktos-up.sh, then the following happened:
Environment:
kubectl version
): Use latest version from master(2020-05-23)cat /etc/os-release
):CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"
[root@cento1908 arktos]# uname -a Linux cento1908 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux