Fix stack-show on a TemplateResource with outputs

TemplateResource currently tries to re-download the template.
this is not good, esp. if you have a relative path to a local file.
First see if we have a new template, if not look in the db.

Closes-bug: #1252980
Change-Id: If819aab9ed1360744f8e73f0b6409641e2d8114f
Change ID column of Event table to UUID

If you are using a public Heat you can use the event ID in
'heat event-list' to measure how much activity the service provider
has in their heat installation.

To avoid this, the Id column of the Event table was changed from
autoincremental integer to a uuid.

Added some unit tests in order to ensure that events with integer or
uuid id pass through the API, since we have a migration which will
leave behind integer ids.

Change-Id: Ib3eddb700738cb3667c72977a9a5011209acd6d7
Closes-Bug: #1249159
oslo: update the rpc module

- It now requires the versionutils module.
- We need to deal with the "allow_rpc_exception_modules" not
  including heat.common.exception

Change-Id: I1ea1479d7bc023649b2af0f68683e9a81f868df9
Set the rpc control_exchange "again"

rpc_set_default() is never called, since all the config
opts always registed just do this globally.

Change-Id: I277318ec5e903074976ee39460d8583505a723a4
Closes-bug: #1257595
Clean up useless ex variable

When handle exception, if the exception was not used, then there is
no need to use "except Exception as ex", just using "except ValueError"
is good enough.

Change-Id: I495e239cbca20246cb88da166a80bbd4eda1a094
Fix regression in cloud server tests

Commit 116bd3cb13d76f61fe779b55d5591da671ae471b broke the cloud server contrib
tests because they mocked the default Clients calls instead of the resource's
nova function. This patch adds the correct mocks to the cloud servers tests.

Closes-Bug: #1257947

Change-Id: I904eb9f7e6424603d42b0d59c44e4da16726368c
Account for truncated resource names in test PhysName

The utility class PhysName was blindly comparing resource
name without considering that the resource name may
have also been truncated.

Closes-Bug: #1251379

Change-Id: I189f79ee5238b7c82eff1595ef612efb1f8633d4
Merge "oslo: update the rpc module"
Merge "Set the rpc control_exchange "again""
Merge "Clean up useless ex variable"
Merge "Fix stack-show on a TemplateResource with outputs"
Make build_userdata user_data_format aware

Over time different user_data_format values could assemble
different combinations of cloud-init parts.

As the default will remain user_data_format='HEAT_CFNTOOLS',
identical content will be generated for the Instance resource.

The Server resource now passes user_data_format, and no longer
has a get_mime_string method since build_userdata is only ever
called once so cached get_mime_string results is not needed.
Change-Id: I7cfbcffeea24c9b1f013463f9a5fa53b8c699cfe
Instance call build_userdata directly

get_mime_string is only ever called once so caching the results
in self.mime_string is not necessary.

Change-Id: I36a1eb358b1228a946c5f8fa6e76869f10c398fd
Merge "Fix regression in cloud server tests"
Merge "Account for truncated resource names in test PhysName"
Merge "Make build_userdata user_data_format aware"
Merge "Instance call build_userdata directly"
Merge "Change ID column of Event table to UUID"