创建glance镜像报错Error finding address for http://controller:9292/v2/schemas/image: HTTPConnectionPool(ho

来源:互联网 发布:北京房价数据 编辑:程序博客网 时间:2024/06/08 00:12

Error finding address for http://controller:9292/v2/schemas/image: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/schemas/image (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x3551b50>: Failed to establish a new connection: [Errno 111] Connection refused',))

查找地址错误的HTTP:/ /控制器:9292 / V2 /模式/图片:httpconnectionpool(主持人= 'controller,端口为9292):马克斯重试次数超过网址:/ V2 /模式/图像(由NewConnectionError(“< requests.packages.urllib3.connection.httpconnection对象在0x3551b50 >:未能建立起一个新的连接:[我111】拒绝连接,))

[root@controller ~]# openstack image create "cirros" \>   --file cirros-0.3.4-x86_64-disk.img \>   --disk-format qcow2 --container-format bare \>   --publicError finding address for http://controller:9292/v2/schemas/image: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/schemas/image (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x3ae3b50>: Failed to establish a new connection: [Errno 111] Connection refused',))

查看9292端口发现并没有打开

[root@controller ~]# ss -ntl | grep 9292


检查glance-api文件中[glance_store]是否配置错误,如果出错将导致glance-api能成功启动并且日志无报错,但9292端口并没有打开

排除错误后重启服务发现9292端口出现

[root@controller ~]# ss -ntl | grep 9292LISTEN     0      128          *:9292                     *:*                  


创建镜像成功

[root@controller ~]# openstack image create "cirros" \>   --file cirros-0.3.4-x86_64-disk.img \>   --disk-format qcow2 --container-format bare \>   --public+------------------+------------------------------------------------------+| Field            | Value                                                |+------------------+------------------------------------------------------+| checksum         | ee1eca47dc88f4879d8a229cc70a07c6                     || container_format | bare                                                 || created_at       | 2017-11-16T14:23:36Z                                 || disk_format      | qcow2                                                || file             | /v2/images/700dc97b-aefe-41fe-9165-32ccdfe6afbd/file || id               | 700dc97b-aefe-41fe-9165-32ccdfe6afbd                 || min_disk         | 0                                                    || min_ram          | 0                                                    || name             | cirros                                               || owner            | af24a3c94886470183c864ef0f161b4c                     || protected        | False                                                || schema           | /v2/schemas/image                                    || size             | 13287936                                             || status           | active                                               || tags             |                                                      || updated_at       | 2017-11-16T14:23:37Z                                 || virtual_size     | None                                                 || visibility       | public                                               |+------------------+------------------------------------------------------+

阅读全文
0 0
原创粉丝点击