任务

任务

我正在尝试使用 kolla-ansible 安装 openstack wallaby。我遵循了此文档https://docs.openstack.org/kolla-ansible/latest/user/quickstart.htmlhttps://docs.openstack.org/kolla-ansible/latest/user/multinode.html部署多节点。

我创建了一个本地注册表

docker run -d \
 --name registry \
 --restart=always \
 -p 4000:5000 \
 -v registry:/var/lib/registry \
 registry:2

docker ps -a 显示

CONTAINER ID   IMAGE         COMMAND                  CREATED          STATUS                      PORTS     NAMES
ea8b5750b84a   hello-world   "/hello"                 30 minutes ago   Exited (0) 30 minutes ago             eloquent_poincare
4e1a2028653f   registry:2    "/entrypoint.sh /etc…"   17 hours ago     Up 3 hours                            registry

所以我尝试将图像推送到我的本地注册表

kolla-build --base ubuntu --type binary --registry 10.102.196.118:4000 --push

并且它表明

任务 [常见:拉取常见图像] ************************************************************************************************************************************************************************* 失败:[控制器](item = {'key':'fluentd','value':{'container_name':'fluentd','group':'fluentd','enabled':True,'image':'10.102.196.118:4000/kolla/ubuntu-binary-fluentd:wallaby','environment':{'KOLLA_CONFIG_STRATEGY':'COPY_ALWAYS'},'volumes':['/ etc / kolla / fluentd /:/ var / lib / kolla / config_files /:ro','/ etc / localtime:/ etc / localtime:ro', '/etc/timezone:/etc/timezone:ro', 'kolla_logs:/var/log/kolla/', 'fluentd_data:/var/lib/fluentd/data/'], 'dimensions': {}}}) => {"ansible_loop_var": "item", "changed": true, "item": {"key": "fluentd", "value": {"container_name": "fluentd", "dimensions": {}, "enabled": true, "environment": {"KOLLA_CONFIG_STRATEGY": "COPY_ALWAYS"}, "group": "fluentd", "image": "10.102.196.118:4000/kolla/ubuntu-binary-fluentd:wallaby", "volumes": ["/etc/kolla/fluentd/:/var/lib/kolla/config_files/:ro", “/etc/localtime:/etc/localtime:ro”, “/etc/timezone:/etc/timezone:ro”, “kolla_logs:/var/log/kolla/”, “fluentd_data:/var/lib/fluentd/data/”]}}, “msg”:“'Traceback(最近一次调用最后一次):\n文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”,第 268 行,在 _raise_for_status\n response.raise_for_status()\n文件“/usr/lib/python3/dist-packages/requests/models.py”,第 940 行,在 raise_for_status\n 中引发 HTTPError(http_error_msg,response=self)\nrequests.exceptions.HTTPError:500 服务器错误:url 的内部服务器错误: http+docker://localhost/v1.41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-fluentd\n\n在处理上述异常期间,发生了另一个异常:\n\n回溯(最近一次调用最后一次):\n 文件“/tmp/ansible_kolla_docker_payload_bjjz7o8w/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”,第 1199 行,在 main\n 文件“/tmp/ansible_kolla_docker_payload_bjjz7o8w/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”,第 649 行,在 pull_image\n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/image.py”, 第 430 行, 在 pull\n self._raise_for_status(response)\n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”, 第 270 行, 在 _raise_for_status\n raise create_api_error_from_http_exception(e)\n 文件“/usr/local/lib/python3.8/dist-packages/docker/errors.py”, 第 31 行,在 create_api_error_from_http_exception\n 中引发 cls(e,response=response,explanation=explanation)\ndocker.errors.APIError:http+docker://localhost/v1.41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-fluentd 的 500 服务器错误:内部服务器错误(“获取http://10.102.196.118:4000/v2/:拨号 tcp 10.102.196.118:4000:连接:连接被拒绝”)\n'“} 失败:[compute01](item = {'key':'fluentd','value':{'container_name':'fluentd','group':'fluentd','enabled':True,'image':'10.102.196.118:4000/kolla/ubuntu-binary-fluentd:wallaby','environment':{'KOLLA_CONFIG_STRATEGY':'COPY_ALWAYS'},'volumes':['/ etc / kolla / fluentd /:/ var / lib / kolla / config_files /:ro','/ etc / localtime:/etc/localtime:ro', '/etc/timezone:/etc/timezone:ro', 'kolla_logs:/var/log/kolla/', 'fluentd_data:/var/lib/fluentd/data/'], 'dimensions': {}}}) => {"ansible_loop_var": "item", "changed": true, "item": {"key": "fluentd", "value": {"container_name": "fluentd", "dimensions": {}, "enabled": true, "environment": {"KOLLA_CONFIG_STRATEGY": "COPY_ALWAYS"}, "group": "fluentd", "image": "10.102.196.118:4000/kolla/ubuntu-binary-fluentd:wallaby", "volumes": ["/etc/kolla/fluentd/:/var/lib/kolla/config_files/:ro", “/etc/localtime:/etc/localtime:ro”, “/etc/timezone:/etc/timezone:ro”, “kolla_logs:/var/log/kolla/”, “fluentd_data:/var/lib/fluentd/data/”]}}, “msg”:“'Traceback(最近一次调用最后一次):\n文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”,第 268 行,在 _raise_for_status\n response.raise_for_status()\n文件“/usr/lib/python3/dist-packages/requests/models.py”,第 940 行,在 raise_for_status\n 中引发 HTTPError(http_error_msg,response=self)\nrequests.exceptions.HTTPError:500 服务器错误:url 的内部服务器错误: http+docker://localhost/v1.41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-fluentd\n\n在处理上述异常期间,发生了另一个异常:\n\n回溯(最近一次调用最后一次):\n 文件“/tmp/ansible_kolla_docker_payload_em961l9o/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”,第 1199 行,在 main\n 文件“/tmp/ansible_kolla_docker_payload_em961l9o/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”,第 649 行,在 pull_image\n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/image.py”, 第 430 行, 在 pull \n self._raise_for_status(response) \n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”, 第 270 行, 在 _raise_for_status \n 中引发 create_api_error_from_http_exception(e) \n 文件“/usr/local/lib/python3.8/dist-packages/docker/errors.py”, 第 31 行, 在 create_api_error_from_http_exception \n 中引发 cls(e, response=response, interpretation=explanation) \ndocker.errors.APIError: http+docker://localhost/v1 的 500 服务器错误。41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-fluentd:内部服务器错误(“获取http://10.102.196.118:4000/v2/:拨号 tcp 10.102.196.118:4000:连接:连接被拒绝”)\n'“} 失败:[compute02](item = {'key':'fluentd','value':{'container_name':'fluentd','group':'fluentd','enabled':True,'image':'10.102.196.118:4000/kolla/ubuntu-binary-fluentd:wallaby','environment':{'KOLLA_CONFIG_STRATEGY':'COPY_ALWAYS'},'volumes':['/ etc / kolla / fluentd /:/ var / lib / kolla / config_files /:ro','/ etc / localtime:/etc/localtime:ro', '/etc/timezone:/etc/timezone:ro', 'kolla_logs:/var/log/kolla/', 'fluentd_data:/var/lib/fluentd/data/'], 'dimensions': {}}}) => {"ansible_loop_var": "item", "changed": true, "item": {"key": "fluentd", "value": {"container_name": "fluentd", "dimensions": {}, "enabled": true, "environment": {"KOLLA_CONFIG_STRATEGY": "COPY_ALWAYS"}, "group": "fluentd", "image": "10.102.196.118:4000/kolla/ubuntu-binary-fluentd:wallaby", "volumes": ["/etc/kolla/fluentd/:/var/lib/kolla/config_files/:ro", “/etc/localtime:/etc/localtime:ro”, “/etc/timezone:/etc/timezone:ro”, “kolla_logs:/var/log/kolla/”, “fluentd_data:/var/lib/fluentd/data/”]}}, “msg”:“'Traceback(最近一次调用最后一次):\n文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”,第 268 行,在 _raise_for_status\n response.raise_for_status()\n文件“/usr/lib/python3/dist-packages/requests/models.py”,第 940 行,在 raise_for_status\n 中引发 HTTPError(http_error_msg,response=self)\nrequests.exceptions.HTTPError:500 服务器错误:url 的内部服务器错误: http+docker://localhost/v1.41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-fluentd\n\n在处理上述异常期间,发生了另一个异常:\n\n回溯(最近一次调用最后一次):\n 文件“/tmp/ansible_kolla_docker_payload_r459m9qj/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”,第 1199 行,在 main\n 文件“/tmp/ansible_kolla_docker_payload_r459m9qj/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”,第 649 行,在 pull_image\n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/image.py”, 第 430 行, 在 pull \n self._raise_for_status(response) \n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”, 第 270 行, 在 _raise_for_status \n 中引发 create_api_error_from_http_exception(e) \n 文件“/usr/local/lib/python3.8/dist-packages/docker/errors.py”, 第 31 行, 在 create_api_error_from_http_exception \n 中引发 cls(e, response=response, interpretation=explanation) \ndocker.errors.APIError: http+docker://localhost/v1 的 500 服务器错误。41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-fluentd:内部服务器错误(“获取http://10.102.196.118:4000/v2/:拨号 tcp 10.102.196.118:4000:连接:连接被拒绝”)\n'“} 失败:[compute01](item = {'key':'kolla-toolbox','value':{'container_name':'kolla_toolbox','group':'kolla-toolbox','enabled':True,'image':'10.102.196.118:4000 / kolla / ubuntu-binary-kolla-toolbox:wallaby','environment':{'ANSIBLE_NOCOLOR':'1','ANSIBLE_LIBRARY':'/ usr / share / ansible'},'privileged':True,'volumes': ['/etc/kolla/kolla-toolbox/:/var/lib/kolla/config_files/:ro', '/etc/localtime:/etc/localtime:ro', '/etc/timezone:/etc/timezone:ro', '/dev/:/dev/', '/run/:/run/:shared', 'kolla_logs:/var/log/kolla/', '/run/openvswitch:/run/openvswitch:shared'], 'dimensions': {}}}) => {"ansible_loop_var": "item", "changed": true, "item": {"key": "kolla-toolbox", "value": {"container_name": "kolla_toolbox", "dimensions": {}, "enabled": true, "environment": {"ANSIBLE_LIBRARY": "/usr/share/ansible", “ANSIBLE_NOCOLOR”:“1”},“group”:“kolla-toolbox”,“image”:“10.102.196.118:4000/kolla/ubuntu-binary-kolla-toolbox:wallaby”,“privileged”:true, “volumes”:[“/etc/kolla/kolla-toolbox/:/var/lib/kolla/config_files/:ro”,“/etc/localtime:/etc/localtime:ro”,“/etc/timezone:/etc/timezone:ro”,“/dev/:/dev/”,“/run/:/run/:shared”,“kolla_logs:/var/log/kolla/”,“/run/openvswitch:/run/openvswitch:shared”]}},“msg”:“'Traceback(最近一次调用最后一次):\n文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”, 第 268 行, 在 _raise_for_status\n response.raise_for_status()\n 文件“/usr/lib/python3/dist-packages/requests/models.py”, 第 940 行, 在 raise_for_status\n 中引发 HTTPError(http_error_msg, response=self)\nrequests.exceptions.HTTPError: 500 服务器错误: url 的内部服务器错误: http+docker://localhost/v1.41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-kolla-toolbox\n\n处理上述异常期间, 发生了另一个异常:\n\nTraceback (最近一次调用最后一次):\n 文件“/tmp/ansible_kolla_docker_payload_i1vw3h3y/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”, 第 1199 行, 在 main\n 文件“/tmp/ansible_kolla_docker_payload_i1vw3h3y/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”, 第 649 行, 在 pull_image\n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/image.py”, 第 430 行, 在 pull\n self._raise_for_status(response)\n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”, 第 270 行,在 _raise_for_status\n 中引发 create_api_error_from_http_exception(e)\n 文件“/usr/local/lib/python3.8/dist-packages/docker/errors.py”,第 31 行,在 create_api_error_from_http_exception\n 中引发 cls(e,response=response,explanation=explanation)\ndocker.errors.APIError:http+docker://localhost/v1.41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-kolla-toolbox 的 500 服务器错误:内部服务器错误(“获取http://10.102.196.118:4000/v2/:拨号 tcp 10.102.196.118:4000:连接:连接被拒绝”)\n'“} 失败:[compute02](item = {'key':'kolla-toolbox','value':{'container_name':'kolla_toolbox','group':'kolla-toolbox','enabled':True,'image':'10.102.196.118:4000 / kolla / ubuntu-binary-kolla-toolbox:wallaby','environment':{'ANSIBLE_NOCOLOR':'1','ANSIBLE_LIBRARY':'/ usr / share / ansible'},'privileged':True,'volumes': ['/etc/kolla/kolla-toolbox/:/var/lib/kolla/config_files/:ro', '/etc/localtime:/etc/localtime:ro', '/etc/timezone:/etc/timezone:ro', '/dev/:/dev/', '/run/:/run/:shared', 'kolla_logs:/var/log/kolla/', '/run/openvswitch:/run/openvswitch:shared'], 'dimensions': {}}}) => {"ansible_loop_var": "item", "changed": true, "item": {"key": "kolla-toolbox", "value": {"container_name": "kolla_toolbox", "dimensions": {}, "enabled": true, "environment": {"ANSIBLE_LIBRARY": "/usr/share/ansible", “ANSIBLE_NOCOLOR”:“1”},“group”:“kolla-toolbox”,“image”:“10.102.196.118:4000/kolla/ubuntu-binary-kolla-toolbox:wallaby”,“privileged”:true, “volumes”:[“/etc/kolla/kolla-toolbox/:/var/lib/kolla/config_files/:ro”,“/etc/localtime:/etc/localtime:ro”,“/etc/timezone:/etc/timezone:ro”,“/dev/:/dev/”,“/run/:/run/:shared”,“kolla_logs:/var/log/kolla/”,“/run/openvswitch:/run/openvswitch:shared”]}},“msg”:“'Traceback(最近一次调用最后一次):\n文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”, 第 268 行, 在 _raise_for_status\n response.raise_for_status()\n 文件“/usr/lib/python3/dist-packages/requests/models.py”, 第 940 行, 在 raise_for_status\n 中引发 HTTPError(http_error_msg, response=self)\nrequests.exceptions.HTTPError: 500 服务器错误: url 的内部服务器错误: http+docker://localhost/v1.41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-kolla-toolbox\n\n处理上述异常期间, 发生了另一个异常:\n\nTraceback (最近一次调用最后一次):\n 文件“/tmp/ansible_kolla_docker_payload_fhy2h219/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”, 第 1199 行, 在 main\n 文件“/tmp/ansible_kolla_docker_payload_fhy2h219/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”, 第 649 行, 在 pull_image\n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/image.py”, 第 430 行, 在 pull\n self._raise_for_status(response)\n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”, 第 270 行,在 _raise_for_status\n 中引发 create_api_error_from_http_exception(e)\n 文件“/usr/local/lib/python3.8/dist-packages/docker/errors.py”,第 31 行,在 create_api_error_from_http_exception\n 中引发 cls(e,response=response,explanation=explanation)\ndocker.errors.APIError:http+docker://localhost/v1.41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-kolla-toolbox 的 500 服务器错误:内部服务器错误(“获取http://10.102.196.118:4000/v2/:拨号 tcp 10.102.196.118:4000:连接:连接被拒绝”)\n'“} 失败:[控制器](item = {'key':'kolla-toolbox','value':{'container_name':'kolla_toolbox','group':'kolla-toolbox','enabled':True,'image':'10.102.196.118:4000 / kolla / ubuntu-binary-kolla-toolbox:wallaby','environment':{'ANSIBLE_NOCOLOR':'1','ANSIBLE_LIBRARY':'/ usr / share / ansible'},'privileged':True,'volumes': ['/etc/kolla/kolla-toolbox/:/var/lib/kolla/config_files/:ro', '/etc/localtime:/etc/localtime:ro', '/etc/timezone:/etc/timezone:ro', '/dev/:/dev/', '/run/:/run/:shared', 'kolla_logs:/var/log/kolla/', '/run/openvswitch:/run/openvswitch:shared'], 'dimensions': {}}}) => {"ansible_loop_var": "item", "changed": true, "item": {"key": "kolla-toolbox", "value": {"container_name": "kolla_toolbox", "dimensions": {}, "enabled": true, "environment": {"ANSIBLE_LIBRARY": "/usr/share/ansible", “ANSIBLE_NOCOLOR”:“1”},“group”:“kolla-toolbox”,“image”:“10.102.196.118:4000/kolla/ubuntu-binary-kolla-toolbox:wallaby”,“privileged”:true, “volumes”:[“/etc/kolla/kolla-toolbox/:/var/lib/kolla/config_files/:ro”,“/etc/localtime:/etc/localtime:ro”,“/etc/timezone:/etc/timezone:ro”,“/dev/:/dev/”,“/run/:/run/:shared”,“kolla_logs:/var/log/kolla/”,“/run/openvswitch:/run/openvswitch:shared”]}},“msg”:“'Traceback(最近一次调用最后一次):\n文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”, 第 268 行, 在 _raise_for_status\n response.raise_for_status()\n 文件“/usr/lib/python3/dist-packages/requests/models.py”, 第 940 行, 在 raise_for_status\n 中引发 HTTPError(http_error_msg, response=self)\nrequests.exceptions.HTTPError: 500 服务器错误: url 的内部服务器错误: http+docker://localhost/v1.41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-kolla-toolbox\n\n处理上述异常期间, 发生了另一个异常:\n\nTraceback (最近一次调用最后一次):\n 文件“/tmp/ansible_kolla_docker_payload_lwwkuzxg/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”, 第 1199 行, 在 main\n 文件“/tmp/ansible_kolla_docker_payload_lwwkuzxg/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”, 第 649 行, 在 pull_image\n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/image.py”, 第 430 行, 在 pull\n self._raise_for_status(response)\n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”, 第 270 行,在 _raise_for_status\n 中引发 create_api_error_from_http_exception(e)\n 文件“/usr/local/lib/python3.8/dist-packages/docker/errors.py”,第 31 行,在 create_api_error_from_http_exception\n 中引发 cls(e,response=response,explanation=explanation)\ndocker.errors.APIError:http+docker://localhost/v1.41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-kolla-toolbox 的 500 服务器错误:内部服务器错误(“获取http://10.102.196.118:4000/v2/:拨号 tcp 10.102.196.118:4000:连接:连接被拒绝”)\n'“} 失败:[compute02](item = {'key':'cron','value':{'container_name':'cron','group':'cron','enabled':True,'image':'10.102.196.118:4000/kolla/ubuntu-binary-cron:wallaby','environment':{'DUMMY_ENVIRONMENT':'kolla_useless_env'},'volumes':['/ etc / kolla / cron /:/ var / lib / kolla / config_files /:ro','/ etc / localtime:/etc/localtime:ro','/ etc / timezone:/etc/timezone:ro', 'kolla_logs:/var/log/kolla/'], 'dimensions': {}}}) => {"ansible_loop_var": "item", "changed": true, "item": {"key": "cron", "value": {"container_name": "cron", "dimensions": {}, "enabled": true, "environment": {"DUMMY_ENVIRONMENT": "kolla_useless_env"}, "group": "cron", "image": "10.102.196.118:4000/kolla/ubuntu-binary-cron:wallaby", "volumes": ["/etc/kolla/cron/:/var/lib/kolla/config_files/:ro", "/etc/localtime:/etc/localtime:ro", "/etc/timezone:/etc/timezone:ro", “kolla_logs:/var/log/kolla/”]}}, “msg”:“'Traceback(最近一次调用最后一次):\n文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”,第 268 行,在 _raise_for_status\n response.raise_for_status()\n文件“/usr/lib/python3/dist-packages/requests/models.py”,第 940 行,在 raise_for_status\n 中引发 HTTPError(http_error_msg,response=self)\nrequests.exceptions.HTTPError:500 服务器错误:url 的内部服务器错误:http+docker://localhost/v1.41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-cron\n\n处理期间上述异常之外,还发生了另一个异常:\n\n回溯(最近一次调用最后一次):\n 文件“/tmp/ansible_kolla_docker_payload_6iio6rgh/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”,第 1199 行,在 main\n 文件“/tmp/ansible_kolla_docker_payload_6iio6rgh/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”,第 649 行,在 pull_image\n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/image.py”,第 430 行,在 pull\n self._raise_for_status(response)\n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”,第 270 行,在_raise_for_status\n 引发 create_api_error_from_http_exception(e)\n 文件“/usr/local/lib/python3.8/dist-packages/docker/errors.py”,第 31 行,位于 create_api_error_from_http_exception\n 中 raise cls(e, response=response, interpretation=explanation)\ndocker.errors.APIError: 500 服务器错误,用于 http+docker://localhost/v1.41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-cron: 内部服务器错误(“获取http://10.102.196.118:4000/v2/:拨号 tcp 10.102.196.118:4000:连接:连接被拒绝”)\n'“} 失败:[控制器](item = {'key':'cron','value':{'container_name':'cron','group':'cron','enabled':True,'image':'10.102.196.118:4000/kolla/ubuntu-binary-cron:wallaby','environment':{'DUMMY_ENVIRONMENT':'kolla_useless_env'},'volumes':['/ etc / kolla / cron /:/ var / lib / kolla / config_files /:ro','/ etc / localtime:/etc/localtime:ro','/ etc / timezone:/etc/timezone:ro', 'kolla_logs:/var/log/kolla/'], 'dimensions': {}}}) => {"ansible_loop_var": "item", "changed": true, "item": {"key": "cron", "value": {"container_name": "cron", "dimensions": {}, "enabled": true, "environment": {"DUMMY_ENVIRONMENT": "kolla_useless_env"}, "group": "cron", "image": "10.102.196.118:4000/kolla/ubuntu-binary-cron:wallaby", "volumes": ["/etc/kolla/cron/:/var/lib/kolla/config_files/:ro", "/etc/localtime:/etc/localtime:ro", "/etc/timezone:/etc/timezone:ro", “kolla_logs:/var/log/kolla/”]}}, “msg”:“'Traceback(最近一次调用最后一次):\n文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”,第 268 行,在 _raise_for_status\n response.raise_for_status()\n文件“/usr/lib/python3/dist-packages/requests/models.py”,第 940 行,在 raise_for_status\n 中引发 HTTPError(http_error_msg,response=self)\nrequests.exceptions.HTTPError:500 服务器错误:url 的内部服务器错误:http+docker://localhost/v1.41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-cron\n\n处理期间上述异常之外,还发生了另一个异常:\n\n回溯(最近一次调用最后一次):\n 文件“/tmp/ansible_kolla_docker_payload_de6juvjn/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”,第 1199 行,在 main\n 文件“/tmp/ansible_kolla_docker_payload_de6juvjn/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”,第 649 行,在 pull_image\n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/image.py”,第 430 行,在 pull\n self._raise_for_status(response)\n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”,第 270 行,在_raise_for_status\n 引发 create_api_error_from_http_exception(e)\n 文件“/usr/local/lib/python3.8/dist-packages/docker/errors.py”,第 31 行,位于 create_api_error_from_http_exception\n 中 raise cls(e, response=response, interpretation=explanation)\ndocker.errors.APIError: 500 服务器错误,适用于 http+docker://localhost/v1.41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-cron:内部服务器错误(“获取http://10.102.196.118:4000/v2/:拨号 tcp 10.102.196.118:4000:连接:连接被拒绝”)\n'“} 失败:[compute01](item = {'key':'cron','value':{'container_name':'cron','group':'cron','enabled':True,'image':'10.102.196.118:4000/kolla/ubuntu-binary-cron:wallaby','environment':{'DUMMY_ENVIRONMENT':'kolla_useless_env'},'volumes':['/ etc / kolla / cron /:/ var / lib / kolla / config_files /:ro','/ etc / localtime:/etc/localtime:ro','/ etc / timezone:/etc/timezone:ro', 'kolla_logs:/var/log/kolla/'], 'dimensions': {}}}) => {"ansible_loop_var": "item", "changed": true, "item": {"key": "cron", "value": {"container_name": "cron", "dimensions": {}, "enabled": true, "environment": {"DUMMY_ENVIRONMENT": "kolla_useless_env"}, "group": "cron", "image": "10.102.196.118:4000/kolla/ubuntu-binary-cron:wallaby", "volumes": ["/etc/kolla/cron/:/var/lib/kolla/config_files/:ro", "/etc/localtime:/etc/localtime:ro", "/etc/timezone:/etc/timezone:ro", “kolla_logs:/var/log/kolla/”]}}, “msg”:“'Traceback(最近一次调用最后一次):\n文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”,第 268 行,在 _raise_for_status\n response.raise_for_status()\n文件“/usr/lib/python3/dist-packages/requests/models.py”,第 940 行,在 raise_for_status\n 中引发 HTTPError(http_error_msg,response=self)\nrequests.exceptions.HTTPError:500 服务器错误:url 的内部服务器错误:http+docker://localhost/v1.41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-cron\n\n处理期间上述异常之外,还发生了另一个异常:\n\n回溯(最近一次调用最后一次):\n 文件“/tmp/ansible_kolla_docker_payload_szmrt81h/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”,第 1199 行,在 main\n 文件“/tmp/ansible_kolla_docker_payload_szmrt81h/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py”,第 649 行,在 pull_image\n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/image.py”,第 430 行,在 pull\n self._raise_for_status(响应)\n 文件“/usr/local/lib/python3.8/dist-packages/docker/api/client.py”,第 270 行,在_raise_for_status\n 引发 create_api_error_from_http_exception(e)\n 文件“/usr/local/lib/python3.8/dist-packages/docker/errors.py”,第 31 行,位于 create_api_error_from_http_exception\n 中 raise cls(e, response=response, interpretation=explanation)\ndocker.errors.APIError: 500 服务器错误,用于 http+docker://localhost/v1.41/images/create?tag=wallaby&fromImage=10.102.196.118%3A4000%2Fkolla%2Fubuntu-binary-cron: 内部服务器错误(“获取http://10.102.196.118:4000/v2/:拨号 tcp 10.102.196.118:4000:连接:连接被拒绝”)\n'”}

播放回顾 ************************************************************************************************************************************************************************************************************ compute01:ok=5 已更改=0 无法访问=0 失败=1 已跳过=0 已获救=0 已忽略=0
compute02:ok=5 已更改=0 无法访问=0 失败=1 已跳过=0 已获救=0 已忽略=0
controller:ok=5 已更改=0 无法访问=0 失败=1 已跳过=0 已获救=0 已忽略=0
localhost:ok=4 已更改=0 无法访问=0 失败=0 已跳过=0 已获救=0 已忽略=0

命令失败 ansible-playbook -i multinode -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla -e kolla_action=pull /usr/local/share/kolla-ansible/ansible/site.yml

更新

$ curl http://10.102.196.118:4000
curl: (7) Failed to connect to 10.102.196.118 port 4000: Connection refused
$ sudo ufw status verbose
Status: inactive
    $ ss
icmp6     UNCONN     0          0                                                                                                 *:ipv6-icmp                       *:*
icmp6     UNCONN     0          0                                                                                                 *:ipv6-icmp                       *:*
udp       ESTAB      0          0                                                                             10.102.196.118%ens160:bootpc               10.102.196.1:bootps
tcp       ESTAB      0          0                                                                                    10.102.196.118:ssh                 192.168.20.22:27125
tcp       ESTAB      0          64                                                                                   10.102.196.118:ssh                 192.168.20.22:62537
v_str     ESTAB      0          0                                                                                         962197598:1023                            0:976
~$ sudo netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      643/systemd-resolve
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      801/sshd: /usr/sbin
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      657/cupsd
tcp6       0      0 :::22                   :::*                    LISTEN      801/sshd: /usr/sbin
tcp6       0      0 ::1:631                 :::*                    LISTEN      657/cupsd
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           655/avahi-daemon: r
udp        0      0 127.0.0.53:53           0.0.0.0:*                           643/systemd-resolve
udp        0      0 192.168.1.10:123        0.0.0.0:*                           794/ntpd
udp        0      0 10.102.196.118:123      0.0.0.0:*                           794/ntpd
udp        0      0 127.0.0.1:123           0.0.0.0:*                           794/ntpd
udp        0      0 0.0.0.0:123             0.0.0.0:*                           794/ntpd
udp        0      0 0.0.0.0:631             0.0.0.0:*                           742/cups-browsed
udp        0      0 0.0.0.0:50187           0.0.0.0:*                           655/avahi-daemon: r
udp6       0      0 :::5353                 :::*                                655/avahi-daemon: r
udp6       0      0 fe80::a5a2:a239:40c:123 :::*                                794/ntpd
udp6       0      0 fe80::63cf:2585:82a:123 :::*                                794/ntpd
udp6       0      0 ::1:123                 :::*                                794/ntpd
udp6       0      0 :::123                  :::*                                794/ntpd
udp6       0      0 :::41366                :::*                                655/avahi-daemon: r

我真的不知道该如何解决这个问题。有人能帮我吗?

相关内容