]> review.fuel-infra Code Review - openstack-build/heat-build.git/log
openstack-build/heat-build.git
11 years agoWait until quantum resources are deleted.
Steve Baker [Fri, 12 Jul 2013 01:31:09 +0000 (13:31 +1200)]
Wait until quantum resources are deleted.

Races on delete have occured where a quantum resource cannot
be deleted due to an associated resource delete being incomplete.

Fixes bug: #1195596

Change-Id: I52a358d05d30b9c50a771864d036156f00df67ab

11 years agoMerge "Global disable scheduler _sleep instead of mocking."
Jenkins [Thu, 11 Jul 2013 23:30:33 +0000 (23:30 +0000)]
Merge "Global disable scheduler _sleep instead of mocking."

11 years agoMerge "Add length validation to properties of type LIST and MAP."
Jenkins [Thu, 11 Jul 2013 23:26:11 +0000 (23:26 +0000)]
Merge "Add length validation to properties of type LIST and MAP."

11 years agoMerge "Use new environment and parameters on stack update."
Jenkins [Thu, 11 Jul 2013 22:14:03 +0000 (22:14 +0000)]
Merge "Use new environment and parameters on stack update."

11 years agoMerge "Handle conversion of MAP properties to JSON params"
Jenkins [Thu, 11 Jul 2013 22:14:01 +0000 (22:14 +0000)]
Merge "Handle conversion of MAP properties to JSON params"

11 years agoGlobal disable scheduler _sleep instead of mocking.
Steve Baker [Thu, 11 Jul 2013 04:08:54 +0000 (16:08 +1200)]
Global disable scheduler _sleep instead of mocking.

It is becoming increasingly difficult to predict when
a call to TaskRunner._sleep needs to be scripted, and is probably an
implementation detail which shouldn't be exposed to unit tests anyway.

This change defines a global which prevents sleeping in calls to _sleep
and toggles that global in HeatTestCase setUp.

Change-Id: I98dc88c9d120c409d5720895bb4fb625a1f12991

11 years agoHandle conversion of MAP properties to JSON params
Randall Burt [Tue, 9 Jul 2013 18:11:22 +0000 (13:11 -0500)]
Handle conversion of MAP properties to JSON params

Since JsonParameter takes either a string or a Mapping, just pass the property
value directly as is done with strings and numbers

contributes to blueprint provider-resource

Change-Id: I71d5c0d9e3fcf3ffea9a89d2c37888faec35cd4a

11 years agoMerge "Tolerate an empty environment properties."
Jenkins [Wed, 10 Jul 2013 13:47:12 +0000 (13:47 +0000)]
Merge "Tolerate an empty environment properties."

11 years agoMerge "Make the waitcondition signed url more generic"
Jenkins [Wed, 10 Jul 2013 11:06:44 +0000 (11:06 +0000)]
Merge "Make the waitcondition signed url more generic"

11 years agoTolerate an empty environment properties.
Steve Baker [Tue, 9 Jul 2013 04:01:58 +0000 (16:01 +1200)]
Tolerate an empty environment properties.

An environment file containing the following:
properties:

Results in the following error:
 File "/home/steveb/dev/localstack/heat/heat/api/openstack/v1/stacks.py",
line 132, in environment
    env[self.PARAM_USER_PARAMS].update(parameters)
AttributeError: 'NoneType' object has no attribute 'update'

Change-Id: I7b36d797383cc3c74d4d0c77c283564b01aa6a6b

11 years agoMerge "Sync install_venv_common from oslo."
Jenkins [Tue, 9 Jul 2013 14:23:12 +0000 (14:23 +0000)]
Merge "Sync install_venv_common from oslo."

11 years agoAdd length validation to properties of type LIST and MAP.
Vijendar Komalla [Tue, 9 Jul 2013 14:12:43 +0000 (09:12 -0500)]
Add length validation to properties of type LIST and MAP.

Fixing bug #1194981

Change-Id: I0537f105a61bba82e85b6b67d2354b77d8096eb1

11 years agoMerge "Define behaviour for properties with None values."
Jenkins [Tue, 9 Jul 2013 13:01:54 +0000 (13:01 +0000)]
Merge "Define behaviour for properties with None values."

11 years agoMerge "Check duplicate names between params and resources"
Jenkins [Tue, 9 Jul 2013 13:01:31 +0000 (13:01 +0000)]
Merge "Check duplicate names between params and resources"

11 years agoMerge "Enforce credentials requirement on stack create/update."
Jenkins [Tue, 9 Jul 2013 13:01:29 +0000 (13:01 +0000)]
Merge "Enforce credentials requirement on stack create/update."

11 years agoUse new environment and parameters on stack update.
Steve Baker [Mon, 8 Jul 2013 23:45:07 +0000 (11:45 +1200)]
Use new environment and parameters on stack update.

Without this, changes in parameters specified in the update
will not propagate to resources.

Fixes bug: #1199189
Change-Id: Ic19b907e9dd12c121757cb7c6b3d0342415d0482

11 years agoDefine behaviour for properties with None values.
Steve Baker [Wed, 3 Jul 2013 03:21:23 +0000 (15:21 +1200)]
Define behaviour for properties with None values.

Now that Ref and Fn::GetAtt might return None values, behaviour for
properties with None values needs definition.

This change will treat a None value in the following way:
- if there is a default in the schema, that value will be used
- otherwise a default is used depending on the type ('', False, 0, [] {})

Fixes bug: #1192142

Change-Id: I59ae32c1c32b1bfede7d775aa845cd14246040e1

11 years agoMerge "engine : add suspend/resume support to User resource"
Jenkins [Mon, 8 Jul 2013 03:27:33 +0000 (03:27 +0000)]
Merge "engine : add suspend/resume support to User resource"

11 years agoMerge "engine : add suspend/resume support to watch resource"
Jenkins [Mon, 8 Jul 2013 03:27:26 +0000 (03:27 +0000)]
Merge "engine : add suspend/resume support to watch resource"

11 years agoMake the waitcondition signed url more generic
Angus Salkeld [Thu, 4 Jul 2013 03:14:42 +0000 (13:14 +1000)]
Make the waitcondition signed url more generic

This will be used in a later patch, for alarms as well.

blueprint watch-ceilometer
Change-Id: I4b3a6be0effb975ddd8214741cfca6f40c493dbe

11 years agoCheck duplicate names between params and resources
Liang Chen [Sun, 7 Jul 2013 03:17:44 +0000 (11:17 +0800)]
Check duplicate names between params and resources

make sure there are no duplicate logical names across parameter
and resource definitions

Fixes bug #1196491

Change-Id: I353b84dd8b9bfe77b214e93cc9f1a080ebe2248b

11 years agoMerge "Stop patching the GenericResource's property_schema"
Jenkins [Sun, 7 Jul 2013 06:49:30 +0000 (06:49 +0000)]
Merge "Stop patching the GenericResource's property_schema"

11 years agoengine : add suspend/resume support to User resource
Steven Hardy [Thu, 4 Jul 2013 12:49:50 +0000 (13:49 +0100)]
engine : add suspend/resume support to User resource

When a User resource is in suspended state, disable the keystone
user owned by the resource

blueprint stack-suspend-resume

Change-Id: Iee8dddcfbc0fc9bd132ddfadd2a17eb1b0894f51

11 years agoengine : add suspend/resume support to watch resource
Steven Hardy [Wed, 3 Jul 2013 17:03:57 +0000 (18:03 +0100)]
engine : add suspend/resume support to watch resource

Add suspend/resume support to CloudWatchAlarm resource and
underlying watchrule - this means that when in suspended
state watches will not allow new metric data to be added
or for alarm evaluation/actions to happen

blueprint stack-suspend-resume

Change-Id: Ic9a1c1bd86ac8156f260791089a38889eabc6528

11 years agoSync install_venv_common from oslo.
Monty Taylor [Sat, 6 Jul 2013 02:05:47 +0000 (22:05 -0400)]
Sync install_venv_common from oslo.

Change-Id: Ic7d71c90d39370810e95efa592f00e936c5204f0

11 years agoMerge "cleanup watchrule delete logic/tests"
Jenkins [Fri, 5 Jul 2013 13:37:20 +0000 (13:37 +0000)]
Merge "cleanup watchrule delete logic/tests"

11 years agoStop patching the GenericResource's property_schema
Angus Salkeld [Fri, 5 Jul 2013 11:42:31 +0000 (21:42 +1000)]
Stop patching the GenericResource's property_schema

This is causing test failures if you add a new test
and don't reset the scema to {}, this seems to be timing
related. Just add Resource types that we need prevents the
need for this patching.

Change-Id: If7ddd2b1ffa8b54025c0369fe8c4f7440f0e3cdc

11 years agoMerge "Tolerate 404 on user delete."
Jenkins [Fri, 5 Jul 2013 03:24:10 +0000 (03:24 +0000)]
Merge "Tolerate 404 on user delete."

11 years agoEnforce credentials requirement on stack create/update.
Steve Baker [Wed, 3 Jul 2013 23:50:49 +0000 (11:50 +1200)]
Enforce credentials requirement on stack create/update.

Credentials need to be supplied whenever they are stored with the stack,
which is during stack create and update.

Some users have been relying on their auth token to perform all heat
operations (as all other openstack services support) however this has
led them to experience obscure errors when wait handles or alarms are
triggered.

Failing early with a clear error message will stop this class of errors.

Fixes bug: #1194303

Change-Id: I3edef3dee843bb06760be6294b798761eba30cb8

11 years agocleanup watchrule delete logic/tests
Steven Hardy [Thu, 4 Jul 2013 09:26:31 +0000 (10:26 +0100)]
cleanup watchrule delete logic/tests

Rework watchrule delete interface so we delete by ID, rather than
by name (where we only delete the first rule in the event of multiple
watcherule rows with the same name, which is allowed although not likely
in normal heat operation - it can cause weird behavior in the tests)

Encapsulating the delete in a WatchRule.destroy() is cleaner and more
consistent with the rest of the codebase, and reworking the tests to
ensure proper cleanup reduces the chances of odd errors and cascading
failures between tests on failure.

fixes bug #1197718

Change-Id: I94e9eb610519bb7321a2be7718312fd50f308a8b

11 years agoMerge "engine : autoscaling pass instance id's not names to loadbalancer"
Jenkins [Thu, 4 Jul 2013 03:19:22 +0000 (03:19 +0000)]
Merge "engine : autoscaling pass instance id's not names to loadbalancer"

11 years agoMerge "Fix command name display issue in heat-manage usage"
Jenkins [Wed, 3 Jul 2013 23:33:24 +0000 (23:33 +0000)]
Merge "Fix command name display issue in heat-manage usage"

11 years agoFix command name display issue in heat-manage usage
guohliu [Tue, 2 Jul 2013 14:49:23 +0000 (22:49 +0800)]
Fix command name display issue in heat-manage usage

Fixed bug #1194840

Change-Id: Ibe43d0a025f0aed6bec7e414f7e80d0a0f652308

11 years agoengine : autoscaling pass instance id's not names to loadbalancer
Steven Hardy [Wed, 3 Jul 2013 13:40:32 +0000 (14:40 +0100)]
engine : autoscaling pass instance id's not names to loadbalancer

Regression caused by 4bc1bcb608379cc396113a03f2ae37ce78f9049c

We need to pass the id_list to the loadbalancer, otherwise it
can't lookup the instance IP adresses with nova and the loadbalancer
config ends up with 0.0.0.0 for every instance

Fixes bug #1192128

Change-Id: I73bab70e897c0fb0b317793fa31ff8d07720a6c4

11 years agoMerge "Rework associations from vpc to quantum resources."
Jenkins [Wed, 3 Jul 2013 07:55:21 +0000 (07:55 +0000)]
Merge "Rework associations from vpc to quantum resources."

11 years agoMerge "Fixup assert_has_keys."
Jenkins [Wed, 3 Jul 2013 07:51:12 +0000 (07:51 +0000)]
Merge "Fixup assert_has_keys."

11 years agoMerge "engine : perform periodic tasks with stored stack_context"
Jenkins [Wed, 3 Jul 2013 07:51:10 +0000 (07:51 +0000)]
Merge "engine : perform periodic tasks with stored stack_context"

11 years agoMerge "implement stack metadata"
Jenkins [Wed, 3 Jul 2013 07:51:07 +0000 (07:51 +0000)]
Merge "implement stack metadata"

11 years agoMerge "Rackspace cloud database resource provider"
Jenkins [Tue, 2 Jul 2013 17:23:47 +0000 (17:23 +0000)]
Merge "Rackspace cloud database resource provider"

11 years agoMerge "Ports depend on the subnets in the same network."
Jenkins [Tue, 2 Jul 2013 16:19:49 +0000 (16:19 +0000)]
Merge "Ports depend on the subnets in the same network."

11 years agoMerge "tests : remove duplicate suspend tests"
Jenkins [Tue, 2 Jul 2013 16:19:41 +0000 (16:19 +0000)]
Merge "tests : remove duplicate suspend tests"

11 years agoMerge "add missing gettextutils imports"
Jenkins [Tue, 2 Jul 2013 16:08:44 +0000 (16:08 +0000)]
Merge "add missing gettextutils imports"

11 years agoMerge "Expose resource dependency required_by to REST API."
Jenkins [Tue, 2 Jul 2013 15:57:23 +0000 (15:57 +0000)]
Merge "Expose resource dependency required_by to REST API."

11 years agoRackspace cloud database resource provider
Vijendar Komalla [Mon, 1 Jul 2013 17:48:47 +0000 (12:48 -0500)]
Rackspace cloud database resource provider

Change-Id: I0bdacb844d5e5999e70918352e58856c1b21692c

11 years agoMerge "Add resume support to InstanceGroup"
Jenkins [Tue, 2 Jul 2013 14:21:37 +0000 (14:21 +0000)]
Merge "Add resume support to InstanceGroup"

11 years agoadd missing gettextutils imports
Steven Hardy [Tue, 2 Jul 2013 13:22:24 +0000 (14:22 +0100)]
add missing gettextutils imports

Several files use the "_" function, but don't import it from
gettextutils - this leads to a "NameError: name '_' is not
defined" error if you try to import/use the modules from an
interactive python shell or standalone test-code.

Change-Id: Id28b45d71eeda64fbfaa6234b12cff45fcd2ce40

11 years agoengine : perform periodic tasks with stored stack_context
Steven Hardy [Tue, 2 Jul 2013 13:17:30 +0000 (14:17 +0100)]
engine : perform periodic tasks with stored stack_context

The metadata update needs to be performed with the stored stack_context,
not the admin_context, which contains no credentials to e.g authenticate
with nova

Fixes bug #1196618

Change-Id: I0451604535a731de5ad57d2d52cdf183e58cf7b0

11 years agoMerge "engine : resume support for nested stacks"
Jenkins [Tue, 2 Jul 2013 09:46:09 +0000 (09:46 +0000)]
Merge "engine : resume support for nested stacks"

11 years agoMerge "api : Add actions resume support"
Jenkins [Tue, 2 Jul 2013 09:46:01 +0000 (09:46 +0000)]
Merge "api : Add actions resume support"

11 years agoMerge "Add resume support to Instance"
Jenkins [Tue, 2 Jul 2013 09:15:20 +0000 (09:15 +0000)]
Merge "Add resume support to Instance"

11 years agoimplement stack metadata
Liang Chen [Sun, 23 Jun 2013 15:17:18 +0000 (23:17 +0800)]
implement stack metadata

make metadata and delete/update policy accessible to stack resource

Blueprint stack-metadata

Change-Id: I2251b730ce7fb70b8b28f065479b9b6a7e8a1f33

11 years agoMerge "Get rid of template caching in resources"
Jenkins [Tue, 2 Jul 2013 05:16:07 +0000 (05:16 +0000)]
Merge "Get rid of template caching in resources"

11 years agoMerge "Explicitly pass old json snippet to update"
Jenkins [Tue, 2 Jul 2013 05:14:40 +0000 (05:14 +0000)]
Merge "Explicitly pass old json snippet to update"

11 years agoRework associations from vpc to quantum resources.
Steve Baker [Mon, 20 May 2013 22:01:16 +0000 (10:01 +1200)]
Rework associations from vpc to quantum resources.

Metadata cannot be used to store the relationships between VPC
resources and the underlying quantum resources, since this prevents
VPC or Subnet refs from being passed in as parameters.

This rework results in no state being stored in metadata. Route table
relationships are inferred from the template. An assumption is made that
the quantum router associatiated with the VPC will have the same name
as the quantum net. The easiest way of ensuring that is to creat the VPC
in a different Heat stack.

Fixes bug: #1165050
Fixes bug: #1165056
Fixes bug: #1166779
Fixes bug: #1166787

Change-Id: I6fb087bfc63ed13703089a16ed57858e6911b7d8

11 years agoTolerate 404 on user delete.
Steve Baker [Tue, 2 Jul 2013 03:17:34 +0000 (15:17 +1200)]
Tolerate 404 on user delete.

Fixes bug: #1196707

Change-Id: I70f43f2f789b2c36983d0cecf41604e89268c09e

11 years agoMerge "Add initial resume logic to engine"
Jenkins [Mon, 1 Jul 2013 22:36:45 +0000 (22:36 +0000)]
Merge "Add initial resume logic to engine"

11 years agoMerge "check content type in JSONRequestDeserializer"
Jenkins [Mon, 1 Jul 2013 22:14:43 +0000 (22:14 +0000)]
Merge "check content type in JSONRequestDeserializer"

11 years agoMerge "destroy failed instances created by auto scaling"
Jenkins [Mon, 1 Jul 2013 11:45:46 +0000 (11:45 +0000)]
Merge "destroy failed instances created by auto scaling"

11 years agoGet rid of template caching in resources
Zane Bitter [Thu, 13 Jun 2013 18:03:28 +0000 (20:03 +0200)]
Get rid of template caching in resources

This is no longer used anywhere.

Change-Id: I3b320a1668f5ba532b01b289222a56126c19c8aa

11 years agoExplicitly pass old json snippet to update
Zane Bitter [Thu, 13 Jun 2013 18:03:28 +0000 (20:03 +0200)]
Explicitly pass old json snippet to update

Don't use state cached in the resource.

Change-Id: Ib6c7830ce40b72c9cd388c054fcb41ff93963b4d

11 years agotests : remove duplicate suspend tests
Steven Hardy [Mon, 1 Jul 2013 10:27:26 +0000 (11:27 +0100)]
tests : remove duplicate suspend tests

A previous patch erroneously introduced two copies of the same
tests, remove the stackServiceTest duplicates as they already
exist in the stackServiceSuspendResumeTest testcase.

Change-Id: Iec00fd8dbe0d0bc6b2718b03cc4fe40b9ba481c3

11 years agoAdd resume support to InstanceGroup
Steven Hardy [Fri, 28 Jun 2013 15:53:44 +0000 (16:53 +0100)]
Add resume support to InstanceGroup

Change-Id: I491bfd3475e12c2e5b8675d92d93f855b590423b
blueprint: stack-suspend-resume

11 years agoengine : resume support for nested stacks
Steven Hardy [Fri, 28 Jun 2013 13:51:54 +0000 (14:51 +0100)]
engine : resume support for nested stacks

Change-Id: I82da46c6f18c035927c6305968470db613d7229c
blueprint: stack-suspend-resume

11 years agoapi : Add actions resume support
Steven Hardy [Fri, 28 Jun 2013 10:15:40 +0000 (11:15 +0100)]
api : Add actions resume support

Add support for resume action using a similar interface to that provided
by nova for the admin actions extension.  So a body of {'resume': None}
will suspend the stack, see http://api.openstack.org/api-ref.html

Change-Id: I89bbafbe2f8b2503f241659a36b83ceab605e763
blueprint: stack-suspend-resume

11 years agoAdd resume support to Instance
Steven Hardy [Fri, 28 Jun 2013 13:43:04 +0000 (14:43 +0100)]
Add resume support to Instance

Change-Id: Id02c74243ff5fcd67ec8f6200ee7969b34f2faa1
blueprint: stack-suspend-resume

11 years agoAdd initial resume logic to engine
Steven Hardy [Fri, 28 Jun 2013 10:10:32 +0000 (11:10 +0100)]
Add initial resume logic to engine

Change-Id: I08e08bb3edbc83ecce831c8fe7ad718ad7476634
blueprint: stack-suspend-resume

11 years agoMerge "Fixup handle_create backup restore."
Jenkins [Mon, 1 Jul 2013 09:58:33 +0000 (09:58 +0000)]
Merge "Fixup handle_create backup restore."

11 years agoMerge "install "_" via gettextutils"
Jenkins [Mon, 1 Jul 2013 09:22:32 +0000 (09:22 +0000)]
Merge "install "_" via gettextutils"

11 years agoMerge "add GET /{tenant_id}/stacks/detail to Heat API"
Jenkins [Mon, 1 Jul 2013 07:26:08 +0000 (07:26 +0000)]
Merge "add GET /{tenant_id}/stacks/detail to Heat API"

11 years agodestroy failed instances created by auto scaling
Liang Chen [Sat, 29 Jun 2013 13:45:43 +0000 (21:45 +0800)]
destroy failed instances created by auto scaling

The ResourceFailure exception was silently eaten when raise_on_error
set to False. This patch handles the ResourceFailure exception locally
when raise_on_error set to False - called from ScalingPolicy alarm
(i.e. runtime adjustment). So users will not be charged for orphaned
instances. But they can still see what happened through event list.

Fixes bug #1192554

Change-Id: I01106d2e443dbc37af066b04ef7064bfa5656675

11 years agoExpose resource dependency required_by to REST API.
Steve Baker [Thu, 20 Jun 2013 02:17:20 +0000 (14:17 +1200)]
Expose resource dependency required_by to REST API.

Each resource can generate a list of names of resources which
require this resource as a direct (non transitive) dependency.

This information is returned in the list as well as the show REST calls
so that a diagram of the running stack can be built with a single
request.

Other uses of exposing this information is:
- template authors debugging their own template dependency issues
- integration tests validating template dependencies

Change-Id: Ibe62345afa87e49c4e2152a5fcb74e5ee003124e

11 years agoinstall "_" via gettextutils
Liang Chen [Sun, 30 Jun 2013 06:42:41 +0000 (14:42 +0800)]
install "_" via gettextutils

avoid using two separate sets of translation messages when
HEAT_LOCALEDIR environment variable presents.

Fixes bug #1196184

Change-Id: Ief773b9f2674909de461e2b07f1b07d3c66521cc

11 years agoengine : simplify resource state check
Steven Hardy [Fri, 28 Jun 2013 15:43:41 +0000 (16:43 +0100)]
engine : simplify resource state check

Simplify the test to check the resource is in a COMPLETE state
(other than DELETE_COMPLETE), so we don't have to update this for
every new action state which gets added

Change-Id: I91286d3d0464b1a71dafd01ac209ea7ded259875

11 years agoengine : remove unnecessary default check_*_complete functions
Steven Hardy [Fri, 28 Jun 2013 09:22:29 +0000 (10:22 +0100)]
engine : remove unnecessary default check_*_complete functions

The default behavior in _do_action is to declare COMPLETE if the
check_$action_complete is not implemented, so these default
functions returning True are not needed.

Change-Id: I2fd1b7da1d39d23abc81e1b9171b053e547b2ec6

11 years agoFixup handle_create backup restore.
Patrick Woods [Thu, 27 Jun 2013 19:44:54 +0000 (14:44 -0500)]
Fixup handle_create backup restore.

The handle_create did not retrieve the volume_id
correctly and the check_create_complete
needs to handle the restoring-backup status.

Also modify and add support for restoring-backup
status test cases for success and error.
The additional FakeVolumeFromBackup will force
the inital status to be checked by the method
check_create_complete in volume.py.

Fix bug 1195403.

Change-Id: I60bf4f9f90be1058d0fb400aa3778d0448b1a898

11 years agoRemove comments from requirements.txt (workaround pbr bug)
Steven Hardy [Fri, 28 Jun 2013 14:50:01 +0000 (15:50 +0100)]
Remove comments from requirements.txt (workaround pbr bug)

Workaround for pbr bug #1191923

Change-Id: I4960216834cf624d8bcf88e7a3e7485cf5ace85f

11 years agoadd GET /{tenant_id}/stacks/detail to Heat API
Liang Chen [Fri, 28 Jun 2013 14:27:59 +0000 (22:27 +0800)]
add GET /{tenant_id}/stacks/detail to Heat API

Enables the building of a useful dashboard interface for Heat stacks
without looping through stacks returned from "/{tenant_id}/stacks/"
to fetch the detailed data.

Fixes bug #1191117

Change-Id: I06b1100873de462c69302e43259df13104cad79f

11 years agoMerge "Add suspend support to InstanceGroup"
Jenkins [Fri, 28 Jun 2013 13:59:59 +0000 (13:59 +0000)]
Merge "Add suspend support to InstanceGroup"

11 years agoAdd suspend support to InstanceGroup
Steven Hardy [Wed, 26 Jun 2013 16:39:46 +0000 (17:39 +0100)]
Add suspend support to InstanceGroup

Change-Id: I46baf7fd17e6701e2ce07f823fff4c8fb4dd3dfe
blueprint: stack-suspend-resume

11 years agoMerge "autoscaling : Fix issue when scaling to zero instances"
Jenkins [Fri, 28 Jun 2013 10:41:06 +0000 (10:41 +0000)]
Merge "autoscaling : Fix issue when scaling to zero instances"

11 years agoMerge "Add editor backup files to .gitignore."
Jenkins [Fri, 28 Jun 2013 02:14:46 +0000 (02:14 +0000)]
Merge "Add editor backup files to .gitignore."

11 years agoFixup assert_has_keys.
Robert Collins [Thu, 27 Jun 2013 10:10:51 +0000 (22:10 +1200)]
Fixup assert_has_keys.

This test helper had awkward code that didn't support users in
debugging tests, as it didn't report enough information. Additionally
some style issues were present, which I fixed up at the same time.

Fix bug 1195239.

Change-Id: If07e54ae0f2db1152dfea2012ff39b0291955dd7

11 years agoautoscaling : Fix issue when scaling to zero instances
Steven Hardy [Thu, 27 Jun 2013 15:20:56 +0000 (16:20 +0100)]
autoscaling : Fix issue when scaling to zero instances

As noted in https://review.openstack.org/#/c/34564, we lack
coverage of the scenario when MinSize is 0 and we scale down
to zero instances then try to do a delete.  We do the wrong
thing here, by creating a GroupedInstance object with name '',
and this would also result in an incorrect update to the
LoadBalancer.  Fix is to reset the resource_id to None.

Fixes bug #1195364
Change-Id: Ie3a52badf35f7e660de9a8f38635d2a09463123a

11 years agoMerge "engine : autoscaling refactor Instance list->object logic"
Jenkins [Thu, 27 Jun 2013 14:41:28 +0000 (14:41 +0000)]
Merge "engine : autoscaling refactor Instance list->object logic"

11 years agoMerge "api : Add ReST actions POST method"
Jenkins [Thu, 27 Jun 2013 14:06:57 +0000 (14:06 +0000)]
Merge "api : Add ReST actions POST method"

11 years agoMerge "engine : parser.Stack create general stack_task"
Jenkins [Thu, 27 Jun 2013 14:06:50 +0000 (14:06 +0000)]
Merge "engine : parser.Stack create general stack_task"

11 years agoMerge "engine : suspend support for nested stacks"
Jenkins [Thu, 27 Jun 2013 14:06:43 +0000 (14:06 +0000)]
Merge "engine : suspend support for nested stacks"

11 years agoMerge "Raise suitable exception when stack validation fails"
Jenkins [Thu, 27 Jun 2013 13:02:46 +0000 (13:02 +0000)]
Merge "Raise suitable exception when stack validation fails"

11 years agoMerge "Add suspend support to Instance"
Jenkins [Thu, 27 Jun 2013 11:15:01 +0000 (11:15 +0000)]
Merge "Add suspend support to Instance"

11 years agoMerge "Add MinLength, MaxLength to properties schema"
Jenkins [Thu, 27 Jun 2013 10:50:06 +0000 (10:50 +0000)]
Merge "Add MinLength, MaxLength to properties schema"

11 years agoAdd editor backup files to .gitignore.
Robert Collins [Thu, 27 Jun 2013 10:12:23 +0000 (22:12 +1200)]
Add editor backup files to .gitignore.

Change-Id: I004d10e61c8e192c058a5d1ba5a09f7c676d278b

11 years agoMerge "Add dependency between RouterGateway and RouterInterface"
Jenkins [Thu, 27 Jun 2013 04:20:08 +0000 (04:20 +0000)]
Merge "Add dependency between RouterGateway and RouterInterface"

11 years agoMerge "Initial provider templates"
Jenkins [Thu, 27 Jun 2013 03:33:47 +0000 (03:33 +0000)]
Merge "Initial provider templates"

11 years agoPorts depend on the subnets in the same network.
Steve Baker [Thu, 27 Jun 2013 01:39:30 +0000 (13:39 +1200)]
Ports depend on the subnets in the same network.

Without establishing this implicit dependency, the following
sometimes occurs:
- Ports get assigned to instances without any IP address
- Stack delete fails as ports still exist in subnets.

Fixes bug: #1192371

Change-Id: Ifd892cef4c2eebaea5568afbd320c8865c845d70

11 years agoAdd dependency between RouterGateway and RouterInterface
Steve Baker [Tue, 21 May 2013 01:21:11 +0000 (13:21 +1200)]
Add dependency between RouterGateway and RouterInterface

When a template has a RouterGateway and a RouterInterface with the
same router_id, there is an implicit dependency on delete where
the gateway must be deleted before the interface.

This is implemented by overiding add_dependencies in RouterGateway
and looking in the stack for RouterInterface resource to depend on.

Fixed bug: #1182266

Change-Id: I90ebe987c1d6e81f8936ceb81b81376c7e0d497a

11 years agoAdd MinLength, MaxLength to properties schema
Vijendar Komalla [Wed, 26 Jun 2013 17:39:49 +0000 (12:39 -0500)]
Add MinLength, MaxLength to properties schema

Change-Id: Ib0970e76e32f6e6d3c7f79b60c5fb3b7384fdb5d

11 years agoMerge "Pass before and after snippets to template diff"
Jenkins [Wed, 26 Jun 2013 19:24:58 +0000 (19:24 +0000)]
Merge "Pass before and after snippets to template diff"

11 years agoMerge "Changes for HOT hello world template processing"
Jenkins [Wed, 26 Jun 2013 19:15:53 +0000 (19:15 +0000)]
Merge "Changes for HOT hello world template processing"

11 years agoengine : autoscaling refactor Instance list->object logic
Steven Hardy [Wed, 26 Jun 2013 13:59:29 +0000 (14:59 +0100)]
engine : autoscaling refactor Instance list->object logic

Refactor the conversion from instance list to GroupedInstance
objects, so it's not contained by the handle_delete and can be
reused (e.g for suspend)

Change-Id: Iaaf8b7568e06fa50b03348ad3bb61a7da91be127

11 years agoapi : Add ReST actions POST method
Steven Hardy [Fri, 10 May 2013 17:29:04 +0000 (18:29 +0100)]
api : Add ReST actions POST method

Initial support for an actions subpath, which will be the access-point
for non-lifecycle operations on stacks, e.g suspend/resume

This adds support for a  POST method for /actions subpath, so that requests for
specific actions may be made, using a similar interface to that provided by
nova for the admin actions extension.  So a body of {'suspend': None}
will suspend the stack, see http://api.openstack.org/api-ref.html

blueprint: stack-suspend-resume
Change-Id: I180345c818cbfa38ac8c17caba2c0f64adabf6be