glance-api resource not found

asked 2019-01-18 12:18:06 -0600

mheniMerzouki gravatar image

Hi,

I'm having trouble with the glance service, after following the Docs to install glance. https://docs.openstack.org/glance/que... I'm getting the following error when trying to create or list images.

root@controller02:~/# openstack image list
(http://controller02:35357/v3/v2/images): The resource could not be found. (HTTP 404) (Request-ID: req-d4876a12-c82e-40e0-b1af-cdd5df0113f0)

even though glance-api is running and listening on the 9292 port, and keystone on 5000 and 35357

root@controller02:~/# netstat -tnlp
...
tcp        0      0 0.0.0.0:9292            0.0.0.0:*               LISTEN      21727/python2
tcp6       0      0 :::35357                :::*                    LISTEN      11850/apache2
tcp6       0      0 :::5000                 :::*                    LISTEN      11850/apache2
tcp6       0      0 :::5000                 :::*                    LISTEN      11850/apache2
tcp6       0      0 :::5000                 :::*                    LISTEN      11850/apache2
tcp6       0      0 :::5000                 :::*                    LISTEN      11850/apache2

i created the service and the endpoints

root@controller02:~/# openstack service show glance
+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description | OpenStack Image                  |
| enabled     | True                             |
| id          | dd420cc446bd4cd891baf5732460811a |
| name        | glance                           |
| type        | image                            |
+-------------+----------------------------------+

root@controller02:~/# openstack endpoint list
+----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------+
| ID                               | Region    | Service Name | Service Type | Enabled | Interface | URL                      |
+----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------+
| 13595f0f483c428eaf4432afbfae9760 | RegionOne | glance       | image        | True    | public    | http://controller02:9292 |
| 2a790d5c7f3b43ff8d0ea3d62a28eced | RegionOne | glance       | image        | True    | internal  | http://controller02:9292 |
| 4e79eaccc12f4855b1b66c7c43d802e9 | RegionOne | glance       | image        | True    | admin     | http://controller02:9292 |
+----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------+

I'm not sure what's the problem, is it authentication? any help is appreciated. Thanks.

edit retag flag offensive close merge delete

Comments

http://controller02:35357/v3/v2/images looks like the glance API v2/images is added to the Keystone endpoint. Does openstack --debug image list provide clues?

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-18 17:51:48 -0600 )edit

Also, is it only the openstack client or does the glance client behave in the same way?

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-18 18:17:15 -0600 )edit

thanks for you comment. other openstack clients work fine (as of now i only have keystone and glance installed i can list and create users and projects and roles with no problems).

mheniMerzouki gravatar imagemheniMerzouki ( 2019-01-19 11:43:10 -0600 )edit

here is a link to the output of the debug command https://gist.github.com/MheniMerz/f7c...

mheniMerzouki gravatar imagemheniMerzouki ( 2019-01-19 11:43:36 -0600 )edit

Is that the entire debug output? The image URL should come from the service catalog, which the client gets from Keystone, but the authentication step is missing in the output.

I suspect that your openstack client is not the right version or otherwise not correctly installed.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-19 16:55:30 -0600 )edit