]> review.fuel-infra Code Review - openstack-build/heat-build.git/log
openstack-build/heat-build.git
11 years agoAdd resource for Rackspace Cloud Servers.
Jason Dunsmore [Mon, 22 Jul 2013 16:00:51 +0000 (11:00 -0500)]
Add resource for Rackspace Cloud Servers.

Blueprint rackspace-cloud-servers-provider

Change-Id: Ie6659e0e8b519180ce5973cc798c914b56a95426

11 years agoMerge "Migrate all tests to use dummy_context."
Jenkins [Mon, 22 Jul 2013 13:39:37 +0000 (13:39 +0000)]
Merge "Migrate all tests to use dummy_context."

11 years agoMerge "Reset the the watch_rule.last_evaluated on start up"
Jenkins [Mon, 22 Jul 2013 09:30:12 +0000 (09:30 +0000)]
Merge "Reset the the watch_rule.last_evaluated on start up"

11 years agoMerge "Refactor the code in heat/tests/test_volume.py"
Jenkins [Mon, 22 Jul 2013 09:28:05 +0000 (09:28 +0000)]
Merge "Refactor the code in heat/tests/test_volume.py"

11 years agoMerge "Handle 'detaching' state of Volume"
Jenkins [Mon, 22 Jul 2013 09:21:14 +0000 (09:21 +0000)]
Merge "Handle 'detaching' state of Volume"

11 years agoMerge "Update openstack.common.config"
Jenkins [Mon, 22 Jul 2013 06:54:50 +0000 (06:54 +0000)]
Merge "Update openstack.common.config"

11 years agoMerge "add docs from the heat wiki"
Jenkins [Mon, 22 Jul 2013 06:53:21 +0000 (06:53 +0000)]
Merge "add docs from the heat wiki"

11 years agoRefactor the code in heat/tests/test_volume.py
Zhang Lei (Sneeze) [Mon, 22 Jul 2013 02:25:53 +0000 (10:25 +0800)]
Refactor the code in heat/tests/test_volume.py

The test code in heat/tests/test_volume.py has lots of
duplicated code and logic.
Extract them into common method and reuse the methods.

Change-Id: I5053c53a3eebf5f43cddfb96ee63a1f4f8615e76

11 years agoHandle 'detaching' state of Volume
Zhang Lei (Sneeze) [Mon, 22 Jul 2013 02:08:06 +0000 (10:08 +0800)]
Handle 'detaching' state of Volume

When detaching volume, the state of volume changed from 'in-use'
to 'detaching', and then from 'detaching' to 'available'.
The code used to ignore 'detaching' state by assuming the volume
has been detached when its state is not 'in-use' any more.
Now we take care 'detaching' state and raise error if detaching
failed.

Fixes bug #1197747

Change-Id: I555eea19409142ccb306c0cceaf7c55e71385bc6

11 years agoReset state before resource recreation
JUN JIE NAN [Thu, 18 Jul 2013 07:39:10 +0000 (15:39 +0800)]
Reset state before resource recreation

So the destroyed resource can be recreated, and HARestarted main logic
resource destory and create can work.

Change-Id: Id79988560e105c254d304e30d598427a2bbc5b26
Fixes: bug #1202492
11 years agoMerge "Add a py33 tox environment"
Jenkins [Mon, 22 Jul 2013 00:52:44 +0000 (00:52 +0000)]
Merge "Add a py33 tox environment"

11 years agoMigrate all tests to use dummy_context.
Steve Baker [Tue, 16 Jul 2013 23:18:39 +0000 (11:18 +1200)]
Migrate all tests to use dummy_context.

Change-Id: Idc00ccbd254aca2c64c1bcb376fe7a3aab4d1cb4

11 years agoMerge "Configure standalone pipelines for cfn and cloudwatch."
Jenkins [Mon, 22 Jul 2013 00:29:36 +0000 (00:29 +0000)]
Merge "Configure standalone pipelines for cfn and cloudwatch."

11 years agoMerge "Set role headers from ec2 authentication."
Jenkins [Mon, 22 Jul 2013 00:28:24 +0000 (00:28 +0000)]
Merge "Set role headers from ec2 authentication."

11 years agoMerge "Set tenant headers from ec2 authentication."
Jenkins [Mon, 22 Jul 2013 00:28:18 +0000 (00:28 +0000)]
Merge "Set tenant headers from ec2 authentication."

11 years agoMerge "Only create the period watch task if there is a watch in the stack"
Jenkins [Mon, 22 Jul 2013 00:12:20 +0000 (00:12 +0000)]
Merge "Only create the period watch task if there is a watch in the stack"

11 years agoMerge "Wrap the watch rule start in a method"
Jenkins [Mon, 22 Jul 2013 00:02:28 +0000 (00:02 +0000)]
Merge "Wrap the watch rule start in a method"

11 years agoAdd a py33 tox environment
Dirk Mueller [Fri, 19 Jul 2013 21:02:11 +0000 (23:02 +0200)]
Add a py33 tox environment

This way one can optionally run tests against Python 3.x

Change-Id: I578cc6f2e933fbdc469dd14d23e9cf5b9f1d246f

11 years agoMerge "Move url_for into heat_keystoneclient."
Jenkins [Fri, 19 Jul 2013 08:32:34 +0000 (08:32 +0000)]
Merge "Move url_for into heat_keystoneclient."

11 years agoMerge "Test utils dummy_context for tests that need one."
Jenkins [Fri, 19 Jul 2013 08:24:10 +0000 (08:24 +0000)]
Merge "Test utils dummy_context for tests that need one."

11 years agoReset the the watch_rule.last_evaluated on start up
Angus Salkeld [Fri, 19 Jul 2013 06:06:20 +0000 (16:06 +1000)]
Reset the the watch_rule.last_evaluated on start up

This is so we don't fire off alarms when the engine has not been running.

bug 1202552

Change-Id: Ief258fd601b48e2495ac69091a942f23a019e92c

11 years agoOnly create the period watch task if there is a watch in the stack
Angus Salkeld [Wed, 17 Jul 2013 02:46:59 +0000 (12:46 +1000)]
Only create the period watch task if there is a watch in the stack

This prevents unneccessary greentheads polling the db.

bug 1202031
Change-Id: I065955d03df543df40af285f87a7fd3dfa779413

11 years agoWrap the watch rule start in a method
Angus Salkeld [Fri, 19 Jul 2013 04:58:37 +0000 (14:58 +1000)]
Wrap the watch rule start in a method

This is the first step in making the watch task dependant on:
1) whether we even have an alarm in the stack
2) whether the alarm is a ceilometer alarm

The test confirms the current behaviour, which is a periodic task
is created whether or not a watch is in the stack.

bug 1202031
Change-Id: Iebb948f788270fca0dbef61a2e122fe3900d84b2

11 years agoConfigure standalone pipelines for cfn and cloudwatch.
Steve Baker [Fri, 19 Jul 2013 02:38:13 +0000 (14:38 +1200)]
Configure standalone pipelines for cfn and cloudwatch.

This allows waitconditions and cloud watch data to authenticate
using just the ec2token middleware. Stacks have been successfully launched
with a standalone heat onto an external grizzly openstack, including working
waitconditions and watch data.

This means that currently when in standalone mode, heat-cfn cannot
authenticate since it defaults to auth strategy keystone (and it appears
that auth strategy ec2 signing has not been implemented yet). This case
is sufficiently obscure that it most likely won't affect anyone at this
stage.

Implements blueprint heat-standalone

Change-Id: I7d096b11e70c234d0b2322c93bf5f4d4e6b01b4f

11 years agoSet role headers from ec2 authentication.
Steve Baker [Fri, 19 Jul 2013 02:34:42 +0000 (14:34 +1200)]
Set role headers from ec2 authentication.

Without this roles are not available in the context when
ec2token middleware is used on its own.

Change-Id: I1214e44c588f547ee6f90f0f71a085f786e7ea7f

11 years agoSet tenant headers from ec2 authentication.
Steve Baker [Thu, 18 Jul 2013 21:48:40 +0000 (09:48 +1200)]
Set tenant headers from ec2 authentication.

Without this, ec2token middleware on its own doesn't set enough
headers to perform heat requests.

Change-Id: I7a0867196741c0df222d491fb1bfbe203158032c

11 years agoUpdate openstack.common.config
Émilien Macchi [Wed, 10 Jul 2013 14:01:00 +0000 (16:01 +0200)]
Update openstack.common.config

- Add generator.py from Oslo
- Add notifier from Oslo
- Add generator bash script used by other projects to generate configuration
files
- Update openstack-common.conf file

The patch https://review.openstack.org/#/c/36493/ needs
to be merged before this one. I'll rebase this patch and
generate the heat configuration.

Fix bug #1183275

Change-Id: Id7f24874b7e3e07d06dcf14bc381b9d630f67fc8

11 years agoHandle InstanceType change in Instance.handle_update
Thomas Herve [Tue, 16 Jul 2013 09:12:04 +0000 (11:12 +0200)]
Handle InstanceType change in Instance.handle_update

Make a resize API call against Nova if the InstanceType of an Instance
resource is change via a resource update.

Implements: blueprint instance-resize-update-stack
Change-Id: Ic4ee82edec842ee756b104a36dfef28bf3f89717

11 years agoMerge "Put pre-created resources in state INIT COMPLETE."
Jenkins [Thu, 18 Jul 2013 09:44:41 +0000 (09:44 +0000)]
Merge "Put pre-created resources in state INIT COMPLETE."

11 years agoMove url_for into heat_keystoneclient.
Steve Baker [Wed, 17 Jul 2013 02:30:58 +0000 (14:30 +1200)]
Move url_for into heat_keystoneclient.

This allows faking of this call, and removes one instance of
accessing the encapsulated keystone client.

Change-Id: Iad2a9aaad2e9f1dc3cbeb509c822a61427f12817

11 years agoTest utils dummy_context for tests that need one.
Steve Baker [Tue, 16 Jul 2013 23:09:02 +0000 (11:09 +1200)]
Test utils dummy_context for tests that need one.

Change-Id: I3c54ec76a4d2bfd03cf60b70c422bc6269af01c9

11 years agoMerge "Update oslo.notifier and always register options"
Jenkins [Thu, 18 Jul 2013 01:06:15 +0000 (01:06 +0000)]
Merge "Update oslo.notifier and always register options"

11 years agoPut pre-created resources in state INIT COMPLETE.
Steve Baker [Wed, 10 Jul 2013 03:05:53 +0000 (15:05 +1200)]
Put pre-created resources in state INIT COMPLETE.

Defines an INIT action, and make the resourse state
INIT COMPLETE before they are first created.

Calls to list resources will now include resource that have
not been created yet. This change allows resource topologies
to be displayed throughout the creation of the stack.

Implements blueprint build-heat-graph

Change-Id: I1d98ac21d44ff05183db38d49cbb3599e2812511

11 years agoadd docs from the heat wiki
Jeff Sloyer [Tue, 16 Jul 2013 18:36:06 +0000 (14:36 -0400)]
add docs from the heat wiki

updated index.rst to mimic the layout of the keystone docs
updated the structure for troubleshooting
ported howto guides from the heat wiki
ported the troubleshooting page from the heat wiki
updated the nav for the man pages and getting started
added docs for a cfn template and hot template

Change-Id: I14c1b0b6aa6ea3529c4de994851f7a798a3061bf

11 years agoMerge "Make sure that Tags on the InstanceGroup get passed to nova"
Jenkins [Wed, 17 Jul 2013 14:17:39 +0000 (14:17 +0000)]
Merge "Make sure that Tags on the InstanceGroup get passed to nova"

11 years agoMerge "Fix version and location of heat doc build"
Jenkins [Wed, 17 Jul 2013 14:05:53 +0000 (14:05 +0000)]
Merge "Fix version and location of heat doc build"

11 years agoMerge "Add a test for customizing AWS::EC2::Instance"
Jenkins [Wed, 17 Jul 2013 10:06:37 +0000 (10:06 +0000)]
Merge "Add a test for customizing AWS::EC2::Instance"

11 years agoMerge "Check missing parameters during stack create"
Jenkins [Wed, 17 Jul 2013 06:00:30 +0000 (06:00 +0000)]
Merge "Check missing parameters during stack create"

11 years agoMerge "Add tests for resource-data delete bug."
Jenkins [Wed, 17 Jul 2013 03:52:48 +0000 (03:52 +0000)]
Merge "Add tests for resource-data delete bug."

11 years agoMerge "Fix resource-data delete bug."
Jenkins [Wed, 17 Jul 2013 03:52:40 +0000 (03:52 +0000)]
Merge "Fix resource-data delete bug."

11 years agoAdd a test for customizing AWS::EC2::Instance
Christopher Armstrong [Tue, 16 Jul 2013 19:57:55 +0000 (19:57 +0000)]
Add a test for customizing AWS::EC2::Instance

InstanceGroup explicitly supports "custom" versions of AWS::EC2::Instance
(instead of directly using heat.engine.resources.instance.Instance)
but there was no unit test for that feature. Here we add one.

Change-Id: I490675c18734a61d27625ed3c76fb228e3fd1a9d

11 years agoAdd tests for resource-data delete bug.
Randall Burt [Wed, 17 Jul 2013 00:31:25 +0000 (19:31 -0500)]
Add tests for resource-data delete bug.

Fixes bug 1201974

Change-Id: Id5fdfcde8541e83f68406c67250b815b35fbbf54

11 years agoFix resource-data delete bug.
Jason Dunsmore [Tue, 16 Jul 2013 21:13:24 +0000 (16:13 -0500)]
Fix resource-data delete bug.

Bug 1201974.

Change-Id: I6c4692df71dc7188c0a9caf0ca6c26b67b4e168f

11 years agoFix version and location of heat doc build
Monty Taylor [Tue, 16 Jul 2013 15:01:47 +0000 (11:01 -0400)]
Fix version and location of heat doc build

pbr injects version information as part of the build_sphinx command,
so having it here is overkill.

Change-Id: I1f89e068da3e47b94434cb71db87704f9665dea2

11 years agoCheck missing parameters during stack create
Liang Chen [Tue, 16 Jul 2013 15:24:16 +0000 (23:24 +0800)]
Check missing parameters during stack create

Add missing parameters checking logic to Parameter validation. It
has to be optional, since template validation makes use of the same
Parameter validation code.

Fixes bug #1198670

Change-Id: I4c85ebf496b19999e47cf3838e6ca160aa194f20

11 years agoMerge "Test that Tags get converted into nova metadata"
Jenkins [Tue, 16 Jul 2013 02:31:32 +0000 (02:31 +0000)]
Merge "Test that Tags get converted into nova metadata"

11 years agoMerge "Let git ignore pydev project description files"
Jenkins [Tue, 16 Jul 2013 02:24:34 +0000 (02:24 +0000)]
Merge "Let git ignore pydev project description files"

11 years agoMerge "Don't reload haproxy and use ensureRunning=true"
Jenkins [Tue, 16 Jul 2013 02:15:23 +0000 (02:15 +0000)]
Merge "Don't reload haproxy and use ensureRunning=true"

11 years agoDon't reload haproxy and use ensureRunning=true
Angus Salkeld [Mon, 15 Jul 2013 23:08:13 +0000 (09:08 +1000)]
Don't reload haproxy and use ensureRunning=true

the ensureRunning option results in cfn-hup doing a restart and the
hook does a reload. these two options result in the failed state
of haproxy.

This patch rolls the two into "reload-or-restart", which is run from
cron.

bug 1201621
Change-Id: Idb42b3915cb86c613876b67abf1c6999972e19e2

11 years agoMerge "Align OpenStack client versions with project requirements."
Jenkins [Mon, 15 Jul 2013 13:01:38 +0000 (13:01 +0000)]
Merge "Align OpenStack client versions with project requirements."

11 years agoMerge "Add resource_data table for free-form key/value data."
Jenkins [Mon, 15 Jul 2013 12:58:53 +0000 (12:58 +0000)]
Merge "Add resource_data table for free-form key/value data."

11 years agoMake sure that Tags on the InstanceGroup get passed to nova
Angus Salkeld [Mon, 15 Jul 2013 01:10:03 +0000 (11:10 +1000)]
Make sure that Tags on the InstanceGroup get passed to nova

This is needed by the ceilometer alarmer.

Change-Id: Ia6e744b7dfa9fab518050174bcff0dae50c95040

11 years agoTest that Tags get converted into nova metadata
Angus Salkeld [Mon, 15 Jul 2013 05:57:12 +0000 (15:57 +1000)]
Test that Tags get converted into nova metadata

Change-Id: Iac464174d3e9b71ce01d9d7ee05d64e790b2f398

11 years agoAlign OpenStack client versions with project requirements.
Steve Baker [Mon, 15 Jul 2013 04:15:57 +0000 (16:15 +1200)]
Align OpenStack client versions with project requirements.

This brings heat into line with the consensus on how to specify
version range caps.

Fixes bug: #1200214

Change-Id: I14affc96c44f865fdd0516c1eb4eb59f1a808b82

11 years agoMerge "Cleanup and make HACKING.rst DRYer"
Jenkins [Mon, 15 Jul 2013 00:16:46 +0000 (00:16 +0000)]
Merge "Cleanup and make HACKING.rst DRYer"

11 years agoMerge "Suggest the use of tripelO images"
Jenkins [Sun, 14 Jul 2013 23:22:24 +0000 (23:22 +0000)]
Merge "Suggest the use of tripelO images"

11 years agoCleanup and make HACKING.rst DRYer
Joe Gordon [Fri, 12 Jul 2013 16:08:32 +0000 (17:08 +0100)]
Cleanup and make HACKING.rst DRYer

Reference the OpenStack hacking guide in HACKING.rst and remove
duplicate entries.  Add placeholder section for heat specific
rules.  heat specific rules can be created using hacking's local check
support.

Change-Id: Ib6967ae769bd73857abb7ef89368c407c8b22053

11 years agoMerge "Create implicit depends from gateway to public subnet."
Jenkins [Sat, 13 Jul 2013 05:11:57 +0000 (05:11 +0000)]
Merge "Create implicit depends from gateway to public subnet."

11 years agoMerge "Wait until quantum resources are deleted."
Jenkins [Fri, 12 Jul 2013 18:30:33 +0000 (18:30 +0000)]
Merge "Wait until quantum resources are deleted."

11 years agoMerge "avoid excessive database calls while loading events"
Jenkins [Fri, 12 Jul 2013 05:42:31 +0000 (05:42 +0000)]
Merge "avoid excessive database calls while loading events"

11 years agoMerge "Rename part-handler.py to part_handler.py so it can be imported"
Jenkins [Fri, 12 Jul 2013 05:31:20 +0000 (05:31 +0000)]
Merge "Rename part-handler.py to part_handler.py so it can be imported"

11 years agoMerge "engine : Allow loadbalancer resource to work with no key"
Jenkins [Fri, 12 Jul 2013 04:40:29 +0000 (04:40 +0000)]
Merge "engine : Allow loadbalancer resource to work with no key"

11 years agoMerge "Add Rackspace cloud loadbalancer resource."
Jenkins [Fri, 12 Jul 2013 04:38:54 +0000 (04:38 +0000)]
Merge "Add Rackspace cloud loadbalancer resource."

11 years agoMerge "provide test for nested stack error path"
Jenkins [Fri, 12 Jul 2013 04:34:55 +0000 (04:34 +0000)]
Merge "provide test for nested stack error path"

11 years agoMerge "Do not override FnGetAtt"
Jenkins [Fri, 12 Jul 2013 04:13:25 +0000 (04:13 +0000)]
Merge "Do not override FnGetAtt"

11 years agoengine : Allow loadbalancer resource to work with no key
Steven Hardy [Fri, 5 Jul 2013 18:56:10 +0000 (19:56 +0100)]
engine : Allow loadbalancer resource to work with no key

Fixes bug #1137526

Change-Id: Ieff9c0b52633d45ac5164d966a362e50d5f499df

11 years agoCreate implicit depends from gateway to public subnet.
Steve Baker [Fri, 12 Jul 2013 03:02:17 +0000 (15:02 +1200)]
Create implicit depends from gateway to public subnet.

Depend on any subnet in this template with the same network_id
as this network_id, as the gateway implicitly creates a port
on that subnet.

Fixes bug: #1195599

Change-Id: Ie850a82dce551d46341b1eef7f0208074b72453f

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 agoDo not override FnGetAtt
Randall Burt [Tue, 9 Jul 2013 18:56:16 +0000 (13:56 -0500)]
Do not override FnGetAtt

FnGetAtt is handled by the parent classes so no need to override

contributes to blueprint provider-resource

Change-Id: I3cb1bfc353fedf33336151f3ebc4d283330336a0

11 years agoAdd resource_data table for free-form key/value data.
Jason Dunsmore [Thu, 11 Jul 2013 21:26:06 +0000 (16:26 -0500)]
Add resource_data table for free-form key/value data.

This can be used to store arbitrary resource-specific data, such as
SSH keys.

Blueprint resource-data.

Change-Id: Ic148bd131f528a676904c8f37fd6deb936917152

11 years agoprovide test for nested stack error path
Liang Chen [Thu, 4 Jul 2013 16:45:01 +0000 (00:45 +0800)]
provide test for nested stack error path

Fixes bug #1195310

Change-Id: I3c77287c92068b305f61fa4cbe4846aa56ab50e0

11 years agoAdd Rackspace cloud loadbalancer resource.
Andrew Plunk [Wed, 3 Jul 2013 21:41:26 +0000 (16:41 -0500)]
Add Rackspace cloud loadbalancer resource.

Add a resource implementation of the Rackspace Cloud
Loadbalancer.

Change-Id: Ie62471424af3170c71e84bed69c603d243572fdb

11 years agoUpdate oslo.notifier and always register options
Julien Danjou [Wed, 10 Jul 2013 15:27:52 +0000 (17:27 +0200)]
Update oslo.notifier and always register options

This avoids registering multiple times the option if the registering
functions are called multiple path by different code paths. It's
necessary for the default configuration sample generator to have options
only registered once.

The update of oslo.notifier is needed to avoid it using the inexistant
$host option.

Change-Id: If31974d7ef7fdbf85a88e950ff06c60ccbd6c31d
Signed-off-by: Julien Danjou <julien@danjou.info>
11 years agoavoid excessive database calls while loading events
Liang Chen [Sun, 7 Jul 2013 06:43:45 +0000 (14:43 +0800)]
avoid excessive database calls while loading events

list_events constructs Event objects through Event.load, which causes
every event record previously loaded into memory to be reloaded again.
Furthermore, Event.load will also reload the associated stack, thus
all its resources and template. Another bad thing with that is
reloading a stack will lead to many extra stack static resolution
(including calls to nova to resovle Fn::GetAZs if it's referenced in
the template).

Fixes bug #1195793

Change-Id: I4f14c9a2a4f990b753a6e1405e27eb44c53537c9

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 agoRename part-handler.py to part_handler.py so it can be imported
Steven Dake [Wed, 10 Jul 2013 21:35:07 +0000 (14:35 -0700)]
Rename part-handler.py to part_handler.py so it can be imported

Change-Id: I9e7e3be2f3155f3e35b2defdb89e9d84a02ae7cb

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 agoLet git ignore pydev project description files
Liang Chen [Mon, 8 Jul 2013 07:23:17 +0000 (15:23 +0800)]
Let git ignore pydev project description files

Change-Id: Ice68ef444ae92c94a2f883a6db41359d0bcb9e71

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 agoSuggest the use of tripelO images
Angus Salkeld [Mon, 8 Jul 2013 03:03:45 +0000 (13:03 +1000)]
Suggest the use of tripelO images

Change-Id: I8dfb18fe3f52baea99ed34cc271241b8e24c8104

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