1. 程式人生 > >CloudStack:導入網絡鏡像的一次報錯

CloudStack:導入網絡鏡像的一次報錯

blob clust 嘗試 family builder pre host src int

1、故障描述

通過“註冊ISO”功能導入阿裏雲的一個鏡像,出現如下報錯信息:

技術分享圖片

查看資源域的信息:

技術分享圖片

2、查看日誌

Jan 17 06:25:01 cloudstack-new-02 server: WARN  [o.a.c.alerts] (RemoteHostEndPoint-1:ctx-6d1f1c4f) (logid:9193f818)  alertType:: 28 // dataCenterId:: 1 // podId:: null // clusterId:: null // message:: Failed to register template: 2baea0b9-4148-4e8c-b08a-fe5d211c6353 with error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Jan 17 06:25:01 cloudstack-new-02 server: ERROR [o.a.c.s.i.BaseImageStoreDriverImpl] (RemoteHostEndPoint-1:ctx-6d1f1c4f) (logid:9193f818) Failed to register template: 2baea0b9-4148-4e8c-b08a-fe5d211c6353 with error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

根據提示,是認證相關的信息,這個時候我無意中嘗試了下163的鏡像,然後導入163的鏡像,提示正常。

3、對比URL

網易163的鏡像鏈接:http://mirrors.163.com/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1708.iso

阿裏雲的鏡像鏈接:https://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1708.iso

原來163的鏡像使用的http協議,而阿裏雲的是https,將阿裏雲的鏈接地址改為http://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1708.iso,然後重新導入,問題解決。





CloudStack:導入網絡鏡像的一次報錯