Cinder Volume and API fail to start if backend isn't set for [key_manager] in cinder.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
Kaitlin Farr |
Bug Description
There was some code that was in Cinder in Ocata that set a default API class for Castellan to use if it wasn't defined in cinder.conf. This code was removed with the assumption that it would always be set because devstack sets it. This, however, isn't guaranteed to be set in non-devstack installs. The code in Castellan expects that either the api_class or backend are sent into set_defaults. If this isn't the case then you see the following error:
Oct 19 18:42:35 jaysdevvm cinder-
Oct 19 18:42:35 jaysdevvm cinder-
Oct 19 18:42:35 jaysdevvm cinder-
Oct 19 18:42:35 jaysdevvm cinder-
Oct 19 18:42:35 jaysdevvm cinder-
Oct 19 18:42:35 jaysdevvm cinder-
Oct 19 18:42:35 jaysdevvm cinder-
Oct 19 18:42:35 jaysdevvm cinder-
Oct 19 18:42:35 jaysdevvm cinder-
Oct 19 18:42:35 jaysdevvm cinder-
Oct 19 18:42:35 jaysdevvm cinder-
Oct 19 18:42:35 jaysdevvm cinder-
Oct 19 18:42:35 jaysdevvm cinder-
Oct 19 18:42:35 jaysdevvm cinder-
Oct 19 18:42:35 jaysdevvm cinder-
Oct 19 18:42:35 jaysdevvm cinder-
So, this is kind of a bug in Castellan but it seems like it is a problem we can catch and correct in Cinder. I am going to propose a fix to Cinder and see what everyone thinks.
Changed in cinder: | |
importance: | Undecided → High |
milestone: | none → queens-2 |
assignee: | nobody → Jay Bryant (jsbryant) |
no longer affects: | cinder/pike |
My initial debug wasn't quite right. It appears that 'backend' is being set but it is set to 'barbican'. I am not totally sure where that is happening or why it is causing a failure. Going to add Kaitlin to see if she might be able to help me understand the problem here.