heat api : add register_api_opts to init.py

Add register_api_opts to api/__init__.py, slightly simplifying
the api executables, and also solving an issue with some tests
which were not working via nosetests -s due to the required
options not being registered in cfg.CONF

Change-Id: I70b16aae1f73f72518013dbcda37defa79fc5649
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat tests : Add utility decorator for deleting stacks

Add decorator function which allows test functions to be wrapped
such that if they create a stack (and it is stored in the testcase
class as self.stack) it is always deleted on test exit, regardless
of test success/failure

Change-Id: Ibde9a2cee08448e3f24c6b7efbfe756a01f9eccc
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat tests : test_waitcondition move cleanup out of teardown

Move stack delete and mox VerifyAll out of the teardown function
so if either fails the stubs are unset, meaning all subsequent
tests won't fail due to being unable to setup their stubs
stack delete is now performed via the stack_delete_after decorator

Change-Id: I636af84dd66ba4923f068c56ec13e7990d8edc03
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat tests : test_api_cfn_v1 move verify out of teardown

Move VerifyAll out of the teardown function so if it fails
the stubs are still unset

Change-Id: I92132236f013d9d9dfeb82ba77ecfadc2e07f671
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat engine : WaitCondition add Handle property validation

Add validation to the Handle property for WaitCondition, so
we check that the identifier in the provided URL maps to
a WaitConditionHandle resource in the same stack as the
WaitCondition

fixes bug 1100754

Change-Id: I44c8f52435016fad5a35183472d2b0df26c1915d
Update to latest oslo-version code.

This pulls in the bugfix patch that handles the usecase wher a packager
running tests from a tarball.

Change-Id: I38cadc5ceaf880f632a0f7ed4d5e9a51c9ddc4e5
heat docs : Fix version string issue

Fix issue with release/version strings in doc build config
which was causing doc builds to fail with an error.

Fixes bug 1115269

Change-Id: Ia02d52f502d808d758a541e84056d5ac94aff8b8
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat engine : Resource remove redundant None get defaults

get(k) returns None anyway if k doesn't exist, so the default to
None is not needed

Change-Id: Id954c510a5c4795b5e0c3ccdcca186983dee2e8f
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat tests : update_allowed_keys should be tuple

In test_resource.py update_allowed_keys should be a tuple not
a list, so it matches the expected usage in the resource classes

Change-Id: Ic7428e3790ea2c8c9887b464daf303c4f5d563fc
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat engine : Resource add function to compare properties

Add update_template_diff_properties to make comparison of
pre/post update resource properties easier

Change-Id: Ic37d37ae510a62739d4cc4219cfd69479a87767d
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat engine : AutoScalingGroup UpdateStack support

Adds improved UpdateStack support for AutoScalingGroup,
now the following properties can be updated without
replacement:
'MaxSize', 'MinSize', 'Cooldown', 'DesiredCapacity'

Change-Id: Ic47b4a2456dc19cd91eec7b0381d5d82fcd3f332
Signed-off-by: Steven Hardy <shardy@redhat.com>
Change install scripts to use cinder

Fixes bug #1073164

Change-Id: Id483b028d19dbbc30984299120b87fd020f19903
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
Fix typo in AutoScaling update

Change-Id: I2e96e6f71c3cb0b9ce73e57344e0eb4706b95f70
Merge "Update to latest oslo-version code."
Merge "Change install scripts to use cinder"
Remove sendfile as a dependency.

This is dead code anyway, since heat-cfn doesn't handle large binary files like glance.

Fixes bug 1087530

Change-Id: Iaba7adce088b20136ece0828d4085679fcbab731
Fix a few bash logic errors in install script

Slipped by in 0a37f56972714818fcf378945b0d3b91d1b8e10a

Change-Id: Id02454e8224f99b057cc8c9e92580ae6c26bc14e
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
Remove unused heat/common/policy.py

Remove heat/common/policy.py, since we don't currently implement
policy filtering, and when we do we should use the oslo policy.py

Change-Id: I0c1d26ceed958d270f59edd612911ce24f74c1ff
Signed-off-by: Steven Hardy <shardy@redhat.com>
update openstack common and include policy.py

Sync with latest oslo (now at bd5d9f0), and update config to
pull in policy.py

Change-Id: I3571477cbf7c538c9ddb6860f85265ed503d2049
Signed-off-by: Steven Hardy <shardy@redhat.com>
Add initial code to support policy.json implementation

We don't currently support a policy.json file like
other openstack services, so this code (mostly copied
from glance, then modified a bit) will allow us to
add policy-based authorization to out APIs fairly
easily

Change-Id: I5ad9f55b3d0979e2526953bdce8b8227852e4b72
Signed-off-by: Steven Hardy <shardy@redhat.com>