]> review.fuel-infra Code Review - openstack-build/heat-build.git/log
openstack-build/heat-build.git
11 years agoUse strings for block device mapping info
Liang Chen [Thu, 12 Sep 2013 15:19:44 +0000 (23:19 +0800)]
Use strings for block device mapping info

Nova client receives colon separated strings for block device mapping info
instead of a list.

Fixes bug #1221693

Change-Id: I321001d406f620d5f8a21e0f28cf706579ad64ad

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 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 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 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

11 years agoRemove references to the multiple config files
Angus Salkeld [Thu, 29 Aug 2013 02:05:37 +0000 (12:05 +1000)]
Remove references to the multiple config files

Only refer to heat.conf in the docs and scripts.
For install.sh copy the iniset() function from devstack
to assist in setting some semi-sane defaults.

Change-Id: I933891e35103c003f1272bc89c7b42d2ad76697b

11 years agoSupport ISO8601 duration format for UpdatePolicy PauseTime
Winson Chan [Sun, 1 Sep 2013 20:13:58 +0000 (13:13 -0700)]
Support ISO8601 duration format for UpdatePolicy PauseTime

Adds a timeutils module in heat common to handle ISO 8601
duration format. Separating this as a different patch per
request.

Change-Id: I2fe6fccde838f4ddac6b898e4518ffb33e2a76fc
Implements: blueprint as-update-policy

11 years agoSync rpc from oslo-incubator
Russell Bryant [Fri, 30 Aug 2013 21:57:29 +0000 (17:57 -0400)]
Sync rpc from oslo-incubator

This includes the following changes:

76972e2 Support a new qpid topology
284b13a Raise timeout in fake RPC if no consumers found
9721129 exception: remove
7b0cb37 Don't eat callback exceptions
69abf38 requeue instead of reject

Change-Id: I9113991aebe7d566c8877d74aad9d55b65fdfb9e
Closes-bug: #1178375

11 years agoMake security groups associated with Neutron port work
Jeff Peeler [Fri, 23 Aug 2013 20:44:37 +0000 (16:44 -0400)]
Make security groups associated with Neutron port work

The security group names are now translated to UUIDs which is required
when using the python API. The lookup has been improved to find
existing security groups not part of the stack as well.

Fixes bug #1179481

Change-Id: I4f86bade87f89b867d12822c5f80aa5b075b7fbb

11 years agoParallelise Server updates
Zane Bitter [Fri, 30 Aug 2013 13:27:59 +0000 (15:27 +0200)]
Parallelise Server updates

Change-Id: I6a2e5841a3a65edb99f227d5849800eb696c9faa

11 years agoRackspace: Parallelise CloudServer updates
Zane Bitter [Fri, 30 Aug 2013 13:25:54 +0000 (15:25 +0200)]
Rackspace: Parallelise CloudServer updates

Change-Id: I7c5f42500a3c207f0f2e9149dba092519f65a2a2

11 years agoParallelise Instance updates
Zane Bitter [Fri, 30 Aug 2013 13:16:24 +0000 (15:16 +0200)]
Parallelise Instance updates

Change-Id: I358f7fbdb3232f4bf528d170476935ef2b4239cc

11 years agoAllow resources to be updated in parallel
Zane Bitter [Fri, 30 Aug 2013 18:45:54 +0000 (20:45 +0200)]
Allow resources to be updated in parallel

Turn Resource.update() into a coroutine.

Change-Id: I625a2d81095cc28161f8e2342121bfe1939611e3

11 years agoDon't stub LoadBalancer.update in autoscaling tests
Zane Bitter [Fri, 30 Aug 2013 18:45:54 +0000 (20:45 +0200)]
Don't stub LoadBalancer.update in autoscaling tests

Stub handle_update() instead. We can still verify that the arguments are as
expected, while still exercising as much of the logic as possible.

Change-Id: Iebb861bb5af27d92e65083c8bac6821f91382dd5

11 years agoDo updates based on a single dependency list
Zane Bitter [Fri, 30 Aug 2013 18:50:11 +0000 (20:50 +0200)]
Do updates based on a single dependency list

This ensures that updates proceed in the correct order with maximum
parallelism, for arbitrarily complex dependency graphs.

Change-Id: Ia11f4cfef58a3045199e1e5e49050cb1646f5057

11 years agoautoscaling test fix assertRaises Exception warning
Steven Hardy [Fri, 30 Aug 2013 10:25:33 +0000 (11:25 +0100)]
autoscaling test fix assertRaises Exception warning

Fix "H202 assertRaises Exception too broad" warning

Change-Id: I162dbd8e421b22cbf3a55b7052107c8332b8d59a

11 years agoRemove localhost references from tests
Steven Hardy [Fri, 30 Aug 2013 10:12:24 +0000 (11:12 +0100)]
Remove localhost references from tests

Using localhost in dummy URLs is a bad idea, because if you get
your mocking slightly wrong, some tests try to connect to the
services running in your local test environment.

Change-Id: I5550c397230f94740c63e6cab30ac35b3ae85297

11 years agoMerge "Add schema for security group rule"
Jenkins [Thu, 29 Aug 2013 16:40:36 +0000 (16:40 +0000)]
Merge "Add schema for security group rule"

11 years agoMerge "Fix CFN API error responses"
Jenkins [Thu, 29 Aug 2013 06:53:11 +0000 (06:53 +0000)]
Merge "Fix CFN API error responses"

11 years agoMerge "Implement interruption-free update and rollback"
Jenkins [Thu, 29 Aug 2013 04:18:03 +0000 (04:18 +0000)]
Merge "Implement interruption-free update and rollback"

11 years agoMerge "Cleanup the Properties doc strings"
Jenkins [Thu, 29 Aug 2013 01:46:12 +0000 (01:46 +0000)]
Merge "Cleanup the Properties doc strings"

11 years agoMerge "Add auto code api doc generation"
Jenkins [Thu, 29 Aug 2013 01:45:20 +0000 (01:45 +0000)]
Merge "Add auto code api doc generation"

11 years agoMerge "Generate docs using new properties Schema class"
Jenkins [Thu, 29 Aug 2013 01:45:18 +0000 (01:45 +0000)]
Merge "Generate docs using new properties Schema class"

11 years agoMerge "Implement native nova server resource"
Jenkins [Thu, 29 Aug 2013 01:45:17 +0000 (01:45 +0000)]
Merge "Implement native nova server resource"

11 years agoMerge "Add the missing heat.po files into heat"
Jenkins [Thu, 29 Aug 2013 01:44:58 +0000 (01:44 +0000)]
Merge "Add the missing heat.po files into heat"

11 years agoMerge "Give Property constraints a string representation"
Jenkins [Wed, 28 Aug 2013 23:09:25 +0000 (23:09 +0000)]
Merge "Give Property constraints a string representation"

11 years agoImplement native nova server resource
Steve Baker [Sun, 18 Aug 2013 23:12:59 +0000 (11:12 +1200)]
Implement native nova server resource

Some notes on the implementation:
- extends Resource rather than Instance since most of the
  complexity of Instance is in the handling of the Volumes
  attribute
- exposed properties and attributes map as closely as possible
  to the underlying v1 nova API (rather than the nova client library)
- property or attribute key namespaces have been stripped to provide
  a cleaner API and avoid YAML quoting.
  (eg instance_name -> 'OS-EXT-SRV-ATTR:instance_name')
- an assumption is currently made that any volumes specified
  in block_device_mapping should not be detached on suspend
- Network address properties attempt to cater for simple and
  advanced use-cases:
  - 'first_private_address' and 'first_public_address' for simple
    template attribute scenarios, and to aid with AWS::EC2::Instance
    transition
  - 'networks' for a simple data structure which provides all addresses
  - 'addresses' for the raw data structure returned by the API

Implements blueprint native-nova-instance
Change-Id: I4136da22961c8aa90e3fc8a9411457622f1909fb

11 years agoMerge "Remove aws_creds from DB API"
Jenkins [Wed, 28 Aug 2013 20:55:15 +0000 (20:55 +0000)]
Merge "Remove aws_creds from DB API"

11 years agoMerge "Provide user control for maximum nesting depth"
Jenkins [Wed, 28 Aug 2013 20:29:44 +0000 (20:29 +0000)]
Merge "Provide user control for maximum nesting depth"

11 years agoMerge "Change localhost references in test_nested_stack"
Jenkins [Wed, 28 Aug 2013 20:29:36 +0000 (20:29 +0000)]
Merge "Change localhost references in test_nested_stack"

11 years agoGenerate docs using new properties Schema class
Zane Bitter [Wed, 28 Aug 2013 16:35:39 +0000 (18:35 +0200)]
Generate docs using new properties Schema class

Change-Id: Ic7849a7aaeeb88379695557f7992330f83638c48

11 years agoGive Property constraints a string representation
Zane Bitter [Wed, 28 Aug 2013 16:35:39 +0000 (18:35 +0200)]
Give Property constraints a string representation

This will enable constraints to describe themselves when we generate
documentation.

Change-Id: Iba410f11c79d1e5d677a5d8aba90052d1c88528a

11 years agoFix CFN API error responses
Liang Chen [Wed, 28 Aug 2013 14:55:42 +0000 (22:55 +0800)]
Fix CFN API error responses

A remote exception (included in conf.allowed_rpc_exception_modules)
is now restored to a subclass of its original type (with the
exception of non heap types which will always be restored to its
original type). Catching rpc_common.RemoteError is not enough
anymore.

Fixes bug #1214831

Change-Id: Iae3ce0c9d0d3f6565fab25ec899f83f19d46e81b

11 years agoMerge "TemplateResources need to download from local "file://" urls"
Jenkins [Wed, 28 Aug 2013 14:46:32 +0000 (14:46 +0000)]
Merge "TemplateResources need to download from local "file://" urls"

11 years agoMerge "Add support for local file urls"
Jenkins [Wed, 28 Aug 2013 14:45:00 +0000 (14:45 +0000)]
Merge "Add support for local file urls"

11 years agoMerge "Add the api config opts in groups to deal with the single heat.conf"
Jenkins [Wed, 28 Aug 2013 14:18:15 +0000 (14:18 +0000)]
Merge "Add the api config opts in groups to deal with the single heat.conf"