【标题描述】
isula从163镜像仓库pull镜像失败,相同镜像地址docker pull正常。
isula与docker均未执行login等其他操作。
【环境信息】
硬件信息:
x86_64虚机两套环境测试现象相同
软件信息:
1) os版本:openEuler 21.03
2) 内核信息:5.10.0-4.17.0.28.oe1.x86_64
3) 发现问题的组件版本信息:isula v2.0.8与最新源码编译安装版本现象相同
【问题复现步骤】
具体操作步骤
执行isula pull hub.c.163.com/public/centos:6.7-tools
出现概率(是否必现,概率性错误)
必现
【预期结果】
镜像拉取成功
【实际结果】
镜像拉取失败,报错如下:
[root@wyl-openeuler ~]# isula pull hub.c.163.com/public/centos:6.7-tools
Image "hub.c.163.com/public/centos:6.7-tools" pulling
Failed to pull image hub.c.163.com/public/centos:6.7-tools with error: registry response invalid status code 401
【附件信息】
isulad日志:
engine 20210419091140.209 - iSulad successfully booted in 0.013 s
iSula 20210419091233.864 - Event: {Object: CRI, Type: Pulling image hub.c.163.com/public/centos:6.7-tools}
iSula 20210419091233.864 - Event: {Object: hub.c.163.com/public/centos:6.7-tools, Type: Pulling}
iSula 20210419091234.512 ERROR /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_manifest_head:525 - registry response invalid status code 401
response:HTTP/1.1 401 Unauthorized
Server: nginx/1.10.1
Date: Mon, 19 Apr 2021 09:12:34 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 156
Connection: keep-alive
Docker-Distribution-Api-Version: registry/2.0
Www-Authenticate: Bearer realm="https://hub-auth.c.163.com/auth",service="Docker registry",scope="repository:public/centos:pull",error="invalid_token"
iSula 20210419091234.513 ERROR /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry.c:fetch_and_parse_manifest:1089 - fetch manifest failed
iSula 20210419091234.513 ERROR /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry.c:registry_fetch:1765 - fetch and parse manifest failed for image hub.c.163.com/public/centos:6.7-tools
iSula 20210419091234.513 ERROR /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry.c:registry_pull:2008 - error fetching hub.c.163.com/public/centos:6.7-tools
iSula 20210419091234.513 ERROR /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/oci_pull.c:pull_image:129 - pull image failed
iSula 20210419091234.513 ERROR /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/oci_pull.c:oci_do_pull_image:186 - pull image hub.c.163.com/public/centos:6.7-tools failed
iSula 20210419091234.513 ERROR /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/image.c:im_pull_image:946 - Pull image hub.c.163.com/public/centos:6.7-tools failed
iSula 20210419091234.513 ERROR /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/entry/connect/grpc/runtime_image_service.cc:PullImage:40 - {Object: CRI, Type: Failed to pull image hub.c.163.com/public/centos:6.7-tools}
Hey wangyueliang, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
@wangfengtu PTAL
好的,我本地也能复现出来,我看一下这个问题
登录 后才可以发表评论