86 Star 471 Fork 273

GVPopenEuler / iSulad

 / 详情

配置163镜像仓库拉取镜像失败,报401错误

已完成
缺陷
创建于  
2021-04-20 09:46

【标题描述】
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}

评论 (3)

wangyueliang 创建了缺陷
wangyueliang 关联仓库设置为openEuler/iSulad
展开全部操作日志

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 通过openeuler/iSulad Pull Request !1050任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(4)
5329419 openeuler ci bot 1632792936 5226885 lifeng2221dd1 1594455940
C
1
https://gitee.com/openeuler/iSulad.git
git@gitee.com:openeuler/iSulad.git
openeuler
iSulad
iSulad

搜索帮助

53164aa7 5694891 3bd8fe86 5694891