Moving eventlet.hubs.use_hub call up

Under the design concept of eventlet, we need to call
eventlet.hubs.use_hub() before the application starts
doing any I/O. And it makes custom log handlers register
correct event listeners.

Closes-bug: 1247889
Change-Id: I3d43021c8cb6ed630123781f3686d62e5159edfc
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Fixes the failure of updating or deleting image empty property

When property protection feature enabled, end user couldn't uses
Glance v2 API to update or delete a property of an image successfully
which value is empty, client will receive a http 500 error and a
relevant error log could be found in glance-api service log.

Closes-bug: #1332103

Change-Id: I1f9f181cea714e6ba26388d125bb7023e7a14305
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Use `_LW` where appropriate in db/sqla/api

Moved some of the sqlalchemy driver code to use the `i18n._*`
translation functions.

Change-Id: Ib78dbf435982289eae45014876c4da6258631c05
Merge "Use `_LW` where appropriate in db/sqla/api"
Merge "Moving eventlet.hubs.use_hub call up"
Do not log password in swift URLs in g-registry

There was a debug level log with the locations added to it.
This change fixes the log to not contain that sensitive info.

Fixes bug 1348838

Change-Id: I3c5b29616c8d76bed17dbd31a8f4fc7ccd2dd945
Trivial fix typo: Unavilable to Unavailable

This patch fixes a typo in an exception message.

Change-Id: I204b0bff94970d8743872cd184b8431d30dd1341
Merge "Fixes the failure of updating or deleting image empty property"
Merge "Do not log password in swift URLs in g-registry"
Merge "Trivial fix typo: Unavilable to Unavailable"