找回密码
 注册
查看: 480|回复: 0

docker.errors.APIError: 500 Server Error for http+docker://localhost/v1.42/image

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2023-2-19 11:00:11 | 显示全部楼层 |阅读模式
TASK [common : Ensure fluentd image is present for label check] **************************************************
: r& ^8 d5 v* ?fatal: [localhost]: FAILED! => {"changed": true, "msg": "'Traceback (most recent call last):\\n  File \"/usr/local/lib/python3.6/site-packages/docker/api/client.py\", line 268, in _raise_for_status\\n    response.raise_for_status()\\n  File \"/usr/local/lib/python3.6/site-packages/requests/models.py\", line 960, in raise_for_status\\n    raise HTTPError(http_error_msg, response=self)\\nrequests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http+docker://localhost/v1.42/images/create?tag=xena&fromImage=quay.io%2Fkolla%2Fcentos-source-fluentd\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n  File \"/tmp/ansible_kolla_docker_payload_xn66sz9v/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py\", line 1271, in main\\n  File \"/tmp/ansible_kolla_docker_payload_xn66sz9v/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py\", line 1121, in ensure_image\\n  File \"/tmp/ansible_kolla_docker_payload_xn66sz9v/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py\", line 697, in pull_image\\n  File \"/usr/local/lib/python3.6/site-packages/docker/api/image.py\", line 430, in pull\\n    self._raise_for_status(response)\\n  File \"/usr/local/lib/python3.6/site-packages/docker/api/client.py\", line 270, in _raise_for_status\\n    raise create_api_error_from_http_exception(e)\\n  File \"/usr/local/lib/python3.6/site-packages/docker/errors.py\", line 31, in create_api_error_from_http_exception\\n    raise cls(e, response=response, explanation=explanation)\\ndocker.errors.APIError: 500 Server Error for http+docker://localhost/v1.42/images/create?tag=xena&fromImage=quay.io%2Fkolla%2Fcentos-source-fluentd: Internal Server Error (\"unauthorized: access to the requested resource is not authorized\")\\n'"}
+ d0 f7 h  c/ M' y3 H$ _- M: g; ~! N' z  _! D3 l/ a" A! j3 ]
PLAY RECAP ******************************************************************************************************** ~9 F' z0 v: D3 M, ?7 H; d  c; Y
localhost                  : ok=6    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
0 _4 X! j! R0 b% c) W/ r2 Q/ k
5 F% p$ a0 w* G; u5 j/ ~* j, N
) F5 s5 b: y0 U  X% y4 _! A2 s* S2 h+ G( k5 V- u4 U
修改vim /etc/kolla/globals.yml
6 Q# `! ]" h. i5 X1 @7 g& c* E' V" G% d
# Valid options are [ binary, source ]
! s9 K& F$ n) R( W4 o9 y. l" ], i$ `+ s' z% b3 b3 a& L  @0 e
把kolla_install_type: "source"改成; r# o6 v- J% e0 i- R2 ~
kolla_install_type: "binary"! J3 d# w3 t' [4 l5 y
" D' u8 B  M& p# ~

2 ^7 l% |. @- q3 M9 ~2 y% R重新启动服务
' T. Z# _8 A' C8 j1 ^6 d: t2 A* M9 H* b
& i3 k3 g3 N% h8 }5 A' f/ P

' B/ i. D  u$ i
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 01:29 , Processed in 0.015414 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表