[Openstack] Unable Upload Image

Bjorn Mork bjron.mork at gmail.com
Sun Jan 22 09:54:37 UTC 2017


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>
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]
> *Sent:* Sunday, January 22, 2017 3:10 PM
> *To:* Trinath Somanchi <trinath.somanchi at nxp.com>
> *Cc:* 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> 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/4c73f05b/attachment.html>


More information about the Openstack mailing list