Fix 031 migration failed on DB2

031 migration script failed on DB2, because DB2 doesn't support
GROUP BY with clob data type.
Add if condition to judge DB2 connection, if yes, make another sql query
supported by DB2.

Fixes bug #1256816

Change-Id: I7e3a8cd89edd91c167c619365ab863ec53787f8f
Provide explicit image create value in Registry v2 API test

Assign an explicit created_at datetime value to image db fixtures,
it be used to fixes race condition in Registry v2 API test cases.

Closes-Bug: #1279753
Change-Id: Ia1957e8c024f81eeaa3c0bc094dd62db1be52d07
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Sync log.py from oslo

Add use_syslog_rfc_format config option. Default value is False.
If enabled, will add APP-NAME before the MSG part of the syslog message.

Fixes bug: #904307

Change-Id: Idd664bc98532e3a557dde5cbee213ca597d4e2e5
Rename Openstack to OpenStack

Change-Id: I96b2283b0ae5bb632da357184dc4aea0ee7656ab
Add support for PartialTask list

- partial-task: Task that includes all the values except the 'Text'
columns(input, result & message).
- This patch is to have the database to return a partial-task list on users
invoking 'GET /v2/tasks'.
- Returning list of partial tasks will help in reducing the response time when the
user queries for the list of tasks.
- This patch also includes changes for making implementation and return values of
display task detail (GET /v2/tasks/{task_id}) and list tasks (GET /v2/tasks)
more explicit.

partially implements bp async-glance-workers

Change-Id: I4fbadc9a97e3147128c7c733384c7bb50918806f
Enable F841 check

Enable F841 check: local variable 'name' assigned but never used.

Make appropriate changes to files listed below.

Change-Id: I02837d4abf421dc9d85f3b01587120fd68acfa12
Fix parsing of AMQP configuration

The deprecated notifier_strategy option is always used even if it is set
to its default value and the new notification_driver option is
explicitly set.

This change makes the notification_driver option work.

Change-Id: Icc2a063a828472132d2e2eda7f12e265db990ea1
Closes-Bug: #1271724
Use six.moves.urllib.parse instead of urlparse

To keep Python 3.x compatibility, use six.moves.urllib.parse to
replace urlparse.

Partial-Bug: #1279611

Change-Id: Ibe5e028acd12e8d753d95cfd9c3f63072278b120
Use uuid instead of uuidutils

Glance no longer import uuidutils from Oslo.
This patch replaces uuidutils.generate_uuid() with
str(uuid.uuid4()).

Change-Id: I463324cefe488138d709ffe0cc4a587d6ecaa850
Related-Bug: #1253497
Merge "Use uuid instead of uuidutils"
Merge "Use six.moves.urllib.parse instead of urlparse"
Merge "Fix parsing of AMQP configuration"
Keep py3.X compatibility for urllib

Use six.moves.urllib.parse instead of urllib

Partial-Bug: #1280105

Change-Id: Id08fd5b4dad35c888f302a69be56252fe8276bcb
Merge "Enable F841 check"
Replacement mox by mock

Replace mox testing library by mock one in the file
glance/tests/unit/test_quota.py

Implements: blueprint replace-mox-with-mock

Change-Id: I4577c4debe92846ba3dd0ecf3c6bef96b4ca352c
Enable hacking H301 and disable H304, H302

Enable hacking H301: one import per line. H304 and H302 check enables too,
so we temporarily disable it since it does not pass.

Fix imports in files below.

Add # noqa to migration scripts.

Change-Id: I6a8d4dcd9c3195d2848f218aafe304b1240ab60c
Merge "Sync log.py from oslo"
Merge "Enable hacking H301 and disable H304, H302"
Modify assert statement when comparing with None

Replace assertEqual(None, *) with assertIsNone in glance's
tests to have more clear messages in case of failure.

Also, replace assertTrue(* is not None) with assertIsNotNone
for the same reason.

Change-Id: If41a71bd750057c7136b03bef94c04517092134c
Closes-Bug: #1280522
Delete image metadata after image is deleted

Delete image metadata after the image is deleted successfully from
the backend store.
Set image status to it's original status if the image deletion fails.

Change-Id: I5fee1bace58ff49a8952292250629c1628edbac8
Closes-Bug: #1276142