[Openstack] Unable Upload Image

Trinath Somanchi trinath.somanchi at nxp.com
Sun Jan 22 10:57:02 UTC 2017


Very Good.

Here is the culprit, ServiceCatalogException: Invalid service catalog service: image

Please debug it.

/ Trinath

From: Bjorn Mork [mailto:bjron.mork at gmail.com]
Sent: Sunday, January 22, 2017 4:24 PM
To: Trinath Somanchi <trinath.somanchi at nxp.com>
Cc: openstack at lists.openstack.org
Subject: Re: [Openstack] Unable Upload Image

Thanks for sharing link. Logs given below;

Error_log

[Sun Jan 22 10:44:40.804142 2017] [:error] [pid 4817] DEBUG:keystoneauth.session:REQ: curl -g -i -X GET http://controller:5000/v3/users/bac999c177474e08976c54a362ba6a70/projects -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}cbccf767336b5e5e11dfd1eb113243f01893cc16"
[Sun Jan 22 10:44:40.882088 2017] [:error] [pid 4817] DEBUG:keystoneauth.session:RESP: [200] Date: Sun, 22 Jan 2017 10:44:40 GMT Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 Vary: X-Auth-Token x-openstack-request-id: req-4cb2d8ce-8894-40b2-afcf-1ae68bfec228 Content-Length: 460 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json
[Sun Jan 22 10:44:40.882121 2017] [:error] [pid 4817] RESP BODY: {"links": {"self": "http://controller:5000/v3/users/bac999c177474e08976c54a362ba6a70/projects", "previous": null, "next": null}, "projects": [{"is_domain": false, "description": "Admin Project", "links": {"self": "http://controller:5000/v3/projects/1c53d92609ca40a290a8a552b466b30a"}, "enabled": true, "id": "1c53d92609ca40a290a8a552b466b30a", "parent_id": "183a01ba69194a9fac15d02b4c9aa118", "domain_id": "183a01ba69194a9fac15d02b4c9aa118", "name": "admin"}]}
[Sun Jan 22 10:44:40.882141 2017] [:error] [pid 4817]
[Sun Jan 22 10:44:42.707364 2017] [:error] [pid 4817] HTTP exception with no status/code
[Sun Jan 22 10:44:42.707418 2017] [:error] [pid 4817] Traceback (most recent call last):
[Sun Jan 22 10:44:42.707426 2017] [:error] [pid 4817]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/rest/utils.py", line 126, in _wrapped
[Sun Jan 22 10:44:42.707431 2017] [:error] [pid 4817]     data = function(self, request, *args, **kw)
[Sun Jan 22 10:44:42.707435 2017] [:error] [pid 4817]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/rest/glance.py", line 163, in get
[Sun Jan 22 10:44:42.707440 2017] [:error] [pid 4817]     request, filters=filters, **kwargs)
[Sun Jan 22 10:44:42.707444 2017] [:error] [pid 4817]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/glance.py", line 293, in image_list_detailed
[Sun Jan 22 10:44:42.707448 2017] [:error] [pid 4817]     images_iter = glanceclient(request).images.list(page_size=request_size,
[Sun Jan 22 10:44:42.707452 2017] [:error] [pid 4817]   File "/usr/lib/python2.7/site-packages/horizon/utils/memoized.py", line 90, in wrapped
[Sun Jan 22 10:44:42.707511 2017] [:error] [pid 4817]     value = cache[key] = func(*args, **kwargs)
[Sun Jan 22 10:44:42.707519 2017] [:error] [pid 4817]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/glance.py", line 136, in glanceclient
[Sun Jan 22 10:44:42.707537 2017] [:error] [pid 4817]     url = base.url_for(request, 'image')
[Sun Jan 22 10:44:42.707578 2017] [:error] [pid 4817]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/base.py", line 321, in url_for
[Sun Jan 22 10:44:42.707746 2017] [:error] [pid 4817]     raise exceptions.ServiceCatalogException(service_type)
[Sun Jan 22 10:44:42.707753 2017] [:error] [pid 4817] ServiceCatalogException: Invalid service catalog service: image

Access_LOG

192.168.0.196 - - [22/Jan/2017:14:46:19 +0400] "GET /dashboard/project/images/ HTTP/1.1" 200 22767 "http://192.168.0.172/dashboard/project/images" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.0.196 - - [22/Jan/2017:14:46:20 +0400] "GET /dashboard/i18n/js/horizon+openstack_dashboard/ HTTP/1.1" 200 2372 "http://192.168.0.172/dashboard/project/images/" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.0.196 - - [22/Jan/2017:14:46:21 +0400] "POST /dashboard/api/policy/ HTTP/1.1" 200 17 "http://192.168.0.172/dashboard/project/images" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.0.196 - - [22/Jan/2017:14:46:21 +0400] "GET /dashboard/api/keystone/user-session/ HTTP/1.1" 200 626 "http://192.168.0.172/dashboard/project/images" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.0.196 - - [22/Jan/2017:14:46:21 +0400] "POST /dashboard/api/policy/ HTTP/1.1" 200 17 "http://192.168.0.172/dashboard/project/images" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.0.196 - - [22/Jan/2017:14:46:21 +0400] "POST /dashboard/api/policy/ HTTP/1.1" 200 17 "http://192.168.0.172/dashboard/project/images" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.0.196 - - [22/Jan/2017:14:46:21 +0400] "POST /dashboard/api/policy/ HTTP/1.1" 200 17 "http://192.168.0.172/dashboard/project/images" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.0.196 - - [22/Jan/2017:14:46:21 +0400] "POST /dashboard/api/policy/ HTTP/1.1" 200 17 "http://192.168.0.172/dashboard/project/images" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.0.196 - - [22/Jan/2017:14:46:21 +0400] "GET /dashboard/api/keystone/svc-catalog/ HTTP/1.1" 200 4190 "http://192.168.0.172/dashboard/project/images" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.0.196 - - [22/Jan/2017:14:46:21 +0400] "GET /dashboard/api/glance/images/ HTTP/1.1" 500 40 "http://192.168.0.172/dashboard/project/images" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"

[root at Controller glance]# openstack endpoint list
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils
+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------------------+
| ID                               | Region    | Service Name | Service Type | Enabled | Interface | URL                                       |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------------------+
| 09ebca8f446944c1a4cfc162fe4d41bc | RegionOne | neutron      | network      | True    | public    | http://controller:9696                    |
| 21b8179f4eb74d97af4e836a9a17d4bf | RegionOne | neutron      | network      | True    | internal  | http://controller:9696                    |
| 23fb8160cbff46dcb68aeb689104db93 | RegionOne | keystone     | identity     | True    | admin     | http://controller:35357/v3                |
| 36c7f2b0fba541dc9e806eec6bd3a750 | RegionOne | nova         | compute      | True    | public    | http://controller:8774/v2.1/%(tenant_id)s<http://controller:8774/v2.1/%25(tenant_id)s> |
| 421950a2696f4483b73c4bfe8a395c1b | RegionOne | cinderv2     | volumev2     | True    | internal  | http://controller:8776/v2/%(tenant_id)s<http://controller:8776/v2/%25(tenant_id)s>   |
| 4758c6c6cebf4690a77c14b24ab08da4 | RegionOne | cinderv2     | volumev2     | True    | admin     | http://controller:8776/v2/%(tenant_id)s<http://controller:8776/v2/%25(tenant_id)s>   |
| 4b5b7217ff054dcd8af3a6b1b2a24129 | RegionOne | keystone     | identity     | True    | internal  | http://controller:5000/v3                 |
| 4b715873910c4693a8bc80507ff5826d | RegionOne | glance       | image        | True    | internal  | http://controller:9292                    |
| 4eaf3cff4e7f40c78b0c8e926911dca3 | RegionOne | glance       | image        | True    | admin     | http://controller:9292                    |
| 518f1b2db4a144348f55cf8f518ec523 | RegionOne | nova         | compute      | True    | internal  | http://controller:8774/v2.1/%(tenant_id)s<http://controller:8774/v2.1/%25(tenant_id)s> |
| 6b3f9790c2f441b09703986333742839 | RegionOne | neutron      | network      | True    | admin     | http://controller:9696                    |
| 8c83c9cfe3504149bee09dfefc35dbf4 | RegionOne | keystone     | identity     | True    | public    | http://controller:5000/v3                 |
| 95f2aca04a44444ca01d13c5818e8723 | RegionOne | cinder       | volume       | True    | internal  | http://controller:8776/v1/%(tenant_id)s<http://controller:8776/v1/%25(tenant_id)s>   |
| a1ab648a7d7a47dc927aacd6ba9a9040 | RegionOne | cinder       | volume       | True    | admin     | http://controller:8776/v1/%(tenant_id)s<http://controller:8776/v1/%25(tenant_id)s>   |
| be44bd8df6bb41cd90c79b27c3af455f | RegionOne | cinder       | volume       | True    | public    | http://controller:8776/v1/%(tenant_id)s<http://controller:8776/v1/%25(tenant_id)s>   |
| ca770afcf6984c36bfc5e3cc5927f179 | RegionOne | glance       | image        | True    | public    | http://controller:9292                    |
| f85980988b124491ae7df10b1339a303 | RegionOne | cinderv2     | volumev2     | True    | public    | http://controller:8776/v2/%(tenant_id)s<http://controller:8776/v2/%25(tenant_id)s>   |
| f8aa989809df404b883c742ceb84e04f | RegionOne | nova         | compute      | True    | admin     | http://controller:8774/v2.1/%(tenant_id)s<http://controller:8774/v2.1/%25(tenant_id)s> |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------------------+

Regards,
B~Mork

On Sun, Jan 22, 2017 at 1:56 PM, Trinath Somanchi <trinath.somanchi at nxp.com<mailto:trinath.somanchi at nxp.com>> wrote:
Please look into logs,

http://docs.openstack.org/mitaka/config-reference/dashboard/logs.html



/ Trinath

From: Bjorn Mork [mailto:bjron.mork at gmail.com<mailto:bjron.mork at gmail.com>]
Sent: Sunday, January 22, 2017 3:25 PM

To: Trinath Somanchi <trinath.somanchi at nxp.com<mailto:trinath.somanchi at nxp.com>>
Cc: openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Subject: Re: [Openstack] Unable Upload Image

Hi,

Which log file you need (i will share), full list is shown in below;


[root at controller log]# cd /var/logs
-bash: cd: /var/logs: No such file or directory


[root at controller log]# pwd
/var/log


[root at controller log]# ll
total 1000
drwxr-xr-x. 2 root     root        176 Jan 21 10:30 anaconda
drwx------. 2 root     root         23 Jan 21 10:33 audit
-rw-r--r--. 1 root     root       8831 Jan 21 11:39 boot.log
-rw-------. 1 root     utmp        768 Jan 21 11:23 btmp
drwxr-xr-x. 2 chrony   chrony        6 Dec  6 17:42 chrony
-rw-------. 1 root     root       3973 Jan 21 19:01 cron
-rw-r--r--. 1 root     root     129218 Jan 21 11:39 dmesg
-rw-r--r--. 1 root     root     129219 Jan 21 11:20 dmesg.old
-rw-r--r--. 1 root     root        113 Jan 21 11:24 firewalld
-rw-------. 1 root     root       1280 Jan 21 11:12 grubby
-rw-r--r--. 1 root     root     291708 Jan 21 15:15 lastlog
-rw-------. 1 root     root        600 Jan 21 11:39 maillog
drwxr-x---. 2 mysql    mysql        25 Jan 21 15:08 mariadb
-rw-------. 1 root     root     607826 Jan 21 19:18 messages
drwx------. 2 root     root          6 Jun 10  2014 ppp
drwxr-x---. 2 rabbitmq rabbitmq     69 Jan 21 15:13 rabbitmq
drwxr-xr-x. 2 root     root          6 Jan 21 10:30 rhsm
-rw-------. 1 root     root      12605 Jan 21 15:16 secure
-rw-------. 1 root     root          0 Jan 21 10:22 spooler
-rw-------. 1 root     root          0 Jan 21 10:19 tallylog
drwxr-xr-x. 2 root     root         23 Dec  6 17:26 tuned
-rw-rw-r--. 1 root     utmp      10368 Jan 21 14:40 wtmp
-rw-------. 1 root     root      12295 Jan 21 15:15 yum.log

Regards,
B~Mork

On Sun, Jan 22, 2017 at 1:41 PM, Trinath Somanchi <trinath.somanchi at nxp.com<mailto:trinath.somanchi at nxp.com>> wrote:
Can you also check the horizon logs at /var/logs ?

Please post that error here.

/ Trinath

From: Bjorn Mork [mailto:bjron.mork at gmail.com<mailto:bjron.mork at gmail.com>]
Sent: Sunday, January 22, 2017 3:10 PM
To: Trinath Somanchi <trinath.somanchi at nxp.com<mailto:trinath.somanchi at nxp.com>>
Cc: openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Subject: Re: [Openstack] Unable Upload Image

Hi,
I checked keystone & glance files; password is same. I can login to DB using my password on command line.
1. It does not fetch images-list using GUI & shows error  Error: Unable to retrieve the images.

2. Unable upload Image if I select file based Image selection via create Image, also does not upload image and show  TypeError: response is undefined & Error: Unable to create the image.

Glance-api.conf configuration is given below;

[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = glance
password = openstack

[database]
connection = mysql+pymysql://glance:openstack@controller/glance

============================

[root at Controller ~]# mysql -uglance -popenstack -d glance
mysql: unknown option '-d'
[root at Controller ~]# mysql -uglance -popenstack glance
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 3195
Server version: 10.1.18-MariaDB MariaDB Server

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [glance]>


==================================================
MariaDB [keystone]> select * from endpoint where service_id='ec45b879f9e0449bb72ad8dcd42e075c';
+----------------------------------+--------------------+-----------+----------------------------------+------------------------+-------+---------+-----------+
| id                               | legacy_endpoint_id | interface | service_id                       | url                    | extra | enabled | region_id |
+----------------------------------+--------------------+-----------+----------------------------------+------------------------+-------+---------+-----------+
| 4b715873910c4693a8bc80507ff5826d | NULL               | internal  | ec45b879f9e0449bb72ad8dcd42e075c | http://controller:9292 | {}    |       1 | RegionOne |
| 4eaf3cff4e7f40c78b0c8e926911dca3 | NULL               | admin     | ec45b879f9e0449bb72ad8dcd42e075c | http://controller:9292 | {}    |       1 | RegionOne |
| ca770afcf6984c36bfc5e3cc5927f179 | NULL               | public    | ec45b879f9e0449bb72ad8dcd42e075c | http://controller:9292 | {}    |       1 | RegionOne |
+----------------------------------+--------------------+-----------+----------------------------------+------------------------+-------+---------+-----------+
3 rows in set (0.00 sec)

===============================

[root at Controller ~]# openstack endpoint list | grep glance
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils
| 4b715873910c4693a8bc80507ff5826d | RegionOne | glance       | image        | True    | internal  | http://controller:9292                    |
| 4eaf3cff4e7f40c78b0c8e926911dca3 | RegionOne | glance       | image        | True    | admin     | http://controller:9292                    |
| ca770afcf6984c36bfc5e3cc5927f179 | RegionOne | glance       | image        | True    | public    | http://controller:9292                    |
==================================
Please help further. How can I enable debugging logs to identify actual issue. please help.

Regards,
B~Mork


On Sun, Jan 22, 2017 at 12:11 PM, Trinath Somanchi <trinath.somanchi at nxp.com<mailto:trinath.somanchi at nxp.com>> wrote:
Hi-

There might be session issues from GUI. Please logout and login again.

If the error still persists, please refresh the cookies. Also check your keystone configuration and auth credentials with glance and keystone.

/ Trinath

From: Bjorn Mork [mailto:bjron.mork at gmail.com<mailto:bjron.mork at gmail.com>]
Sent: Sunday, January 22, 2017 11:49 AM
To: openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Subject: [Openstack] Unable Upload Image

Hi Team,

I need support on my installation, unable to upload images in my setup, It is showing error "Error: Unable to retrieve the images." via GUI, although on cli , if use the command like shown below it works fine and shows there is already one image. But unable to show via GUI...


[root at Controller ~]# source /etc/openstack-scripts/admin-openrc
[root at Controller ~]#
[root at Controller ~]# glance image-list
+--------------------------------------+--------+
| ID                                   | Name   |
+--------------------------------------+--------+
| ade9e725-21bc-4032-90f7-68d517f6106a | cirros |
+--------------------------------------+--------+
[root at Controller ~]#

You are requested to please help me. Thanks

Regards,
B~Mork



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20170122/d3539956/attachment.html>


More information about the Openstack mailing list