Documentation for using policies for protected properties

Add documentation for using policies to describe
property protections.

Related to bp api-v2-property-protection

Change-Id: Ic1fc4d3d69dee7ba65462a5bda6cdbe1a266077e
Add tests for glance/notifier/notify_kombu

Add tests for glance/notifier/notify_kombu in
RabbitStrategyTestCase class.
Tests for:
- _close()
- _connect()
- time.sleep() in reconnect()
- processing KombuMaxRetriesReached error in _notify()

Change-Id: I39805ce460ce2b71dcb05e63cb898c5569d726b0
Don't use deprecated module commands

The commands module was deprecated since version 2.6 and it has been
removed in Python 3. Use the subprocess module instead.
See http://docs.python.org/2/library/commands#module-commands

Closes-Bug: #1248216
Change-Id: I0a89dbba374a28b16a6e24f2a1b05ce06e044de4
Use common db model class from Oslo

Modified common model class - added common `models.ModelBase` and
`models.TimestampMixin` classes as base class instead of object.
Renamed base model class from `ModelBase` to `GlanceBase`.
Removed duplicated code.

blueprint db-use-oslo-common-code

Change-Id: I6038adcfcb6b985736ac8d9374ac0a2fe1cdcc96
Fixed quotes in _assert_tables() method

We suppose, that for some reason we need double-quotes around the
some table names (see change id Id93283905256247bdd2663b799d41a7925804542)
but there is also can be normal case, when we have table names without quotes

Related to blueprint db-use-oslo-common-code

Change-Id: I834cafc6796d517d731c3324fff5008c08b31f7a
Add eclipse project files to .gitignore

Like some of the other projects (nova, heat, oslo, cinder) git ignore
eclipse project files. This will remove manual steps for people
developing from eclipse.

Change-Id: Ib908c8d419072b440f5ec647bea8f13b97e48f7c
Merge "Documentation for using policies for protected properties"
Merge "Add tests for glance/notifier/notify_kombu"
Adds domain level support for tasks

Includes:-
  - Domain Task class
  - Domain TaskFactory class
  - DB TaskRepo class
  - Necessary proxy classes for all of the above
  - Tasks related exceptions
  - Unit tests as applicable

Partially implement blueprint async-glance-workers

Change-Id: I619224bcc55b62303f3539454649528f2edc6e9d
Merge "Use common db model class from Oslo"
Merge "Adds domain level support for tasks"
Merge "Fixed quotes in _assert_tables() method"
Merge "Add eclipse project files to .gitignore"
Verify for duplicate location+metadata instances

Glance allow users to have duplicated locations for the same image. This
could led to some confusion and bad UX. This patch introduces such check
in the insert method and makes both extend and append use it to add new
images.

The patch also adds a new exception - DuplicateLocation - and handles it
in the v2 of the API. When `DuplicateLocation` is raised, a BadRequest
will be returned back to the client.

A new test for this functionality was added as well.

Change-Id: I32400d467408e3d56bbbdbb3379357f2ee812e56
Closes-bug: 1251244
Merge "Verify for duplicate location+metadata instances"
Fix docstring on detail in glance/api/v1/images.py

"Returns detailed information for all public, available images" is
inappropriate on detail, because the private image can be returned also.

Change-Id: Ib173a6813cb70270866476368ffa1ccbb77047aa
Closes-Bug: #1256217
Clean up duplicate code in v2.image_data.py

glance/api/v2/image_data.py:ImageDataController.upload has two identical
"except exception.StorageFull as e" clauses. One should be removed.

Fixes bug #1256207

Change-Id: I42fc5126e493591045d09ffb9abbc4816e63ef60
Merge "Clean up duplicate code in v2.image_data.py"
Merge "Don't use deprecated module commands"