← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1383722] [NEW] glance store initialization should be improved

 

Public bug reported:


Currently the glance store initialization is explicitly called in the
api start script:


 cat glance/cmd/api.py
 .
 .
 .

        glance_store.register_opts(config.CONF)
        glance_store.create_stores(config.CONF)
        glance_store.verify_default_store()


Other parameter's are picked up for free if we perform a configuration reload on sighup (eg sqlalchemy settings).
(An exception is logging where a log.setup() needs to be called).

It would be great, in order to fit cleanly with configuration reload, to
have the glance_store initialization be called automatically, triggered
by the eventlet.wsgi.server() call in glance.common.wsgi.

** Affects: glance
     Importance: Undecided
         Status: New

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

Title:
  glance store initialization should be improved

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

Bug description:

  Currently the glance store initialization is explicitly called in the
  api start script:

  
   cat glance/cmd/api.py
   .
   .
   .

          glance_store.register_opts(config.CONF)
          glance_store.create_stores(config.CONF)
          glance_store.verify_default_store()

  
  Other parameter's are picked up for free if we perform a configuration reload on sighup (eg sqlalchemy settings).
  (An exception is logging where a log.setup() needs to be called).

  It would be great, in order to fit cleanly with configuration reload,
  to have the glance_store initialization be called automatically,
  triggered by the eventlet.wsgi.server() call in glance.common.wsgi.

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


Follow ups

References