Bump stable/grizzly next version to 2013.1.4

Change-Id: I817767bcb618edf94363aa34dd0eb6ce897ce141
Fixes Opt types in glance/notifier/notify_kombu.py

Changed rabbit_retry_backoff and rabbit_retry_max_backoff to IntOpt.

Fixes bug #1201697

Change-Id: Ia1a74b6bb2873e59677a7fea6652a6c006f38175
(cherry picked from commit c1d7b5929db0e66539e4ba3cdf91a41547fd7f49)
RBD store uses common utils for reading file chunks

Prevents cases where the image_size passed to the RBD store is larger
than the actual image_file which attempts to write 0 bytes of data
causing image.write to hang indefinitely.

Fixes LP Bug #1146830

Cherry-picked from havana (101f000d3ca25761d75f626fe4379143ef5a6a70)

Change-Id: I56216437a212c0c802d2ed349d88b3bd0d3bb4d7
Enforce 'download_image' policy in cache

Ensure that cached images do not bypass the
'download_image' policy.

Backport of https://review.openstack.org/#/c/50016.

Fixes bug 1235378.

Change-Id: I2082445ecb4703e642e9ff518b275846e7a8d573
Gracefully handle qpid errors

If a qpid error occurs when Glance is sending notifications, the
qpid connection may not be cleaned up properly.  This change catches
qpid exceptions to allow proper error handling.

Fixes bug 1164681

Conflicts:
	glance/tests/unit/test_notifier.py

(cherry picked from commit 1e98e108c057914a1e8b2ee2295c80db410b5ffa)
Change-Id: Ica3ef54b958e4efe3932b90d721324e7860b1ea4
Fixing glance-api hangs in the qpid notifier

Glance-api was able to hang in qpid notifier under heavy image creation load.

The ``thread`` and ``select`` modules used by the python-qpid for managing
the AMQP connection. When the eventlet was not able to switch between threads
because leaded to hang and/or pipe(2) leaking issues.

* Monkey patching the ``select`` and ``thread`` modules to be  eventlet friendly
  in order to avoid hanging issues.

* The reference to the connection object in the QpidStrategy
  was replaceable by a concurrent thread, which could cause various issues.
  Using just local variables for storing connection object in order to avoid
  concurrent unsafe manipulation.

Fixing bug 1229042

Change-Id: I8fa8c4f36892b96d406216cb3c64854a94ca9df7
(cherry picked from commit 2e7aa761b6c2b31f4cbd9703ee19090b6757508a)
Merge "Enforce 'download_image' policy in cache" into stable/grizzly
Merge "RBD store uses common utils for reading file chunks" into stable/grizzly
Don't access the net while building docs

(Note this hasn't been submitted upstream)

Change-Id: I42c6e3a5062db209a0abe00cebc04d383c79cbcb
(cherry picked from commit f2b4bb4e45afcc178200966193a7b87401c534d7)
remove deprecated assert_unicode sqlalchemy attribute

Removing this enables use with sqlalchemy 0.8.0
The deprecation is described upstream at:
http://docs.sqlalchemy.org/en/latest/changelog/changelog_08.html#change-ad44af79c886d1bb283042deb64f9cbe

Change-Id: Ia34b38245c6abe1ddb4162eee89459a7130deacb