Fix the Getting Started guide for the new setup.py

With the new setup.py script, OpenStack must be installed before heat,
otherwise PIP will start importing bogus dependencies (at least on Fedora).

Also install stuff that was previously being installed by setup.py. This
will eventually be replaced with an install script (see #134).

Change-Id: I942def545f9351a1f3238dac49f34b13370e2597
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Fix new pep8 warnings.

With the new release of pep8 we have some different requirements.
This patch fixes them all.

Change-Id: Ief16becba47007460f8b125907b055aa51de999e
Signed-off-by: Ian Main <imain@redhat.com>
Merge "Fix the Getting Started guide for the new setup.py"
U10 wordpress template

Change-Id: I25beb7b48e287b3097379c1e1f92adc309ce9c83
Signed-off-by: Steven Dake <sdake@redhat.com>
Refactor template resolution

Resolve functions in templates by making a copy of the data rather than
modifying the original. This means that e.g. a resource resolving functions
in its own template data does not result in changes to the data held by the
Stack.

This patch also refactors all of the template resolution methods to operate
using a common parsing algorithm to move through the tree.

Finally, the resources have been worked to load data as it is needed,
rather than requiring external code to put them into the correct state
before using them.

Change-Id: I79eafaefc9ced07b652fac7162aa2edbfa7f547a
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Teach heat-api about the bind_host

Change-Id: Ica32693373a87f01c41755a2b041c187bddd034d
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Add qpid-cpp-server to the openstack setup script

Change-Id: Ie63b1031583091b5bdfd52f79e59b841f21ee778
Change command interpreter to bash

This is important since /bin/sh is symlinked to dash by default on
Debian based systems.

Change-Id: I47b6317981ec020bed0bc45f7f68b636d71023d6
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
Add missing properties to cloud watch

Change-Id: I8d4be61d1a0b7bd37c97148ca291d22487ee22ba
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Restructure watchrules to make them more testable

Change-Id: Ic8085de3f5692249d82e68462bbed02da787712f
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Fix the conversion from instance to resource name

Change-Id: Iaca10eb5468bd7b64b6a66f87fc6f7066053cb27
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Make sure the resource exists before trying to update it.

Change-Id: I5d8bdc0f4ceff61cab0b909dcaaf8ab5952ba4af
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
add user auth to ha template

Change-Id: I044d153bc33de08c6736fd4dd32380ceb0bf8caa
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Pass the context to the db calls

Change-Id: I38937ee37926507dab8a7ff9e0d0d42a3ada707d
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Fix restart_resource()

Change-Id: Ia77c9a5ab4107d9803a6e8180fd9e34ac13436f5
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Fix cloudwatch delete

Change-Id: I091bb394f5ad3afad82d55f4a81bdce94cc09b71
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
wait_condition: use properties not t['Properties']

Change-Id: I81fc0dd654e9011fc7404f184390379edeacda8f
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Rely on instance_id been set to None

Then we can use the default FnGetRefId()

Change-Id: Ib328289b4d22cb7ab7b9985fa7c95cb19bcfd9c3
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Fix parsing of metadata

I broke metadata in bece6593f00f8e096f045982673f85c67863b932 by no longer
updating the parsed template in the database. We need to resolve references
runtime data before storing the parsed template, because the metadata code
uses this directly.

Change-Id: I753fe199779ae1b0046366abadca0111a81463c6
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Improve parser readability + add unit tests

Change-Id: I7dd8c394e6543d1ee545648af32c9025c522b6e0
Signed-off-by: Zane Bitter <zbitter@redhat.com>