Fix for CES-1273: In glance, sql_idle_timeout is configurable in BC GUI, but value is unused [1/1]

The glance add/edit form allows the user to set the value of sql_idle_timeout. This attribute is defaulted to 3600 (see default.rb), but is never used in the cookbook.

In both glance-api.conf.erb and glance-registry.conf.erb, sql_idle_timeout is hardcoded to 3600, when it apparently should be set to what was configured in the GUI (node[:glance][:sql_idle_timeout]).

To test:

Create a glance proposal setting SQL Idle Timeout to some non-default value (not 3600)
Apply the glance proposal and wait for it to deploy
Log in to the system that glance was installed on, and:
    sudo -i
    grep sql_idle_timeout /etc/glance/*
Verify that sql_idle_timeout is set to the value configured in the GUI in both glance-api.conf and glance-registry.conf


 chef/cookbooks/glance/attributes/default.rb        |    1 -
 .../glance/templates/default/glance-api.conf.erb   |    2 +-
 .../glance/templates/default/glance-cache.conf.erb |    2 +-
 .../templates/default/glance-registry.conf.erb     |    2 +-
 4 files changed, 3 insertions(+), 4 deletions(-)

Crowbar-Pull-ID: 45a4e447daec54f3fef22397178074a3fe860fa3

Crowbar-Release: hydrogen