3. Can not upload image and get error "glance-httpinternalservererror (HTTP 500 )"

Source: Internet
Author: User

In glace-regiter.log

File "/usr/lib/python2.6/Site-packages/glance/openstack/common/DB/sqlalchemy/session. py", line 461, in _ wrap

Raise exception. dberror (E)

Dberror: (programmingerror) (1146, "Table 'glance. images 'doesn' t exist ") 'insert into images (created_at, updated_at, deleted_at, deleted, ID, name, disk_format, container_format, size, virtual_size, status, is_public, checksum, min_disk, min_ram, owner, protected) values (% s, % s, % s, % s) '(datetime. datetime (2014, 8, 10, 18, 20, 43, 882348), datetime. datetime (2014, 8, 10, 18, 20, 43,882 394), none, 0, '6f626917-8c5d-4cea-9f49-591a97571b4d ', 'cirros-0.3.2-x86_64', 'qcow2 ', 'bare', 13167616, none, 'queued', 1, none, 0, 0, 'cc7c2b5f178b4b9e94446a1862a477d9 ', 0)

02:20:43. 909 6607 info glance. wsgi. Server [zookeeper--] 127.0.0.1--[11/Aug/2014 02:20:43] "post/images HTTP/1.1" 500 139 0.931555

 

When u check dB glancethere is only one table there

[[Email protected] # mysql-u root-popsware glance-e "show tables"

+ ------------------ +

| Tables_in_glance |

+ ------------------ +

| Migrate_version |

+ ------------------ +

This is abug and the work around is

Https://bugzilla.redhat.com/show_bug.cgi? Id = 1090648


/etc/glance/glance-api.conf--change:
db_enforce_mysql_charset=False


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.