← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1264647] Re: glance config options(sql_max_retries and sql_retry_interval) not work

 

See
https://github.com/openstack/glance/blob/master/glance/db/sqlalchemy/api.py#L240

** Changed in: glance
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1264647

Title:
  glance config options(sql_max_retries and sql_retry_interval) not work

Status in OpenStack Image Registry and Delivery Service (Glance):
  Invalid

Bug description:
  glance config options(sql_max_retries and sql_retry_interval) not work
  I set the value of two options as follow:

  # Database reconnection retry times - in event connectivity is lost
  # set to -1 implies an infinite retry count
  sql_max_retries = 10

  # Database reconnection interval in seconds - if the initial connection to the
  # database fails
  sql_retry_interval = 10

  but It doesn't make effect, I review the code  of method get_engine()
  in glance/db/sqlalchemy/api.py, because _MAX_RETRIES and
  _RETRY_INTERVAL(set value based on glance conf) not used.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1264647/+subscriptions


References