]> review.fuel-infra Code Review - openstack-build/heat-build.git/log
openstack-build/heat-build.git
11 years agoEncode values as utf-8 before encrypting
Steven Hardy [Thu, 12 Sep 2013 14:18:10 +0000 (15:18 +0100)]
Encode values as utf-8 before encrypting

Ensure strings are correctly encoded before encrypting

This is necessary because some encryption libraries don't handle
the unicode conversion appropriately.

Change-Id: Iebbf32e57ba21d955c1984ee32360379579366c8
Closes-Bug: #1207707

11 years agoMerge "Fix misused assertTrue in unit tests"
Jenkins [Tue, 17 Sep 2013 14:17:11 +0000 (14:17 +0000)]
Merge "Fix misused assertTrue in unit tests"

11 years agoFix misused assertTrue in unit tests
Chang Bo Guo [Tue, 17 Sep 2013 09:02:50 +0000 (02:02 -0700)]
Fix misused assertTrue in unit tests

Refactored unit tests to use assertEqual instead of assertTrue
where needed.

Fixes bug #1226374

Change-Id: I6826fefbb7c6fed8b0e664da36b144e882fb6d0e

11 years agoMerge "Pass debug mode to eventlet.wsgi.server"
Jenkins [Mon, 16 Sep 2013 22:23:42 +0000 (22:23 +0000)]
Merge "Pass debug mode to eventlet.wsgi.server"

11 years agoMerge "Only send traceback to users when in debug mode"
Jenkins [Mon, 16 Sep 2013 20:11:41 +0000 (20:11 +0000)]
Merge "Only send traceback to users when in debug mode"

11 years agoMerge "Add methods to help calculate a stack's resources"
Jenkins [Mon, 16 Sep 2013 18:49:32 +0000 (18:49 +0000)]
Merge "Add methods to help calculate a stack's resources"

11 years agoMerge "Add DB API to get the count of stacks per tenant"
Jenkins [Mon, 16 Sep 2013 18:14:15 +0000 (18:14 +0000)]
Merge "Add DB API to get the count of stacks per tenant"

11 years agoMerge "Add security_groups for create_port()"
Jenkins [Sat, 14 Sep 2013 10:23:58 +0000 (10:23 +0000)]
Merge "Add security_groups for create_port()"

11 years agoMerge "Use the generic RequestLimitExceeded exception when possible"
Jenkins [Fri, 13 Sep 2013 18:34:43 +0000 (18:34 +0000)]
Merge "Use the generic RequestLimitExceeded exception when possible"

11 years agoMerge "Document volume properties"
Jenkins [Fri, 13 Sep 2013 17:58:50 +0000 (17:58 +0000)]
Merge "Document volume properties"

11 years agoMerge "Add error handling to property value resolution"
Jenkins [Fri, 13 Sep 2013 17:58:43 +0000 (17:58 +0000)]
Merge "Add error handling to property value resolution"

11 years agoUse the generic RequestLimitExceeded exception when possible
Liang Chen [Tue, 3 Sep 2013 06:35:07 +0000 (14:35 +0800)]
Use the generic RequestLimitExceeded exception when possible

Rather than having lots of specific exceptions that all pertain to request
limitation, we can just use the RequestLimitExceeded exception when applicable,
which can also simplify the handling of exception mapping in fault.py.

Change-Id: I61b1e59912087fad286e74c22af15ffe6382bb65

11 years agoMerge "Migrate remaining TEXT columns to LONGTEXT"
Jenkins [Fri, 13 Sep 2013 08:28:05 +0000 (08:28 +0000)]
Merge "Migrate remaining TEXT columns to LONGTEXT"

11 years agoAdd methods to help calculate a stack's resources
Clint Byrum [Thu, 5 Sep 2013 22:02:32 +0000 (15:02 -0700)]
Add methods to help calculate a stack's resources

In order to limit a stack's size in future changes, we need to know
how many resources are already in the stack. We also need to be able
to find the root stack object of a nested stack.

Change-Id: Ib848bcd2e10d02dffc30dce45a2675a9f718fa7d
Related-Bug: #1215100

11 years agoAdd error handling to property value resolution
Randall Burt [Fri, 13 Sep 2013 01:07:00 +0000 (20:07 -0500)]
Add error handling to property value resolution

Fixes bug 1224746

Change-Id: I990de0159e0fb49e52afdaab546f8d74372422bf

11 years agoMerge "Remove py33 from tox.ini until eventlet is ported"
Jenkins [Thu, 12 Sep 2013 16:21:38 +0000 (16:21 +0000)]
Merge "Remove py33 from tox.ini until eventlet is ported"

11 years agoMigrate remaining TEXT columns to LONGTEXT
Steven Hardy [Thu, 12 Sep 2013 11:00:28 +0000 (12:00 +0100)]
Migrate remaining TEXT columns to LONGTEXT

To avoid cases where mysql silently truncates json data
when it is > 2^16 bytes, migrate all remaining TEXT columns
to LONGTEXT, in a similar way to the fix for bug #1210799

Combined with the fix for bug #1215501 which limits the request
body size, we should never truncate, even if mysql is configured
such that it can happen

Fixes bug #1223029

Change-Id: Ib536cfa8e2952a5e047cd8573288cdd9fee0622c

11 years agoDocument volume properties
Thomas Herve [Thu, 12 Sep 2013 08:28:28 +0000 (10:28 +0200)]
Document volume properties

This adds documentation to the volume and volument attachment
properties.

Closes-Bug: #1224158
Change-Id: I22b4c8cb301b5de63418fd029ddf7f31087dfb8b

11 years agoMerge "Use physical_resource_name as Ref for Instance/AS Group"
Jenkins [Wed, 11 Sep 2013 21:27:09 +0000 (21:27 +0000)]
Merge "Use physical_resource_name as Ref for Instance/AS Group"

11 years agoMerge "Impose a size limit on JSON request body"
Jenkins [Wed, 11 Sep 2013 19:16:18 +0000 (19:16 +0000)]
Merge "Impose a size limit on JSON request body"

11 years agoMerge "Enclose command args in with_venv.sh"
Jenkins [Wed, 11 Sep 2013 14:25:11 +0000 (14:25 +0000)]
Merge "Enclose command args in with_venv.sh"

11 years agoAdd security_groups for create_port()
Hui HX Xiang [Fri, 6 Sep 2013 12:48:52 +0000 (05:48 -0700)]
Add security_groups for create_port()

Currently if defined SecurityGroups and SubnetId properties for
instance in heat template, the SecurityGroups were not associated
to the port created within the previous SubnetId, in another word,
the instance are not allocated to the specified security groups
defined in heat template.

    * Modifies function _build_nics() in instance.py, adding an item
'security_groups' in the post body of create_port sending by neutronclient.
    * Adds a new function _get_security_groups_id() to map security_groups
names to ids.
    * Adds corresponding unit tests.

Fixes bug #1221564

Change-Id: Ica2df7c6f96bc982a5bd5ece3611949ae905e5c8

11 years agoImpose a size limit on JSON request body
Liang Chen [Sat, 31 Aug 2013 06:53:43 +0000 (14:53 +0800)]
Impose a size limit on JSON request body

The size limit on JSON request body is to ensure the server not being
overwhelmed by extremly large JSON request body.

Fixes bug #1215501

Change-Id: Ia58f6690e994d34212953c44821f7a4cc4c435fe

11 years agoMerge "Make some heat resolve functions workable in hot"
Jenkins [Wed, 11 Sep 2013 02:30:33 +0000 (02:30 +0000)]
Merge "Make some heat resolve functions workable in hot"

11 years agoAdd HOT functions to dependency checks
Randall Burt [Mon, 9 Sep 2013 21:16:17 +0000 (16:16 -0500)]
Add HOT functions to dependency checks

Fixes bug 1223035

Change-Id: I7859a59490151885d4efe9bd36c612474d45b5f5

11 years agoUse physical_resource_name as Ref for Instance/AS Group
Swann Croiset [Fri, 6 Sep 2013 12:48:41 +0000 (14:48 +0200)]
Use physical_resource_name as Ref for Instance/AS Group

This allows to distinguish groups by stack when using resource
OS::Metering::Alarm with the rule:
matching_metadata: {
    'metadata.user_metadata.groupname': { 'Ref': 'WebServerASGroup'}}

And add test for AutoScalingGroup Tags

fixe bug #1215840

Change-Id: If3de5c4abddcfb49f711db223a0c1a8c70f3c15a

11 years agoMake some heat resolve functions workable in hot
JUN JIE NAN [Thu, 5 Sep 2013 05:26:01 +0000 (13:26 +0800)]
Make some heat resolve functions workable in hot

Make resolve functions Ref, Fn::GetAtt, Fn::Replace workable in hot.

Fixes bug #1221017

Change-Id: I9b7ca58720b3c7d157c79c3756510ebc62d81ee5

11 years agoEnclose command args in with_venv.sh
ZhiQiang Fan [Mon, 9 Sep 2013 06:36:33 +0000 (14:36 +0800)]
Enclose command args in with_venv.sh

It will support argument with blanks.

Change-Id: Ic3a00bdafc11459e9726eb99c7bc637d385e859a
Closes-Bug: #1220937

11 years agoMerge "Set a small max_template_size for test_long_yaml"
Jenkins [Sat, 7 Sep 2013 20:52:13 +0000 (20:52 +0000)]
Merge "Set a small max_template_size for test_long_yaml"

11 years agoMerge "Only validate credentials on create based on resources"
Jenkins [Sat, 7 Sep 2013 20:52:06 +0000 (20:52 +0000)]
Merge "Only validate credentials on create based on resources"

11 years agoPass debug mode to eventlet.wsgi.server
Clint Byrum [Sat, 7 Sep 2013 04:17:14 +0000 (21:17 -0700)]
Pass debug mode to eventlet.wsgi.server

Previously if any exceptions accidentally made their way to
eventlet.wsgi.server's response handler it would print their traceback.
We only want to show users tracebacks in debug mode. In production we
want them suppressed.

Fixes bug #1222008
Change-Id: Ieb11f75ebffc67bd584432cfd8eeaac010fce7ca

11 years agoOnly send traceback to users when in debug mode
Clint Byrum [Sat, 7 Sep 2013 03:53:58 +0000 (20:53 -0700)]
Only send traceback to users when in debug mode

API services currently send the traceback to clients. While the client
hides it from user view, it is still present in the response, exposing
the service to details of the engine that administrators likely would
not like to have exposed.

Fixes bug #1210623

Change-Id: I554ba24b7ac9166e28a8a0a10f566ed9cfa03014

11 years agoChange the dbinstance to F19
Angus Salkeld [Thu, 5 Sep 2013 10:49:48 +0000 (20:49 +1000)]
Change the dbinstance to F19

The current template is based on F17 which is eol.

Closes-Bug #1215797
Change-Id: I888fba67dc8412c8b57243d76b45494a6beb91c4

11 years agoMove dbinstance into a TemplateResource
Angus Salkeld [Thu, 5 Sep 2013 10:47:07 +0000 (20:47 +1000)]
Move dbinstance into a TemplateResource

The old dbinstance will soon be overtaken by the trove resource.
- The only reason for keeping this around is for people that don't
  have trove installed and want to use the AWS resource.
- Seperating it out into a TemplateResource really makes it easier
  for deployers and users to customise it.
- The old dbinstance did nothing "special" in python, and was really
  one of the first "TemplateResources" as it attempted to convert properties
  into parameters. Since this in now done a lot better in the TemplateResource
  lets just make use of that.

This will make it easier to migrate to other distros and versions.

Partial-Bug: #1215797
Change-Id: If72e1f40f67dc831551e0db8df8caaa002aaaeda

11 years agoMake global TemplateResources usable in the tests
Angus Salkeld [Thu, 5 Sep 2013 09:50:08 +0000 (19:50 +1000)]
Make global TemplateResources usable in the tests

At the moment we need the templates installed into /etc/heat/templates
and this is not very nice for the tests. So this patch
replaces "/etc/heat/templates" with the project's own template
path so we can at least test the api of the template resources.

Partial-Bug: #1215797
Change-Id: Ie4924b0358b97af8feaad93ed9187976b8932e3d

11 years agoMake the new template validation usable from tests
Angus Salkeld [Thu, 5 Sep 2013 01:16:55 +0000 (11:16 +1000)]
Make the new template validation usable from tests

This is so we can assert that new TemplateResources expose the
api that we are expecting.

Partial-Bug: #1215797
Change-Id: I6273f6e046bb7bd5e075e9190d8011af976573b8

11 years agoAdd DB API to get the count of stacks per tenant
Clint Byrum [Fri, 6 Sep 2013 17:34:53 +0000 (10:34 -0700)]
Add DB API to get the count of stacks per tenant

This method will be used to limit the number of stacks any one tenant
can create.

Change-Id: Ic990bf84fc1aa5592504f7c423fbce953615a4a1

11 years agoMerge "Run cfg.CONF.reset() on test cleanup"
Jenkins [Fri, 6 Sep 2013 04:04:10 +0000 (04:04 +0000)]
Merge "Run cfg.CONF.reset() on test cleanup"

11 years agoMerge "Fix H233 in sphinx config"
Jenkins [Fri, 6 Sep 2013 04:04:03 +0000 (04:04 +0000)]
Merge "Fix H233 in sphinx config"

11 years agoSet a small max_template_size for test_long_yaml
Steve Baker [Thu, 5 Sep 2013 23:39:43 +0000 (11:39 +1200)]
Set a small max_template_size for test_long_yaml

Currently this test takes 22 seconds to run. As the intent
of the test seems to be to assert that limits are enforced,
this change reduces the default limit to speed test execution time.

Change-Id: Ie12c53b832c993711c2187004d015b65045da901
Fixes-Bug: #1221478

11 years agoOnly validate credentials on create based on resources
Steve Baker [Fri, 30 Aug 2013 05:21:56 +0000 (17:21 +1200)]
Only validate credentials on create based on resources

This change relaxes the validation which checked for credentials
on stack create and update.

As implemented, having any of the following resources
in the template will result in credentials being mandatory
on create and update:
* AWS::AutoScaling::ScalingPolicy
* OS::Heat::HARestarter
* AWS::CloudFormation::WaitConditionHandle

For all other templates, credentials are not needed.

When trusts are merged, this logic could also be used to decide
whether a trust token needs to be created at all.

Fixes bug: #1217617

Change-Id: I3e4b8698d3712053dc3c0851433ef0cbbadbdfed

11 years agoRun cfg.CONF.reset() on test cleanup
Steve Baker [Thu, 5 Sep 2013 23:35:38 +0000 (11:35 +1200)]
Run cfg.CONF.reset() on test cleanup

This means clear_override and clear_default do not
need to be called explicitly for each set_override and set_default
call.

This also fixes any potential test execution order issues
where an option has been set without being cleared at all.

Change-Id: Ic40c3be10b32eb3011bc0733cee9c1faaf8f1240
Fixes-Bug: #1221476

11 years agoFix H233 in sphinx config
Steve Baker [Tue, 3 Sep 2013 23:14:50 +0000 (11:14 +1200)]
Fix H233 in sphinx config

This is being flagged in local flake8 runs.

Change-Id: I99f05996711b3851811940ad5741e96d5ae61ed6

11 years agoFix TemplateResource list property conversion
Angus Salkeld [Thu, 5 Sep 2013 04:19:23 +0000 (14:19 +1000)]
Fix TemplateResource list property conversion

In the convertion from "a,b,c" to ['a', 'b', 'c'] we are
not checking for the case of an empty list.

Change-Id: I834c4755abf33793a9484138f9dac97d7d8194da
Closes-bug: #1221009

11 years agoMerge "parallelize StackResource delete"
Jenkins [Thu, 5 Sep 2013 09:58:12 +0000 (09:58 +0000)]
Merge "parallelize StackResource delete"

11 years agoMerge "Adding IPsec site connection to Heat resources"
Jenkins [Thu, 5 Sep 2013 06:40:46 +0000 (06:40 +0000)]
Merge "Adding IPsec site connection to Heat resources"

11 years agoMerge "Adding IPsec policy to Heat resources"
Jenkins [Thu, 5 Sep 2013 06:39:31 +0000 (06:39 +0000)]
Merge "Adding IPsec policy to Heat resources"

11 years agoMerge "Adding IKE policy to Heat resources"
Jenkins [Thu, 5 Sep 2013 06:39:29 +0000 (06:39 +0000)]
Merge "Adding IKE policy to Heat resources"

11 years agoMerge "Adding VPN Service to Heat resources"
Jenkins [Thu, 5 Sep 2013 06:39:26 +0000 (06:39 +0000)]
Merge "Adding VPN Service to Heat resources"

11 years agoMerge "update neutronclient to 2.3.0 minimum version"
Jenkins [Thu, 5 Sep 2013 06:39:24 +0000 (06:39 +0000)]
Merge "update neutronclient to 2.3.0 minimum version"

11 years agoMerge "Remove some heat-cfnclients only exceptions"
Jenkins [Thu, 5 Sep 2013 06:37:02 +0000 (06:37 +0000)]
Merge "Remove some heat-cfnclients only exceptions"

11 years agoparallelize StackResource delete
Vijendar Komalla [Thu, 29 Aug 2013 18:23:16 +0000 (13:23 -0500)]
parallelize StackResource delete

This is fourth and last  patch in the series to implement
parallel delete. In this patch, parallelizing StackResource
deletion.

Blueprint parallel-delete

Change-Id: I49fb4ad64dd4245b61fad28a401174b11f2b8272

11 years agoMerge "parallelize instance delete"
Jenkins [Thu, 5 Sep 2013 00:39:31 +0000 (00:39 +0000)]
Merge "parallelize instance delete"

11 years agoMerge "parallelize volume deletion"
Jenkins [Thu, 5 Sep 2013 00:37:20 +0000 (00:37 +0000)]
Merge "parallelize volume deletion"

11 years agoMerge "Implement parallel delete"
Jenkins [Thu, 5 Sep 2013 00:37:18 +0000 (00:37 +0000)]
Merge "Implement parallel delete"

11 years agoAdding IPsec site connection to Heat resources
Bartosz Górski [Tue, 3 Sep 2013 01:54:11 +0000 (18:54 -0700)]
Adding IPsec site connection to Heat resources

Adds Neutron IPsec site connection component to resources
supported by Heat with unit tests.

Change-Id: Idf3c92b9a7ac513e7f7ab0d2501668405189ebc6
Implements: blueprint vpnaas-support

11 years agoAdding IPsec policy to Heat resources
Bartosz Górski [Tue, 3 Sep 2013 01:54:11 +0000 (18:54 -0700)]
Adding IPsec policy to Heat resources

Adds Neutron IPsec policy component to resources
supported by Heat with unit tests.

Change-Id: I5014c50d51afe6a3a9b62cf3e88cbd6f7f60a62e
Implements: blueprint vpnaas-support

11 years agoAdding IKE policy to Heat resources
Bartosz Górski [Tue, 3 Sep 2013 01:54:11 +0000 (18:54 -0700)]
Adding IKE policy to Heat resources

Adds Neutron IKE policy component to resources
supported by Heat with unit tests.

Change-Id: I54a83aededc779ddcf44ce72b0a1bb2b69a26094
Implements: blueprint vpnaas-support

11 years agoAdding VPN Service to Heat resources
Bartosz Górski [Tue, 3 Sep 2013 01:33:05 +0000 (18:33 -0700)]
Adding VPN Service to Heat resources

Adds Neutron VPN service component to resources
supported by Heat with unit tests.

Change-Id: I3a626166253bcb33d8875cf406b293688f53ffa3
Implements: blueprint vpnaas-support

11 years agoupdate neutronclient to 2.3.0 minimum version
Mark McClain [Tue, 3 Sep 2013 20:37:01 +0000 (16:37 -0400)]
update neutronclient to 2.3.0 minimum version

Change-Id: I01a6899c43ae6ff63794267d2dd4ab32f06fa643

11 years agoparallelize instance delete
Vijendar Komalla [Thu, 29 Aug 2013 17:44:33 +0000 (12:44 -0500)]
parallelize instance delete

This is third patch in the series to implement parallel delete.
In this patch, parallelizing instance deletion

Blueprint parallel-delete

Change-Id: I86d2e25901b330dcf4b0e512eec66fb71199727b

11 years agoparallelize volume deletion
Vijendar Komalla [Thu, 29 Aug 2013 16:39:18 +0000 (11:39 -0500)]
parallelize volume deletion

This is second patch in the series to implement parallel delete
In this patch, parallelizing volume deletion and updating relevant
tests

Blueprint parallel-delete

Change-Id: Iaded5951618c2ac52c26d6d6437f152c658ad9cf

11 years agoImplement parallel delete
Vijendar Komalla [Thu, 29 Aug 2013 13:59:46 +0000 (08:59 -0500)]
Implement parallel delete

This is first patch in the series to implement parallel delete
and it includes following changes:

1. changing Stack.delete to use stack_task
2. In Resource.delete polling for check_delete_complete
3. Updating unit tests to use TaskRunner for resource.delete and
   resource.destroy

Blueprint parallel-delete

Change-Id: I8a96b1a956388372c29f9f45445f397467667110

11 years agoFix AttributeError exception in autoscaling
Simon Pasquier [Wed, 4 Sep 2013 14:12:08 +0000 (16:12 +0200)]
Fix AttributeError exception in autoscaling

Use the nested() method instead of directly accessing the _nested
attribute which isn't always initialized.

Fixes bug #1220737
Change-Id: I9f36d98e91d5175b354e423d7159e690b1e5b696

11 years agoMerge "Update nested stacks in parallel"
Jenkins [Wed, 4 Sep 2013 15:34:36 +0000 (15:34 +0000)]
Merge "Update nested stacks in parallel"

11 years agoMerge "Fix problem with mocking tasks"
Jenkins [Wed, 4 Sep 2013 15:33:05 +0000 (15:33 +0000)]
Merge "Fix problem with mocking tasks"

11 years agoMerge "Create a Stack.update_task() method"
Jenkins [Wed, 4 Sep 2013 15:33:03 +0000 (15:33 +0000)]
Merge "Create a Stack.update_task() method"

11 years agoMerge "Change _testnoexisthost_ references in tests"
Jenkins [Wed, 4 Sep 2013 15:25:18 +0000 (15:25 +0000)]
Merge "Change _testnoexisthost_ references in tests"

11 years agoMerge "Migrate stored credentials to keystone trusts"
Jenkins [Wed, 4 Sep 2013 15:25:16 +0000 (15:25 +0000)]
Merge "Migrate stored credentials to keystone trusts"

11 years agoUpdate nested stacks in parallel
Zane Bitter [Wed, 4 Sep 2013 08:44:39 +0000 (10:44 +0200)]
Update nested stacks in parallel

This parallelises updates for AWS::CloudFormation::Stack resources, but not
for autoscaling groups. Other types of nested stacks (the old LoadBalancer
and DBInstance resources, and provider templates) have not yet implemented
stack updates.

Change-Id: I86e1d5289487b34712c248bc5e68e62cc4651ec6

11 years agoFix problem with mocking tasks
Zane Bitter [Wed, 4 Sep 2013 08:44:39 +0000 (10:44 +0200)]
Fix problem with mocking tasks

It was previously impossible to stub out a task with mox, because when the
TaskRunner attempted to get the __name__ attribute it prompted an assertion
in the mock. Using hasattr() instead of getattr() eliminates this issue.

Change-Id: I3757a77daf59cbb3c0a8b60329d490a89e7ec1d3

11 years agoCreate a Stack.update_task() method
Zane Bitter [Wed, 4 Sep 2013 08:44:39 +0000 (10:44 +0200)]
Create a Stack.update_task() method

This will allow nested stack resources to run updates in parallel with
other resources.

Change-Id: I184666182f5b9648d2d297d4290eb8608a09c0f0

11 years agoMerge "Make error message for InvalidTemplateReference sane"
Jenkins [Wed, 4 Sep 2013 03:35:35 +0000 (03:35 +0000)]
Merge "Make error message for InvalidTemplateReference sane"

11 years agoMerge "Add unit tests for Resource dependency inference"
Jenkins [Wed, 4 Sep 2013 02:12:14 +0000 (02:12 +0000)]
Merge "Add unit tests for Resource dependency inference"

11 years agoChange _testnoexisthost_ references in tests
Steven Hardy [Tue, 3 Sep 2013 23:05:42 +0000 (00:05 +0100)]
Change _testnoexisthost_ references in tests

These dummy urls are obviously invalid, but could potentially trigger
unexpected failures due to the underscores.

Instead use RFC2606's recommended test TLD of '.test' ensures
that these will never resolve.

Change-Id: I2723b18ef3eba81ee8c8a22d866ceb79c00aad75

11 years agoMigrate stored credentials to keystone trusts
Steven Hardy [Mon, 2 Sep 2013 15:32:40 +0000 (16:32 +0100)]
Migrate stored credentials to keystone trusts

Migrate the stored user_creds, which currently only supports
storing username/password credentials to use the keystone v3
API OS-TRUST extension, which allows explicit impersonation of
users calling heat (trustors) by the heat service user (the
trustee)

Note this feature is made optional via a new config option,
defaulted to off, and it requires the following patches to
keystoneclient (in 0.3.2 release) and keystone to work:

https://review.openstack.org/#/c/39899/
https://review.openstack.org/#/c/42456/

Also note that if the feature is enabled, by setting
deferred_auth_method=trusts in heat.conf, you must add
a keystone_authtoken section, which is also used by the
keystoneclient auth_token middleware.

blueprint heat-trusts

Change-Id: I288114d827481bc0a24eba4556400d98b1a44c09

11 years agoMerge "Allowing to pass network name to router gateway"
Jenkins [Tue, 3 Sep 2013 21:49:50 +0000 (21:49 +0000)]
Merge "Allowing to pass network name to router gateway"

11 years agoMerge "Don't use a query for watch_rule_get()"
Jenkins [Tue, 3 Sep 2013 21:42:22 +0000 (21:42 +0000)]
Merge "Don't use a query for watch_rule_get()"

11 years agoRemove py33 from tox.ini until eventlet is ported
Clint Byrum [Tue, 3 Sep 2013 18:36:49 +0000 (11:36 -0700)]
Remove py33 from tox.ini until eventlet is ported

There is no point in trying to run the py33 unit tests until eventlet is
ported to Python 3. Meanwhile the expected failure means we get a bunch
of garbage and extra lag time when trying to run 'tox' before sending to
gerrit for review/CI checks.

Change-Id: I343e24e77e097a2249a7ace1903faeaed71d7393

11 years agoMerge "Parallelise Server updates"
Jenkins [Tue, 3 Sep 2013 18:28:25 +0000 (18:28 +0000)]
Merge "Parallelise Server updates"

11 years agoMake error message for InvalidTemplateReference sane
Zane Bitter [Tue, 3 Sep 2013 15:22:22 +0000 (17:22 +0200)]
Make error message for InvalidTemplateReference sane

Previously it was more or less incomprehensible. Now it will report the
non-existent resource the uesr tried to reference and the path (starting
with Resources) in the JSON document where the error occurred.

Change-Id: Id98eb4157df16674b8c8a9a190b82ee350c5386f

11 years agoAdd unit tests for Resource dependency inference
Zane Bitter [Tue, 3 Sep 2013 10:04:13 +0000 (12:04 +0200)]
Add unit tests for Resource dependency inference

Change-Id: Idd05c880913081dccfbcbb1f26a528705e5ec924

11 years agoMerge "Add trust_id and trustor_user_id Context and DB"
Jenkins [Tue, 3 Sep 2013 13:54:43 +0000 (13:54 +0000)]
Merge "Add trust_id and trustor_user_id Context and DB"

11 years agoRemove some heat-cfnclients only exceptions
Liang Chen [Tue, 3 Sep 2013 05:30:50 +0000 (13:30 +0800)]
Remove some heat-cfnclients only exceptions

Remove some exceptions that were written specifically for
heat-cfnclients and are unlikely to be referenced anywhere
else in the future.

Change-Id: I834138a833042449293f7b96a6c5bcfba8424d73

11 years agoAdd trust_id and trustor_user_id Context and DB
Steven Hardy [Mon, 2 Sep 2013 15:29:39 +0000 (16:29 +0100)]
Add trust_id and trustor_user_id Context and DB

Add trust_id and trustor_user_id to the user_creds table
and related RequestContext object

blueprint heat-trusts

Change-Id: Ie0fdc5068475db7e84f366d1eb2b9ae56db0b3fc

11 years agoAllowing to pass network name to router gateway
Bartosz Górski [Wed, 14 Aug 2013 10:52:37 +0000 (03:52 -0700)]
Allowing to pass network name to router gateway

This patch allows to pass newtork name instead of network id to create router
gateway. It is really useful feature because often router has gateway as public
network. It is easy to pass the name because id will change after deleting the
network and creating it again.

Change-Id: I5768408b86b509ecfd117f17b10db06af82369d8

11 years agoDon't use a query for watch_rule_get()
Zane Bitter [Mon, 2 Sep 2013 14:02:14 +0000 (16:02 +0200)]
Don't use a query for watch_rule_get()

When getting a database record by ID, it is much more efficient to get() it
directly than to perform a query or the database to obtain the ID (again)
and then get it.

Change-Id: I89b46d698c033e54ee9a50172ccad3eb3833cb1e

11 years agoDon't use a query for stack_get()
Zane Bitter [Mon, 2 Sep 2013 14:00:36 +0000 (16:00 +0200)]
Don't use a query for stack_get()

When getting a database record by ID, it is much more efficient to get() it
directly than to perform a query or the database to obtain the ID (again)
and then get it.

Since stack_get() returns only a single record that can be trivially
checked for deletion in code, do this rather than performing a query with a
filter.

Change-Id: I4bb3ea1a9c4ae928fe0f5bce5c02b842a3f1ab4f

11 years agoMerge "Delete the old example config files"
Jenkins [Mon, 2 Sep 2013 13:31:55 +0000 (13:31 +0000)]
Merge "Delete the old example config files"

11 years agoMerge "Remove references to the multiple config files"
Jenkins [Mon, 2 Sep 2013 13:02:58 +0000 (13:02 +0000)]
Merge "Remove references to the multiple config files"

11 years agoMerge "Rackspace: Parallelise CloudServer updates"
Jenkins [Mon, 2 Sep 2013 12:02:28 +0000 (12:02 +0000)]
Merge "Rackspace: Parallelise CloudServer updates"

11 years agoMerge "EC2token middleware implement multi-cloud auth"
Jenkins [Mon, 2 Sep 2013 12:00:47 +0000 (12:00 +0000)]
Merge "EC2token middleware implement multi-cloud auth"

11 years agoMerge "Sync rpc from oslo-incubator"
Jenkins [Mon, 2 Sep 2013 12:00:45 +0000 (12:00 +0000)]
Merge "Sync rpc from oslo-incubator"

11 years agoMerge "Parallelise Instance updates"
Jenkins [Mon, 2 Sep 2013 11:02:47 +0000 (11:02 +0000)]
Merge "Parallelise Instance updates"

11 years agoMerge "Allow resources to be updated in parallel"
Jenkins [Mon, 2 Sep 2013 11:02:40 +0000 (11:02 +0000)]
Merge "Allow resources to be updated in parallel"

11 years agoMerge "Don't stub LoadBalancer.update in autoscaling tests"
Jenkins [Mon, 2 Sep 2013 11:00:37 +0000 (11:00 +0000)]
Merge "Don't stub LoadBalancer.update in autoscaling tests"

11 years agoMerge "Do updates based on a single dependency list"
Jenkins [Mon, 2 Sep 2013 11:00:30 +0000 (11:00 +0000)]
Merge "Do updates based on a single dependency list"

11 years agoMerge "Make security groups associated with Neutron port work"
Jenkins [Mon, 2 Sep 2013 10:54:11 +0000 (10:54 +0000)]
Merge "Make security groups associated with Neutron port work"

11 years agoMerge "Support ISO8601 duration format for UpdatePolicy PauseTime"
Jenkins [Mon, 2 Sep 2013 10:45:43 +0000 (10:45 +0000)]
Merge "Support ISO8601 duration format for UpdatePolicy PauseTime"

11 years agoDelete the old example config files
Angus Salkeld [Thu, 29 Aug 2013 01:58:44 +0000 (11:58 +1000)]
Delete the old example config files

heat.conf.sample is the master sample now.

Change-Id: I732bc8a363c3829a68fddfb4c03cf4bca52d8842