Enable gating on F811 (duplicate function definition)

Change-Id: Ifbf233ccbb7cc012d5dae50f9b303cfca592788d
Migrate json to glance.openstack.common.jsonutils

Every call to json.loads/json.dumps have been changed to
jsonutils.loads/jsonutils.dumps respectively. Import json has been removed
also replaced by import glance.openstack.common.jsonutils

654d80b416dc5f413cb791aa838ec8688bf7da44 Create openstack.common.jsonutils

Change-Id: I8ef580e5eb91526dfaef37050ce1f5c6d88d56b5
Closes-bug: #1257922
Merge "Enable gating on F811 (duplicate function definition)"
Remove return stmt of add,save and remove method

Remove the add and save method's return statement in the
ImageMemberRepo class, as the same as ImageRepo class.  Also
modify authorization.py and policy.py and the related unittest.

Closes-Bug: #1254210

Change-Id: I472cd15af8648beea10abc595e905618091f3dab
Remove unused imports in glance

There are some unused import in glance, such as 'import domain' in v2.image_data.py.

Change-Id: I9c3f06bfde4dbf130dd8525fc00b3f73c30ab4d7
Closes-Bug:#1264245
Merge "Remove return stmt of add,save and remove method"
Merge "Migrate json to glance.openstack.common.jsonutils"
Consider  @,! in properties protection rule as a configuration error

In roles based property protection, if '@' and '!' are in the same rule then the
glance api will not start considering this an Invalid Configuration.

DocImpact
Closes-bug: #1260333

Change-Id: I1d304f5c505ae9e2486ff653dda205fc2d851c2b
Merge "Consider  @,! in properties protection rule as a configuration error"