Set python hash seed to 0 in tox.ini

New tox (>=1.7.0) sets a random python hash seed by default. This is
generally good for testing because it will help keep projects working
regardless of the hash seed, but glance unittests don't currently pass
with a random hash seed so set it to the python default seed.

This change will allow us to use new tox again and remove the
restriction on tox<=1.6.1 to run unittests.

Redundant setenvs for specific test envs are removed to prevent them
from overriding the PYTHONHASHSEED value.

Note this change will need to be backported to the stable branches to
keep unittests there working with new tox as well.

Conflicts:
	tox.ini

Change-Id: Id0175b7a95c0ad07798b4603b5d1dd8e6d414561
(cherry picked from commit 90c07019350adc301fa5d91239ebfb16fcac775f)
Enforce image_size_cap on v2 upload

image_size_cap should be checked and enforced on upload

Enforcement is in two places:
- on image metadata save
- during image save to backend store

(cherry picked from commit 92ab00fca6926eaf3f7f92a955a5e07140063718)
Conflicts:
	glance/location.py
	glance/tests/functional/v2/test_images.py
	glance/tests/unit/test_store_image.py

Closes-Bug: 1315321
Change-Id: I45bfb360703617bc394e9e27fe17adf43b09c0e1
Co-Author: Manuel Desbonnet <manuel.desbonnet@hp.com>
Merge "Set python hash seed to 0 in tox.ini" into stable/havana
Merge "Enforce image_size_cap on v2 upload" into stable/havana
Fix collection order issues and unit test failures

A randomized PYTHONHASHSEED caused the glance API to return certain data
in a nondeterministic order, breaking some tests. This patch sorts the
returned data before testing against a pre-sorted expected values.

This patch also fixes some unit test failures with the new version of
testtools (0.9.36) and directly calling setUp(). This was added to this
patch to avoid blocking more Glance tests.

Co-authored-by: Fei Long Wang <flwang@catalyst.net.nz>
Co-authored-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>

Icehouse-Conflicts:
	glance/tests/unit/common/test_wsgi.py

Havana-Conflicts:
	glance/tests/integration/legacy_functional/test_v1_api.py
	glance/tests/unit/common/test_wsgi.py
	glance/tests/unit/test_glance_replicator.py
	glance/tests/unit/test_vmware_store.py
	glance/tests/unit/v2/test_images_resource.py
	glance/tests/unit/v2/test_tasks_resource.py

Partial-bug: #1348818
Change-Id: Ie92c6bb5663826713ca99e8f2f7d70f3faef6675
Block sqlalchemy-migrate 0.9.2

Breaks unit tests.

Closes-Bug: #1368391
(cherry picked from commit a8e54eccbb11ccdff2ac336514e669bc9218b5c9)

Change-Id: I347a20fd35ae20f1de5db7f2608090b08af6c0ff
Updated from global requirements

Change-Id: I3cfcff5947c3794989d0bf7c6bc80469cd55072b
Merge remote-tracking branch 'os/stable/havana' into final-stable-havana-fixes
Merge pull request #3 from retr0h/final-stable-havana-fixes

Final stable havana fixes - Mostly size cap and tests