Ask Your Question
0

help trouble shooting - cannot upload cirros image with glance in havana

asked 2014-09-17 13:38:38 -0500

RedCricket gravatar image

Hi,

I am stumped on how to trouble shoot this error I have:

[root@mystack-mgmt4 ~]# glance -d image-create --name=Cirros --disk-format=raw --container-format=bare < cirros-0.3.2-x86_64-disk.raw
curl -i -X POST -H 'x-image-meta-container_format: bare' -H 'Transfer-Encoding: chunked' -H 'User-Agent: python-glanceclient' -H 'x-image-meta-size: 41126400' -H 'x-image-meta-is_public: False' -H 'X-Auth-Token: 3a7e7d353453453d8837d6617645927c' -H 'Content-Type: application/octet-stream' -H 'x-image-meta-disk_format: raw' -H 'x-image-meta-name: Cirros' -d '<open file '<stdin>', mode 'r' at 0x7f8afb6aa0c0>' https://mystack-cloud.example.com:9292/v1/images

HTTP/1.1 500 Internal Server Error
date: Wed, 17 Sep 2014 18:25:40 GMT
content-length: 91
content-type: text/plain; charset=UTF-8
x-openstack-request-id: req-1aafcf0e-36fd-47fc-91d2-3bebf29628ad

500 Internal Server Error

Failed to upload image 71a628df-c4a6-4838-8755-30fcaf56c54b



Request returned failure status.
500 Internal Server Error
Failed to upload image 71a628df-c4a6-4838-8755-30fcaf56c54b
    (HTTP 500)

Here is what I am seeing in my log file ...

[root@mystack-mgmt4 ~]# tail -f /var/log/glance/registry.log
...
2014-09-17 11:25:40.227 8283 INFO urllib3.connectionpool [-] Starting new HTTPS connection (1): mystack-cloud.example.com
2014-09-17 11:25:40.322 8283 WARNING glance.db.sqlalchemy.api [2706bfea-9684-49de-b605-dcd8174d4a26 a75e9cdc94bf4c60a2df34d6893cbb55 6ee4443740374e119f035e2cc4229ddc] Got mysql server has gone away: (2006, 'MySQL server has gone away')
2014-09-17 11:25:40.350 8283 INFO glance.registry.api.v1.images [2706bfea-9684-49de-b605-dcd8174d4a26 a75e9cdc94bf4c60a2df34d6893cbb55 6ee4443740374e119f035e2cc4229ddc] Successfully created image None
2014-09-17 11:25:40.379 8283 INFO glance.registry.api.v1.images [5f0bbb7f-81c7-4456-ae92-071f147a934e a75e9cdc94bf4c60a2df34d6893cbb55 6ee4443740374e119f035e2cc4229ddc] Successfully retrieved image 71a628df-c4a6-4838-8755-30fcaf56c54b
2014-09-17 11:25:40.432 8283 INFO glance.registry.api.v1.images [33dc5bf7-dac6-4eb5-82fe-a3b388d29998 a75e9cdc94bf4c60a2df34d6893cbb55 6ee4443740374e119f035e2cc4229ddc] Updating metadata for image 71a628df-c4a6-4838-8755-30fcaf56c54b
2014-09-17 11:25:40.508 8283 INFO glance.registry.api.v1.images [f87837dd-dbb4-4751-8097-fe427ca716e4 a75e9cdc94bf4c60a2df34d6893cbb55 6ee4443740374e119f035e2cc4229ddc] Updating metadata for image 71a628df-c4a6-4838-8755-30fcaf56c54b

... I do not think the Got mysql server has gone away: (2006, 'MySQL server has gone away') points to the root cause, because why would that cause the an (HTTP 500) error. I am using MariaDB btw. Also I cannot see a 500 error in any of my apache log files.

Can someone please help me out :)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-09-17 23:14:01 -0500

SGPJ gravatar image

Can you refer to similar post: https://ask.openstack.org/en/question...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-09-17 13:38:38 -0500

Seen: 945 times

Last updated: Sep 17 '14