CloudStack:导入网络镜像的一次报错

1、故障描述

通过“注册ISO”功能导入阿里云的一个镜像,出现如下报错信息:

blob.png

查看资源域的信息:

blob.png

2、查看日志

1
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,然后重新导入,问题解决。











本文转自 冰冻vs西瓜 51CTO博客,原文链接:http://blog.51cto.com/molewan/2061970,如需转载请自行联系原作者
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值