73 Star 336 Fork 169

GVPopenEuler / iSulad

 / 详情

isula pull hello-world: fetch and parse manifest failed

Done
Task
Opened this issue  
2021-08-12 16:32

【标题描述】能够简要描述问题:说明什么场景下,做了什么操作,出现什么问题(尽量使用正向表达方式)
【环境信息】
硬件信息:intel x86_64 cpu (NUC)
1) 裸机场景提供出问题的硬件信息;
软件信息:
1) OS版本及分支: openEuler 21.03
2) 内核信息: 5.10.0-4.17.0.28.oe1.x86_64
3) 发现问题的组件版本信息: iSulad 2.0.8
如果有特殊组网,请提供网络拓扑图
【问题复现步骤】
isula pull hello-world
isula login docker.io

具体操作步骤
出现概率(是否必现,概率性错误)
必现
【预期结果】
正常拉取image; 因为同一机器上docker pull hello-world成功
正常login ;因为同一机器上docker login docker.io成功
【实际结果】
Image "hello-world" pulling
Failed to pull image hello-world with error: fetch and parse manifest failed

login:
Username: 3196331600
Password:
Error response from daemon: Failed to login with error: login to registry for registry-1.docker.io failed

【附件信息】
比如系统message日志/组件日志、dump信息、图片等
/etc/isulad/daemon.json已经填了docker.io
"registry-mirrors": [
"docker.io"
]

Comments (14)

wfchair74 created任务
wfchair74 set related repository to openEuler/iSulad
Expand operation logs

Hey wfchair1974, 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.

openeuler-ci-bot added
 
sig/iSulad
label

修改/etc/isulad/daemon.json之后有restartisulad吗。以下是按照issue描述的操作成功日志:
[root@localhost ~]# isula --version
Version 2.0.8, commit 9aa57ef27d3719729097f75c65125519497b8b66
[root@localhost ~]# uname -r
5.10.0-4.17.0.28.oe1.x86_64
[root@localhost ~]# cat /etc/isulad/daemon.json | grep registry -A3
"registry-mirrors": [
"docker.io"
],
"insecure-registries": [
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# isula pull hello-world
Image "hello-world" pulling
iSula 20210812093728.179 - Event: {Object: CRI, Type: Pulling image hello-world}
iSula 20210812093728.179 - Event: {Object: hello-world, Type: Pulling}
iSula 20210812093738.810 - Event: {Object: hello-world, Type: Pulled}
iSula 20210812093738.810 - Event: {Object: CRI, Type: Pulled image hello-world with ref d1165f2212346b2bab48cb01c1e39ee8ad1be46b87873d9ca7a4e434980a7726}
Image "d1165f2212346b2bab48cb01c1e39ee8ad1be46b87873d9ca7a4e434980a7726" pulled
[root@localhost ~]#
[root@localhost ~]# isula login docker.io
Username: tiamo0
Password: iSula 20210812093756.688 - Image Event: {Object: docker.io, Type: Logining}
iSula 20210812093756.688 - Event: {Object: docker.io, Type: logining}
iSula 20210812093802.805 - Event: {Object: docker.io, Type: logined}
iSula 20210812093802.805 - Image Event: {Object: docker.io, Type: Logined}
Login Succeeded
[root@localhost ~]#

修改/etc/isulad/daemon.json之后有restart isulad。

您试试killall -9 isulad && isulad -l DEBUG &手动启动isulad,再执行失败的步骤,抓一下相关日志。

     engine 20210813031129.143 - iSulad successfully booted in 0.013 s
     engine 20210813031129.143 INFO     /home/abuild/rpmbuild/BUILD/iSulad/src/cmd/isulad/main.c:main:1520 - Starting grpc server...
      iSula 20210813031129.143 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/plugin/plugin.c:plugin_manager_routine:703 - Watching /var/run/isulad/plugins for plugin disovery
      iSula 20210813031136.928 - Event: {Object: CRI, Type: Pulling image hello-world}
      iSula 20210813031136.928 - Event: {Object: hello-world, Type: Pulling}
      iSula 20210813031136.930 INFO     /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:354 - sending ping url: https://registry-1.docker.io/v2/
      iSula 20210813031136.930 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/http_request.c:setup_auth_challenges:402 - No valid challenge found, try continue to send url without auth
      iSula 20210813031140.707 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:360 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:40 GMT
content-length: 87
strict-transport-security: max-age=31536000

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

      iSula 20210813031140.708 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:295 - Docker-Distribution-Api-Version not found in header, registry may can not support registry API V2
      iSula 20210813031140.708 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:317 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:40 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031140.708 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:364 - parse ping header failed, response: HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:40 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031140.708 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_ping:397 - ping registry-1.docker.io with https failed, try http
      iSula 20210813031140.708 INFO     /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:354 - sending ping url: http://registry-1.docker.io/v2/
      iSula 20210813031140.708 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/http_request.c:setup_auth_challenges:402 - No valid challenge found, try continue to send url without auth
      iSula 20210813031142.743 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:360 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:42 GMT
content-length: 87
strict-transport-security: max-age=31536000

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

      iSula 20210813031142.743 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:295 - Docker-Distribution-Api-Version not found in header, registry may can not support registry API V2
      iSula 20210813031142.743 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:317 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:42 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031142.743 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:364 - parse ping header failed, response: HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:42 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031142.743 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_ping:402 - ping registry-1.docker.io with http failed
      iSula 20210813031142.743 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_request:430 - ping failed
      iSula 20210813031142.743 INFO     /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:354 - sending ping url: https://registry-1.docker.io/v2/
      iSula 20210813031142.743 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/http_request.c:setup_auth_challenges:402 - No valid challenge found, try continue to send url without auth
      iSula 20210813031145.213 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:360 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:45 GMT
content-length: 87
strict-transport-security: max-age=31536000

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

      iSula 20210813031145.213 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:295 - Docker-Distribution-Api-Version not found in header, registry may can not support registry API V2
      iSula 20210813031145.213 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:317 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:45 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031145.213 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:364 - parse ping header failed, response: HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:45 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031145.213 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_ping:397 - ping registry-1.docker.io with https failed, try http
      iSula 20210813031145.213 INFO     /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:354 - sending ping url: http://registry-1.docker.io/v2/
      iSula 20210813031145.213 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/http_request.c:setup_auth_challenges:402 - No valid challenge found, try continue to send url without auth
      iSula 20210813031147.218 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:360 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:46 GMT
content-length: 87
strict-transport-security: max-age=31536000

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

      iSula 20210813031147.218 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:295 - Docker-Distribution-Api-Version not found in header, registry may can not support registry API V2
      iSula 20210813031147.218 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:317 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:46 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031147.218 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:364 - parse ping header failed, response: HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:46 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031147.218 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_ping:402 - ping registry-1.docker.io with http failed
      iSula 20210813031147.218 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_request:430 - ping failed
      iSula 20210813031147.218 INFO     /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:354 - sending ping url: https://registry-1.docker.io/v2/
      iSula 20210813031147.218 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/http_request.c:setup_auth_challenges:402 - No valid challenge found, try continue to send url without auth
      iSula 20210813031149.124 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:360 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:48 GMT
content-length: 87
strict-transport-security: max-age=31536000

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

      iSula 20210813031149.124 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:295 - Docker-Distribution-Api-Version not found in header, registry may can not support registry API V2
      iSula 20210813031149.124 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:317 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:48 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031149.124 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:364 - parse ping header failed, response: HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:48 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031149.124 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_ping:397 - ping registry-1.docker.io with https failed, try http
      iSula 20210813031149.124 INFO     /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:354 - sending ping url: http://registry-1.docker.io/v2/
      iSula 20210813031149.124 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/http_request.c:setup_auth_challenges:402 - No valid challenge found, try continue to send url without auth
      iSula 20210813031152.155 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:360 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:52 GMT
content-length: 87
strict-transport-security: max-age=31536000

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

      iSula 20210813031152.155 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:295 - Docker-Distribution-Api-Version not found in header, registry may can not support registry API V2
      iSula 20210813031152.155 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:317 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:52 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031152.155 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:364 - parse ping header failed, response: HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:52 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031152.155 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_ping:402 - ping registry-1.docker.io with http failed
      iSula 20210813031152.155 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_request:430 - ping failed
      iSula 20210813031152.155 INFO     /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:354 - sending ping url: https://registry-1.docker.io/v2/
      iSula 20210813031152.155 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/http_request.c:setup_auth_challenges:402 - No valid challenge found, try continue to send url without auth
      iSula 20210813031155.833 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:360 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:55 GMT
content-length: 87
strict-transport-security: max-age=31536000

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

      iSula 20210813031155.834 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:295 - Docker-Distribution-Api-Version not found in header, registry may can not support registry API V2
      iSula 20210813031155.834 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:317 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:55 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031155.834 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:364 - parse ping header failed, response: HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:55 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031155.834 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_ping:397 - ping registry-1.docker.io with https failed, try http
      iSula 20210813031155.834 INFO     /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:354 - sending ping url: http://registry-1.docker.io/v2/
      iSula 20210813031155.834 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/http_request.c:setup_auth_challenges:402 - No valid challenge found, try continue to send url without auth
      iSula 20210813031157.503 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:360 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:57 GMT
content-length: 87
strict-transport-security: max-age=31536000

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

      iSula 20210813031157.503 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:295 - Docker-Distribution-Api-Version not found in header, registry may can not support registry API V2
      iSula 20210813031157.503 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:317 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:57 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031157.503 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:364 - parse ping header failed, response: HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:57 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031157.503 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_ping:402 - ping registry-1.docker.io with http failed
      iSula 20210813031157.503 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_request:430 - ping failed
      iSula 20210813031157.503 INFO     /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:354 - sending ping url: https://registry-1.docker.io/v2/
      iSula 20210813031157.503 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/http_request.c:setup_auth_challenges:402 - No valid challenge found, try continue to send url without auth
      iSula 20210813031158.438 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:360 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:58 GMT
content-length: 87
strict-transport-security: max-age=31536000

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

      iSula 20210813031158.438 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:295 - Docker-Distribution-Api-Version not found in header, registry may can not support registry API V2
      iSula 20210813031158.439 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:317 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:58 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031158.439 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:364 - parse ping header failed, response: HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:11:58 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031158.439 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_ping:397 - ping registry-1.docker.io with https failed, try http
      iSula 20210813031158.439 INFO     /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:354 - sending ping url: http://registry-1.docker.io/v2/
      iSula 20210813031158.439 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/http_request.c:setup_auth_challenges:402 - No valid challenge found, try continue to send url without auth
      iSula 20210813031203.769 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:360 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:12:02 GMT
content-length: 87
strict-transport-security: max-age=31536000

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

      iSula 20210813031203.769 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:295 - Docker-Distribution-Api-Version not found in header, registry may can not support registry API V2
      iSula 20210813031203.769 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:317 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:12:02 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031203.770 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:364 - parse ping header failed, response: HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:12:02 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031203.770 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_ping:402 - ping registry-1.docker.io with http failed
      iSula 20210813031203.770 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_request:430 - ping failed
      iSula 20210813031203.770 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:fetch_manifest_list:691 - registry: Get /v2/library/hello-world/manifests/latest failed
      iSula 20210813031203.770 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry.c:fetch_and_parse_manifest:1089 - fetch manifest failed
      iSula 20210813031203.770 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry.c:registry_fetch:1765 - fetch and parse manifest failed for image docker.io/library/hello-world:latest
      iSula 20210813031203.770 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry.c:registry_pull:2008 - error fetching docker.io/library/hello-world:latest
      iSula 20210813031203.770 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/oci_pull.c:oci_do_pull_image:186 - pull image hello-world failed
      iSula 20210813031203.770 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/image.c:im_pull_image:946 - Pull image hello-world failed
      iSula 20210813031203.770 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/entry/connect/grpc/runtime_image_service.cc:PullImage:40 - {Object: CRI, Type: Failed to pull image hello-world}
      iSula 20210813031426.521 - Image Event: {Object: docker.io, Type: Logining}
      iSula 20210813031426.521 - Event: {Object: docker.io, Type: logining}
      iSula 20210813031426.521 INFO     /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:354 - sending ping url: https://registry-1.docker.io/v2/
      iSula 20210813031426.521 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/http_request.c:setup_auth_challenges:402 - No valid challenge found, try continue to send url without auth
      iSula 20210813031427.617 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:360 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:14:27 GMT
content-length: 87
strict-transport-security: max-age=31536000

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

      iSula 20210813031427.617 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:295 - Docker-Distribution-Api-Version not found in header, registry may can not support registry API V2
      iSula 20210813031427.617 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:317 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:14:27 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031427.617 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:364 - parse ping header failed, response: HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:14:27 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031427.617 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_ping:397 - ping registry-1.docker.io with https failed, try http
      iSula 20210813031427.617 INFO     /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:354 - sending ping url: http://registry-1.docker.io/v2/
      iSula 20210813031427.617 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/http_request.c:setup_auth_challenges:402 - No valid challenge found, try continue to send url without auth
      iSula 20210813031432.527 DEBUG    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:360 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:14:31 GMT
content-length: 87
strict-transport-security: max-age=31536000

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

      iSula 20210813031432.527 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:295 - Docker-Distribution-Api-Version not found in header, registry may can not support registry API V2
      iSula 20210813031432.527 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:parse_ping_header:317 - ping resp=HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:14:31 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031432.527 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_pingv2:364 - parse ping header failed, response: HTTP/1.1 401 Unauthorized

content-type: application/json
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
date: Fri, 13 Aug 2021 03:14:31 GMT
content-length: 87
strict-transport-security: max-age=31536000

      iSula 20210813031432.527 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_ping:402 - ping registry-1.docker.io with http failed
      iSula 20210813031432.527 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:registry_request:430 - ping failed
      iSula 20210813031432.527 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry_apiv2.c:login_to_registry:1220 - registry: Get /v2/ failed, resp: (null)
      iSula 20210813031432.527 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/registry/registry.c:registry_login:2161 - login to registry failed
      iSula 20210813031432.527 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/oci_login.c:oci_do_login:80 - registry login failed
      iSula 20210813031432.527 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/oci/oci_image.c:oci_login:663 - Login failed
      iSula 20210813031432.527 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/modules/image/image.c:im_login:1222 - Failed to login docker.io
      iSula 20210813031432.527 ERROR    /home/abuild/rpmbuild/BUILD/iSulad/src/daemon/executor/image_cb/image_cb.c:login_cb:295 - Failed to login docker.io

您需要我这里failure的journalctl -u isulad的log吗?

isula pull / login 的失败Log如上。本case,@Tiamo0 您有什么看法?

JingWoo set assignee to wangfengtu

@wfchair1974 hi,你用的isulad的版本是什么时候的?

openEuler 21.03 iso自带的iSulad
Version : 2.0.8
Release : 20210323.094917.git7e6aa593.oe1

需要更新下版本,这个问题在2个月前修复了,!1099:suppress proxy connect headers message

openEuler 21.03 的iSulad就有这个问题?
Version : 2.0.8
Release : 20210323.094917.git7e6aa593.oe1

这个问题一直就有吗?还是某次commit导致的degrade?

我记得6月末在ubuntu 20.04上编译运行iSulad是OK的,用的应该是!1099:suppress proxy connect headers message merge的source。

在openEuler 21.03上直接用
iSulad / docs / install_iSulad_on_Centos_7.sh
脚本 就可以更新iSulad的版本了吧。

@wfchair1974 问题解决了吗?解决了的话可以关闭一下issue

wfchair74 changed issue state from 待办的 to 已完成

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
Confirm
参与者(5)
5329419 openeuler ci bot 1632792936 7935460 tiamo0 1628583624 5595769 duguhaotian 1605235330
C
1
https://git.oschina.net/openeuler/iSulad.git
git@git.oschina.net:openeuler/iSulad.git
openeuler
iSulad
iSulad

Search