Comment 0 for bug 954971

Revision history for this message
Unmesh Gurjar (unmesh-gurjar) wrote :

Scenario: Configure Glance Registry to use MySQL for metadata storage. While Glance Registry is running, restart the MySQL service. Now execute the 'glance index' command to fetch image list from glance.

Actual Response: HTTP 500 Internal Server Error, with following error in the stack trace "OperationalError: (OperationalError) (2006, 'MySQL server has gone away')".

Expected Response: HTTP 200 (with list of registered images in response body).

This typically happens for the first connection (to database) after the database service restarts, the following requests work fine.
Once the database server comes up, Glance should re-establish the database connection and not return error.