nova-api-os-compute fails with mysql command out of sync error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Expired
|
Medium
|
Unassigned |
Bug Description
I've been deploying the 16.04 charms to Mitaka on Trusty using the cloud archive, and have run into an odd issue. It appears that there is some problems with nova-api-
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
2016-08-09 06:44:48.357 63984 ERROR sqlalchemy.
After some searching around I found a reference in LP#1400492 about python-mysqldb 1.2.3 (which is provided by trusty) causing this issue. I grabbed a copy of the wily package (latest version I could easily find that would install without a problem), installed it and restarted the services, and the error disappeared. It appears that it still can reoccur, but its happening much less frequently.
$ dpkg-query -W nova-api-os-compute
nova-api-os-compute 2:13.0.
$ lsb_release -rd
Description: Ubuntu 14.04.5 LTS
Release: 14.04
# Version of python-mysqldb tested
$ dpkg-query -W python-mysqldb
python-mysqldb 1.3.4-2
Using the trusty-mitaka cloud archive.
nova will be using pymysql in Mitaka, which is at version 0.7.2-1~cloud0 in the UCA; so if we have a problem its most likely to be in this part of the dependency chain rather than mysqldb.