[Openstack] Unable Upload Image

Bjorn Mork bjron.mork at gmail.com
Sun Jan 22 09:40:18 UTC 2017


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
> 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]
> *Sent:* Sunday, January 22, 2017 11:49 AM
> *To:* 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/8534e5d6/attachment.html>


More information about the Openstack mailing list