Ask Your Question
0

Getting an error on Glance Image List

asked 2017-09-05 08:36:09 -0500

sebastien gravatar image

Greetings,

I am getting an error on page https://docs.openstack.org/ocata/fr/install-guide-rdo/glance-verify.html (https://docs.openstack.org/ocata/fr/i...) of the Openstack installation manual and can't really figure out why ; I didn't get any error on glance deployment.

[root@srv-virt-stack1 ~]# curl -vv http://srv-virt-stack1:9292/v2/images
* About to connect() to srv-virt-stack1 port 9292 (#0)
*   Trying 192.168.122.119...
* Connection refused
* Failed connect to srv-virt-stack1:9292; Connection refused
* Closing connection 0
curl: (7) Failed connect to srv-virt-stack1:9292; Connection refused


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


 [root@srv-virt-stack1 ~]#  openstack endpoint list
+----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------------+
| ID                               | Region    | Service Name | Service Type | Enabled | Interface | URL                              |
+----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------------+
| 14f980dbcc4c4b61808dee9b8a085341 | RegionOne | keystone     | identity     | True    | admin     | http://srv-virt-stack1:35357/v3/ |
| 41b0179bc32247c7aba4e34f9dbb9581 | RegionOne | keystone     | identity     | True    | public    | http://srv-virt-stack1:5000/v3/  |
| 6ae61f4e2a474a18928da8d0ff0ff60c | RegionOne | keystone     | identity     | True    | internal  | http://srv-virt-stack1:5000/v3/  |
| 723e15e86c974b149d6f8aa613a8615f | RegionOne | glance       | image        | True    | public    | http://srv-virt-stack1:9292      |
| bb2ce835d9cc4ecfbb68d804211bcc86 | RegionOne | glance       | image        | True    | internal  | http://srv-virt-stack1:9292      |
| e68310fda79c4240bdfaf3b83d64b912 | RegionOne | glance       | image        | True    | admin     | http://srv-virt-stack1:9292      |
+----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------------+

[root@srv-virt-stack1 ~]# systemctl restart openstack-glance-api.service openstack-glance-registry.service

[root@srv-virt-stack1 ~]# systemctl status openstack-glance-api.service openstack-glance-registry.service
● openstack-glance-api.service - OpenStack Image Service (code-named Glance) API server
   Loaded: loaded (/usr/lib/systemd/system/openstack-glance-api.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2017-09-05 15:29:53 CEST; 234ms ago
 Main PID: 21348 (glance-api)
   CGroup: /system.slice/openstack-glance-api.service
           └─21348 /usr/bin/python2 /usr/bin/glance-api

Sep 05 15:29:53 srv-virt-stack1 systemd[1]: openstack-glance-api.service holdoff time over, scheduling restart.
Sep 05 15:29:53 srv-virt-stack1 systemd[1]: Started OpenStack Image Service (code-named Glance) API server.
Sep 05 15:29:53 srv-virt-stack1 systemd[1]: Starting OpenStack Image Service (code-named Glance) API server...

● openstack-glance-registry.service - OpenStack Image Service (code-named Glance) Registry server
   Loaded: loaded (/usr/lib/systemd/system/openstack-glance-registry.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2017-09-05 15:29:45 CEST; 8s ago
 Main PID: 21288 (glance-registry)
   CGroup: /system.slice/openstack-glance-registry.service
           ├─21288 /usr/bin/python2 /usr/bin/glance-registry
           └─21308 /usr/bin/python2 /usr/bin/glance-registry

Sep 05 15:29:47 srv-virt-stack1 glance-registry[21288]: /usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py:22: DeprecationWarning: Parameters to load are deprecated.  Call .resolve and .require separately.
Sep 05 15:29:47 srv-virt-stack1 glance-registry[21288]: return pkg_resources.EntryPoint.parse("x=" + s).load(False)
Sep 05 15:29:47 srv-virt-stack1 glance-registry[21288]: /usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py:22: DeprecationWarning: Parameters to load are deprecated.  Call .resolve and .require separately.
Sep 05 15:29:47 srv-virt-stack1 glance-registry[21288]: return pkg_resources.EntryPoint.parse("x=" + s).load(False)
Sep 05 15:29:47 srv-virt-stack1 glance-registry[21288]: /usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py:22: DeprecationWarning: Parameters to load are ...
(more)
edit retag flag offensive close merge delete

Comments

This looks like a DNS issue to me. Make sure your control node is reachable via srv-virt-stack1.

eblock gravatar imageeblock ( 2017-09-05 11:14:04 -0500 )edit

it's not a DNS issue since other URLs are working fine:

# curl -vv http://srv-virt-stack1:5000/v3/ * Connection #0 to host srv-virt-stack1 left intact {"version": {"status": "stable", "updated": "2017-02-22T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstac

sebastien gravatar imagesebastien ( 2017-09-06 02:34:36 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2017-09-06 05:18:37 -0500

ppeereb1 gravatar image

So what is in the glance and http logs? Is glance listening on 9292: ss -plunt | grep 9292?

edit flag offensive delete link more

Comments

check is there any error in glance-api.log may be glance api cannot commpunicate with keystone this could be the error 500 error means glace -api have access issue with keystone

billy gravatar imagebilly ( 2017-09-06 15:36:27 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-09-05 08:36:09 -0500

Seen: 31 times

Last updated: Sep 06