Don't shadow local variables "resource"

We could rename the local variables, but it's just as easy to not
use the resource module. Since the functions are not used, remove them.

Change-Id: I356fbe0042f24aba78fba5deebe7fa645a035d96
Fix support status for OS::Heat::SoftwareComponent

Since SoftwareComponent is derived from SoftwareConfig, the support
status 2014.1 inherited from SoftwareConfig was incorrectly shown for
the SoftwareComponent resource.
This patch fixes the problem by correctly setting support_status in
the SoftwareComponent resource.

Change-Id: I973755f11e21ccb4f8bbc532da4de964e07c65f1
Functional test UpdateStackTest

This is a port of tempest.api.orchestration.stacks.stack_update
in an effort to reproduce the postgres race described in
bug #1370865.

Subsequent changes will create an experimental postgres check job and
a change to the test which runs test_stack_update_add_remove enough
times to triger the race.

Change-Id: I8aee26e29f242b11a5d3c8d56a859ae770be86c2
Related-Bug: #1370865
Don't stop update immediately on error

When an error occurs during a stack update operation,
don't immediately stop the operation. Instead,
wait up to 4 minutes for resources already in progress
to complete before forcibly cancelling them.

Change-Id: Ib089dbc675c519668a44d1b0e3214feca5079978
Closes-bug: #1381984
stack delete fails when instance is soft deleted

In an environment where reclaim_instance_interval is set to
non-zero in nova, an delete request will only soft delete an
instance.(status=SOFT_DELETED, so that the instance can be reclaimed
if required by using 'nova restore <instance_id>')

Now in the above environment, when an delete stack is requested by
user, stack will hang until reclaim_instance_inerval or timeout.
Hence status=SOFT_DELETED for an instance should be handled by heat, which
this patch proposes.

Closes-Bug: #1377290

Change-Id: I86ea788131f113e3deb7aebfccecd7f5e4957ae5
Inherit roles for create_trust_context()

This change the default value of the option
'trusts_delegated_roles' to []. And delegate all of
the trustor roles when create the trust unless
user set the option to subset roles.

Change-Id: I3f1b70b78b91bfac9af5fadb71140679b208c999
Closes-bug: #1376562
Columns needs to be non-nullable for DB2

For DB2, we can not create constraints over nullable
columns. This patch makes some related changes to
035_event_uuid_to_id.py for Heat.

Change-Id: I6d251fa503848e03603a13ecb742d4915f0f6972
Closes-Bug: #1328045
Co-authored-by: Matt Riedemann <mriedem@us.ibm.com>
Pass status reason when trove misbehaves

Pass a helpful message when trove fails to initialize
successfully. Only include codes for BAD_STATUSES.

Change-Id: I0c0d3b44640130b80734464af93151387d513f5a
Closes-bug: #1386899
ADD: skeleton resource for RackConnect load balancer

Change-Id: I8dbe3cecb2c12321f4be0eec5307e90bf69af2de