Make datasource creation failure a non-fatal error

Previously, if a datasource failed to startup, Congress would
fail to startup too.

This change allows Congress to startup, even if one or more of
the datasources does not.

Backport: no/low-risk change for important fix.

Closes-Bug: 1671344

Change-Id: I95aeb6a0c180ed177f59e129b4330748e459275e
This commit is contained in:
Tim Hinrichs 2017-04-07 18:27:18 -07:00 committed by Eric Kao
parent 81dd844107
commit 64bbc7380e
1 changed files with 2 additions and 3 deletions

View File

@ -178,9 +178,8 @@ def create_datasources(bus):
"clean up stale datasources in DB.")
sys.exit(1)
except Exception:
LOG.exception("datasource %s creation failed.", ds.name)
raise
LOG.exception("datasource %s creation failed. %s service may not "
"be running.", ds.name, ds.driver)
return services