yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #00465
[Bug 1103073] Re: BadStoreConfiguration exception not displayed
** Changed in: glance
Status: Fix Committed => Fix Released
** Changed in: glance
Milestone: None => grizzly-3
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1103073
Title:
BadStoreConfiguration exception not displayed
Status in OpenStack Image Registry and Delivery Service (Glance):
Fix Released
Bug description:
If there is an error initializing the backing store (eg swift), the reason
isn't displayed:
class Store(object):
CHUNKSIZE = (16 * 1024 * 1024) # 16M
def __init__(self, context=None, location=None):
"""
Initialize the Store
"""
self.store_location_class = None
self.context = context
self.configure()
try:
self.configure_add()
except exception.BadStoreConfiguration:
msg = _("Failed to configure store correctly. "
"Disabling add method.")
LOG.info(msg)
It might be an idea to display it to help debug any issues, possibly at 'warn' level, eg
something like:
class Store(object):
CHUNKSIZE = (16 * 1024 * 1024) # 16M
def __init__(self, context=None, location=None):
"""
Initialize the Store
"""
self.store_location_class = None
self.context = context
self.configure()
try:
self.configure_add()
except exception.BadStoreConfiguration, e:
msg = _("Failed to configure store correctly (%s). "
"Disabling add method." % e)
LOG.warn(msg)
This gives output such as:
2013-01-22 17:10:14 WARN glance.store.base [270b86ab-5d9a-45fa-
aea1-46355e38fcd5 57436578450150 53648642643910] Failed to configure
store correctly (Store swift could not be configured correctly.
Reason: Multi-tenant Swift storage requires a service
catalog.).Disabling add method.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1103073/+subscriptions