无法提取图像,未经授权:需要进行身份验证

时间:2018-01-08 17:00:58

标签: cloud-automation-manager

尝试从ICP 2101部署CAM图表版本2101.部署失败并显示错误:

  

无法拉取图片   “mycluster.icp:8500 / default / orpheus-iaas:2.1.0.1_121317”:rpc错误:   code = Unknown desc =来自守护进程的错误响应:Get   https://mycluster.icp:8500/v2/default/orpheus-iaas/manifests/2.1.0.1_121317:   未经授权:需要身份验证

2 个答案:

答案 0 :(得分:1)

将CAM PPA软件包加载到ICP时,我没有包含CAM安装主题中指出的--namespace serviceshttps://www.ibm.com/support/knowledgecenter/SS2L37/cam_installing_cam.html

我能够使用将所有CAM图像范围更改为global的变通方法: https://www.ibm.com/support/knowledgecenter/en/SSBS6K_2.1.0/manage_images/change_scope.html

我删除了现有的CAM部署,然后再次成功尝试部署。

答案 1 :(得分:1)

正如Scott所说,将图像范围更新为全局是正确的答案。这可以通过一个命令完成:

root@icp-master-1:~# kubectl get image -n=<namespace> -o yaml | sed 's/scope: namespace/scope: global/g' | kubectl replace -f -
image "cam-broker" replaced
image "cam-busybox" replaced
image "cam-mongo" replaced
image "cam-orchestration" replaced
image "cam-portal-api" replaced
image "cam-portal-ui" replaced
image "cam-redis" replaced
image "cam-service-composer-api" replaced
image "cam-service-composer-ui" replaced
image "orpheus-iaas" replaced
image "orpheus-proxy" replaced
image "orpheus-tenant-mgmt" replaced
image "orpheus-ui-basic" replaced
image "orpheus-ui-connections" replaced
image "orpheus-ui-instances" replaced
image "orpheus-ui-templates" replaced
image "provider-terraform-local" replaced