Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Glance Image create : HTTPInternalServerError (HTTP 500)

I am trying to install Icehouse from : http://docs.openstack.org/icehouse/install-guide/install/apt/content/glance-verify.html.

I tried other posts in the forum for this problem but no luck:

System info:

root@hb067148:/tmp/images# uname -a
Linux hb067148 3.5.0-54-generic #81~precise1-Ubuntu SMP Tue Jul 15 04:02:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Issue:

root@hb067148:/tmp/images# glance image-create --name "cirros-0.3.2-x86_64" --disk-format qcow2   --container-format bare --is-public True --progress < cirros-0.3.2-x86_64-disk.img
[=============================>] 100%
HTTPInternalServerError (HTTP 500)

Logs and Conf:

glance-registry.conf

glance-api.conf

/var/log/glance/registry.log

/var/log/glance/api.log

Other info:

I also tried the following command from one of the forums question:

root@hb067148:/tmp/images# echo "INSERT INTO images (created_at, updated_at, deleted_at, deleted, id, name,   disk_format, container_format, size, status, is_public, checksum, min_disk, min_ram, owner, protected)         VALUES ('2013-01-18 17:00:00', '2013-01-18 17:00:00', NULL, 0, '53c06e6d-ced7-4ee0-9a92-acfc2d8219c7', 'tty-linux-kernel', 'aki', 'aki', 4404752, 'queued', 0, NULL, 0, 0, 'f9a70976a8064aceb3523191e03d8c1c', 0);"       | mysql -uglance -pfcplugin glance

root@hb067148:/tmp/images# mysql -uglance -pfcplugin 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 MySQL monitor.  Commands end with ; or \g.
!                                   !                                   !                                           
mysql> use glance;
Database changed

mysql> SHOW TABLES;
+------------------+
| Tables_in_glance |
+------------------+
| image_locations  |
| image_members    |
| image_properties |
| image_tags       |
| images           |
| migrate_version  |
| task_info        |
| tasks            |
+------------------+
8 rows in set (0.00 sec)


mysql> SELECT * FROM images
    -> ;
+--------------------------------------+------------------+---------+--------+-----------+---------------------+---------------------+------------+---------+-------------+------------------+----------+----------------------------------+----------+---------+-----------+--------------+
| id                                   | name             | size    | status | is_public | created_at          | updated_at          | deleted_at | deleted | disk_format | container_format | checksum | owner                            | min_disk | min_ram | protected | virtual_size |
+--------------------------------------+------------------+---------+--------+-----------+---------------------+---------------------+------------+---------+-------------+------------------+----------+----------------------------------+----------+---------+-----------+--------------+
| 53c06e6d-ced7-4ee0-9a92-acfc2d8219c7 | tty-linux-kernel | 4404752 | queued |         0 | 2013-01-18 17:00:00 | 2013-01-18 17:00:00 | NULL       |       0 | aki         | aki              | NULL     | f9a70976a8064aceb3523191e03d8c1c |        0 |       0 |         0 |         NULL |
+--------------------------------------+------------------+---------+--------+-----------+---------------------+---------------------+------------+---------+-------------+------------------+----------+----------------------------------+----------+---------+-----------+--------------+
1 row in set (0.00 sec)

mysql>

root@hb067148:/tmp/images# keystone user-list
+----------------------------------+--------+---------+---------------------+
|                id                |  name  | enabled |        email        |
+----------------------------------+--------+---------+---------------------+
| 79bad95c900b4096865d9375430c82b3 | admin  |   True  |  admin@example.com |
| 05b3462f2d4b4364b163c7bed83866d8 |  demo  |   True  | demo@example.com |
| d13adb9a26d04909b16a21b977defe2a | glance |   True  |  glance@example.com |
+----------------------------------+--------+---------+---------------------+

root@hb067148:/tmp/images# cat /root/admin-openrc.sh
export OS_USERNAME=admin
export OS_PASSWORD=fcplugin
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://controller.67.148:35357/v2.0
root@hb067148:/tmp/images#

Please let me know if you need more info.