sqlalchemy failures when using multi-backend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned |
Bug Description
I'm encountering failures on master when configuring multi-backend. I hit this repeatedly at c-vol startup when configuring 4 rbd backends on Fedora 20.
Errors indicate various failures in sqlalchemy communicating with the SQL server. These are two common examples:
2015-03-11 11:25:05.361 TRACE cinder.
2015-03-11 11:30:52.038 TRACE cinder DBConnectionError: (OperationalError) (2013, 'Lost connection to MySQL server during query')
From what I can tell, this was introduced by:
6879bd0 NFS Security Enhancements: allows secure NFS environment setup
The reason it breaks things is that before, we didn't use the database before passing self.db to import_
We need to ensure each backend gets a clean object/connection to work with.
To verify that the noted change causes this, just set "vol_db_empty = False" in VolumeManager's __init__ and see that the failure doesn't occur.