Comment 2 for bug 1194064

Revision history for this message
Mark McLoughlin (markmc) wrote :

Ok, we've dug into this bug in some detail and the summary is that if you have a file with:

  [database]
  connection = sqlite:///...

  [database]
  sql_connection = mysql:///...

then the value returned by cfg will be the 'sqlite:///' value

This is arguably a bug in cfg and is seen in https://gist.github.com/markmc/5858373 ... basically the behaviour with t1.conf is not what you might expect. However, after some discussion we think is fairly reasonable behaviour and I'm going to mark it as WontFix in oslo.

Now, there is something we can do to help the situation in quantum - if we have the default values commented out everywhere, then even if the user supplies a value using the deprecated name it won't be overwritten by a default value using the new name

i.e. we would have:

  [database]
  #connection = sqlite:///...

  [database]
  sql_connection = mysql:///...

So, I'm opening a task against quantum to comment out default values