Catch v3 keystone unauthorized error when creating stack

If v3 keystone unauthorized error raise during creating stack,
then this stack will remaid in status of create_in_progress. This
patch modify heat keystoneclient to catch unauthorized error and
set stack status to failed.

Closes-Bug: #1376213
Change-Id: I9a34c20fc6ac3ce235aaba4eac25a6d5ceb43f5f
Always use fakes_v1_1 for heat.tests.v1_1 fakes import

In some places there is import fakes from heat.tests.v1_1
as fakes_v1_1 and it's necessary because of importing
heat.tests.fakes. This patch makes all tests use 'fakes_v1_1'
for this import.

Change-Id: Ic20b4b0c1d66c088cb023585323404fe16b00097
Check if encoded user credential may get truncated

In some deployments, user passwords are generated by other
authentication infrastructures where the length of the Base64 encoded
credentials is longer than the DB limit.

This patch checks if the encoded credential might be truncated when
it is generated and fail early during stack creation, or else it will
cause troubles later on when operating the stack.

Change-Id: I901b9e39dd0d394991520fea1f527e250c2c9680
Partial-Bug: 1386213
Small re-factoring in template_resource

Change-Id: Id416595c531db8510d9fd88d1573372f3c4934eb
Stricter complexity checking in tox configuration

This is the last patch to fix complexity issue we have in Heat code.

Change-Id: Icefec1b794ef0589d535f944ae5a7605cabe7e8b
Remove run_tests.sh

This tool is deprecated in favor of tox for a long time already.
Moreover, currently it is broken as it tries to run
our in-tree integration tests as well.

So instead of fixing it, just finally remove it.

Change-Id: Icb3c4d423031456b8b24a84e97e310df077d9990
Sync oslo modules

Synchronize oslo modules, removing unsed gettextutils and fixing tests
for policy module change.

Change-Id: I2fbb3668522eabea9a6408ccd2f3c3d76645e2ee
Updated from global requirements

Change-Id: Ifce77584f9f29418f3b3ca47ca6fa001ded904dc
Move basic instance group functional tests

Part of blueprint decouple-nested
Change-Id: I6cb85c506a56d2fc2b8a22d1a207cfc67ee85f1e
Unit test for resource attribute SHOW fix

The change https://review.openstack.org/#/c/140766 was merged before a
previous version of this patch (for bug 1400557), but didn't have any
unit tests.  I've removed the fix but left the unit test here.

Closes-Bug: #1401107
Change-Id: I788c181ce55f076243f9bbdf791289a5f45c3758
Allow VolumeAttachments to delete in parallel

Deleting a VolumeAttachment was still blocking; this change allows other
resources to be processed while we are waiting for the volume to be
detached.

Change-Id: Id1a7bf2a353cb1f255ab335ab8c39edbeb4dc292
Merge "Catch v3 keystone unauthorized error when creating stack"
Fixed typo in remote stack resource

This patch fixes a typo in error message in RemoteStack code.

Change-Id: I9389664743c55385c78dfc3ba43afc14e6ae8c57
Merge "Unit test for resource attribute SHOW fix"
Merge "Always use fakes_v1_1 for heat.tests.v1_1 fakes import"
Merge "Allow VolumeAttachments to delete in parallel"
Support tox test case single run

For example "tox -epy27 -- heat.tests.test_hot.StackParametersTest" will
run correctly with this patch. Otherwise the same command line still run all.

Change-Id: Ib108a6f5c319c3060475a2daa47e8e35441a840e
Merge "Stricter complexity checking in tox configuration"
Take admin password for server rebuild

Take admin password when rebuild a server.

Change-Id: Ia035083519dad2faa0f3ff6647553508f70a2608
Closes-Bug: #1397220
Add cinder volume constraint for Cinder Volume

Add cinder volume constraint for Cinder Volume resource.

Notes: missed for 'source_volid' property in
bp/cinder-custom-constraints

Change-Id: I5698206bce16ef09a80fc44c36cb49b155b31365