]> review.fuel-infra Code Review - openstack-build/heat-build.git/log
openstack-build/heat-build.git
11 years agoMerge "Fix H501 Do not use locals() for string formatting"
Jenkins [Thu, 8 Aug 2013 04:47:57 +0000 (04:47 +0000)]
Merge "Fix H501 Do not use locals() for string formatting"

11 years agoMerge "Implement an "Action in progress" error."
Jenkins [Thu, 8 Aug 2013 03:43:16 +0000 (03:43 +0000)]
Merge "Implement an "Action in progress" error."

11 years agoFix H501 Do not use locals() for string formatting
Steve Baker [Thu, 8 Aug 2013 02:03:03 +0000 (14:03 +1200)]
Fix H501 Do not use locals() for string formatting

This is triggered in the pep8 check when using the syncronised
requirements versions.

Change-Id: If0e38fecaf32d4ba6ec9755f2f11c675acf6d20b

11 years agoMerge "Refactor useful nova functions for re-use."
Jenkins [Wed, 7 Aug 2013 20:00:11 +0000 (20:00 +0000)]
Merge "Refactor useful nova functions for re-use."

11 years agoImplement an "Action in progress" error.
Jason Dunsmore [Thu, 1 Aug 2013 17:37:29 +0000 (12:37 -0500)]
Implement an "Action in progress" error.

Raises an "Action in progress" error if an action is in progress when
another action is issued.

Fixes bug #1207032

Change-Id: I2b6fd92cfa4b93ac2531dd3d76bf2dfc01e58c50

11 years agoDon't cache data from the API that could change.
Jason Dunsmore [Fri, 2 Aug 2013 20:19:30 +0000 (15:19 -0500)]
Don't cache data from the API that could change.

The Cloud Server resource caches Nova server objects, which could change
between Heat calls.  Heat should get new data from the Nova API on each
run.

Fixes bug #1208559

Change-Id: I7dd8a99745cf8a3aab974468acae8dc1f85369ee

11 years agoMerge "Rename Quantum to Neutron"
Jenkins [Wed, 7 Aug 2013 13:00:38 +0000 (13:00 +0000)]
Merge "Rename Quantum to Neutron"

11 years agoMerge "Add help option to Config Settings"
Jenkins [Wed, 7 Aug 2013 13:00:32 +0000 (13:00 +0000)]
Merge "Add help option to Config Settings"

11 years agoMerge "Fix test cases pass dict schema directly as parameter schema object"
Jenkins [Wed, 7 Aug 2013 13:00:30 +0000 (13:00 +0000)]
Merge "Fix test cases pass dict schema directly as parameter schema object"

11 years agoMerge "DB models and migration scripts for soft delete"
Jenkins [Wed, 7 Aug 2013 13:00:28 +0000 (13:00 +0000)]
Merge "DB models and migration scripts for soft delete"

11 years agoStop copying UUIDStub, put it into tests.utils
Angus Salkeld [Wed, 7 Aug 2013 10:24:17 +0000 (20:24 +1000)]
Stop copying UUIDStub, put it into tests.utils

Change-Id: Ice52f4294df5575579795eecfcbae9748f252e2e

11 years agoFix test cases pass dict schema directly as parameter schema object
JUN JIE NAN [Thu, 1 Aug 2013 03:14:12 +0000 (11:14 +0800)]
Fix test cases pass dict schema directly as parameter schema object

Filter the parameter schema snippet through a Template object and out
the other side completely unchanged before passing it to Parameter.

Implements blueprint hot-parameters

Change-Id: I8c3dd99c1a2f460f50a92565d9098c70c9e77a8a

11 years agoRename Quantum to Neutron
Steven Dake [Wed, 7 Aug 2013 02:41:26 +0000 (19:41 -0700)]
Rename Quantum to Neutron

quantumclient is gone upstream and has been replaced by neutronclient.

This patch retains the OS::Quantum::XX namespace

Fixes: bug #1197208
Change-Id: Id48f9598ea1884132d411ad533770ae49494102b

11 years agoMerge "Don't assign "error" variable twice."
Jenkins [Wed, 7 Aug 2013 04:54:56 +0000 (04:54 +0000)]
Merge "Don't assign "error" variable twice."

11 years agoMerge "Add the enabled property to the ceilometer alarm."
Jenkins [Wed, 7 Aug 2013 03:06:12 +0000 (03:06 +0000)]
Merge "Add the enabled property to the ceilometer alarm."

11 years agoMerge "Returns text error when instance validation fails"
Jenkins [Wed, 7 Aug 2013 02:14:41 +0000 (02:14 +0000)]
Merge "Returns text error when instance validation fails"

11 years agoAdd the enabled property to the ceilometer alarm.
Angus Salkeld [Mon, 5 Aug 2013 12:46:40 +0000 (22:46 +1000)]
Add the enabled property to the ceilometer alarm.

Change-Id: Ic0f96be74f36884868dad52b0bfe494406e031d9

11 years agoRefactor useful nova functions for re-use.
Randall Burt [Tue, 6 Aug 2013 22:07:26 +0000 (17:07 -0500)]
Refactor useful nova functions for re-use.

Refactor handy nova functions out of Instance and into a helper
module. This allows alternate compute implementations to use
this functionality without having to subclass.

Change-Id: I529e2d1324981de7336264b5c697f1944668d013

11 years agoDB models and migration scripts for soft delete
Liang Chen [Thu, 25 Jul 2013 09:45:45 +0000 (17:45 +0800)]
DB models and migration scripts for soft delete

Only apply soft-delete on stack table for now. event, user_creds
and raw_template records will remain unchanged after stack
deletion, and those 'deleted' data can be cleaned up by the
purge_delete command provided in follow patch.

blueprint event-persistence

Change-Id: I173cc6037615ff252968297981c36e51cb9d3fd3

11 years agoReturns text error when instance validation fails
Jianing YANG [Thu, 25 Jul 2013 12:47:31 +0000 (20:47 +0800)]
Returns text error when instance validation fails

Since heat now is able to return parsable errors by middleware, we
don't need to return jsonfied error strings here.

Fixes Bug 1204582

Change-Id: Id3d68b9996ad67df0e25c6db5754f73bfa1e8830

11 years agoMerge "Fix test cases pass dict as template object directly."
Jenkins [Tue, 6 Aug 2013 08:51:20 +0000 (08:51 +0000)]
Merge "Fix test cases pass dict as template object directly."

11 years agoAdd Babel missing requirement
Clint Byrum [Tue, 6 Aug 2013 02:58:29 +0000 (19:58 -0700)]
Add Babel missing requirement

Babel is required by heat.openstack.common.gettextutils but was only in
test-requirements.txt.

Fixes bug #1208673

Change-Id: Iaffcbc861e64caa37d64335f0fb6e568672ffc52

11 years agoFix test cases pass dict as template object directly.
JUN JIE NAN [Mon, 5 Aug 2013 03:34:17 +0000 (11:34 +0800)]
Fix test cases pass dict as template object directly.

Pass an actual Template object instead of a dictionary to Parameters

Implements blueprint hot-parameters

Change-Id: I2c101ca3eaeb918b093b49069842c0d5c349ffc8

11 years agoMerge "Rename: VALUES to ALLOWED_VALUES, PATTERN to ALLOWED_PATTERN"
Jenkins [Tue, 6 Aug 2013 00:23:34 +0000 (00:23 +0000)]
Merge "Rename: VALUES to ALLOWED_VALUES, PATTERN to ALLOWED_PATTERN"

11 years agoMerge "Change token name from context."
Jenkins [Tue, 6 Aug 2013 00:23:33 +0000 (00:23 +0000)]
Merge "Change token name from context."

11 years agoMerge "Small tweaks to recreation of remote errors"
Jenkins [Mon, 5 Aug 2013 21:52:13 +0000 (21:52 +0000)]
Merge "Small tweaks to recreation of remote errors"

11 years agoMerge "Revert "Replace part_handler.py with write-files cloudinit mechanism""
Jenkins [Mon, 5 Aug 2013 19:47:09 +0000 (19:47 +0000)]
Merge "Revert "Replace part_handler.py with write-files cloudinit mechanism""

11 years agoDon't assign "error" variable twice.
Jason Dunsmore [Mon, 5 Aug 2013 18:56:42 +0000 (13:56 -0500)]
Don't assign "error" variable twice.

Fixes bug #1208567

Change-Id: Iaf22f68935d833d749615f998f402fe997e8e029

11 years agoMerge "Include the resource and action in ResourceFailure exceptions"
Jenkins [Mon, 5 Aug 2013 18:37:37 +0000 (18:37 +0000)]
Merge "Include the resource and action in ResourceFailure exceptions"

11 years agoMerge "Unit tests: Don't raise ResourceFailure directly"
Jenkins [Mon, 5 Aug 2013 18:37:30 +0000 (18:37 +0000)]
Merge "Unit tests: Don't raise ResourceFailure directly"

11 years agoMerge "unit tests: Add a handle_delete method to GenericResource"
Jenkins [Mon, 5 Aug 2013 18:37:23 +0000 (18:37 +0000)]
Merge "unit tests: Add a handle_delete method to GenericResource"

11 years agoChange token name from context.
Andrew Plunk [Thu, 25 Jul 2013 19:04:06 +0000 (14:04 -0500)]
Change token name from context.

Remove password auth from pyrax to conform with
the changes going through the engine regarding
not using a password. Previous commit was an
incorrect branch with a bug.

blueprint pyrax-token-auth

Change-Id: I47cd00199133b88a2343b12c847635c726452629

11 years agoRevert "Replace part_handler.py with write-files cloudinit mechanism"
Steven Dake [Fri, 2 Aug 2013 01:05:05 +0000 (18:05 -0700)]
Revert "Replace part_handler.py with write-files cloudinit mechanism"

Ubuntu has 0.6 of cloudinit, and write-files doesn't work on that
distro.  Ubuntu does not intend to update cloudinit in their LTS release
to 0.7.

This reverts commit 621f5bfdbab46498b37cdc4865afa57e0f0498e0.
Fixes: Bug #1207088
Change-Id: If80863883afee28bdde6dd506826ec5710cc0308

11 years agoMerge "Rackspace: Don't raise ResourceFailure exceptions"
Jenkins [Mon, 5 Aug 2013 16:48:34 +0000 (16:48 +0000)]
Merge "Rackspace: Don't raise ResourceFailure exceptions"

11 years agoMerge "Resource: Clean up exception handling and error messages"
Jenkins [Mon, 5 Aug 2013 16:39:46 +0000 (16:39 +0000)]
Merge "Resource: Clean up exception handling and error messages"

11 years agoRename: VALUES to ALLOWED_VALUES, PATTERN to ALLOWED_PATTERN
JUN JIE NAN [Thu, 1 Aug 2013 03:38:34 +0000 (11:38 +0800)]
Rename: VALUES to ALLOWED_VALUES, PATTERN to ALLOWED_PATTERN

Rename VALUES to ALLOWED_VALUES, PATTERN to ALLOWED_PATTERN in
parameters and modify related references in other modules

Implements blueprint hot-parameters

Change-Id: Iad018f6a9fc1166aa2c5d94720faf997dc7e98a3

11 years agoMerge "Remove support for eventlet 0.9.16"
Jenkins [Mon, 5 Aug 2013 09:58:33 +0000 (09:58 +0000)]
Merge "Remove support for eventlet 0.9.16"

11 years agoMerge "Make Volumes work with the default AvailabilityZone"
Jenkins [Mon, 5 Aug 2013 01:27:32 +0000 (01:27 +0000)]
Merge "Make Volumes work with the default AvailabilityZone"

11 years agoRemove support for eventlet 0.9.16
Dirk Mueller [Sun, 4 Aug 2013 15:49:40 +0000 (17:49 +0200)]
Remove support for eventlet 0.9.16

We require 0.12.0 or newer, so 0.9.16 compatibility code
is no longer needed.

Change-Id: Idda955b64ce625ea30cc18366df01cc024cf26d1

11 years agoSmall tweaks to recreation of remote errors
Luis A. Garcia [Tue, 23 Jul 2013 23:59:32 +0000 (23:59 +0000)]
Small tweaks to recreation of remote errors

The patch adds heat common exceptions to the list of trusted exceptions
that can be re-spawned across RPC calls (this is the default behavior
for all OS components). The patch adds the corresponding package to the
declaration of the allowed_rpc_exception_modules as well as to the conf
sample.

Change-Id: Ib89d0bd4dd8f5240a9f3e973b8a04d0a5bfe2193

11 years agoEnable localizable REST API responses via the Accept-Language header
Luis A. Garcia [Thu, 18 Jul 2013 00:49:49 +0000 (00:49 +0000)]
Enable localizable REST API responses via the Accept-Language header

Add support for doing language resolution for a request, based on the
Accept-Language HTTP header. Using the lazy gettext functionality, from
oslo gettextutils, it is possible to use the resolved language to
translate exception messages to the user requested language and
return that translation from the API.

The patch removes individually imported _() so they don't replace the
one installed service-wide.

Also, it adds the ability to fully re-create a remote error
with the same kwargs with which it was originally created, so that we
can translate it and show it to the user.

Partially implements bp user-locale-api.

Change-Id: I63edc8463836bfff257daa8a2c66ed5d3a444254

11 years agoInclude the resource and action in ResourceFailure exceptions
Zane Bitter [Fri, 2 Aug 2013 12:48:54 +0000 (14:48 +0200)]
Include the resource and action in ResourceFailure exceptions

An update operation performs 3 different kinds of actions on resources
(update, create and delete), and we may want to handle failures differently
depending on the action.

Change-Id: Icf60a1aea882251150a1507183cf2d23da92675f

11 years agoUnit tests: Don't raise ResourceFailure directly
Zane Bitter [Fri, 2 Aug 2013 16:58:00 +0000 (18:58 +0200)]
Unit tests: Don't raise ResourceFailure directly

It's meant to be a wrapper around other exceptions that's invoked by
top-level resource operations; don't use it as an all-purpose exception.

Change-Id: I1e0376a4a00fc3f1114b9bc76bbb1d5d0d98b166

11 years agounit tests: Add a handle_delete method to GenericResource
Zane Bitter [Thu, 1 Aug 2013 13:26:38 +0000 (15:26 +0200)]
unit tests: Add a handle_delete method to GenericResource

This allows us to stub it in unit tests.

Change-Id: I9f8ec45e080efb481676be24541a75c16422a765

11 years agoRackspace: Don't raise ResourceFailure exceptions
Zane Bitter [Fri, 2 Aug 2013 16:55:30 +0000 (18:55 +0200)]
Rackspace: Don't raise ResourceFailure exceptions

ResourceFailure is meant to be a wrapper around other exceptions that's
invoked by top-level resource operations; don't use it as an all-purpose
exception.

Change-Id: Ie15cad32ee31beca9b0f7e9a9473ced9956a2e3b

11 years agoSync gettextutils from oslo
Luis A. Garcia [Tue, 23 Jul 2013 20:32:51 +0000 (20:32 +0000)]
Sync gettextutils from oslo

The oslo changes necessary for delayed translation were refactored in
oslo. This patch set brings in the refactored changes, implemented
under the same change-id mentioned below.

Partially implements bp user-locale-api

Change-Id: I27640a3c8b255be51bc6396d238098bd25af61ec

11 years agoResource: Clean up exception handling and error messages
Zane Bitter [Fri, 2 Aug 2013 13:33:07 +0000 (15:33 +0200)]
Resource: Clean up exception handling and error messages

Change-Id: Ibd93e8b22bca708ced8ed8c29760fef73a649255

11 years agoMerge "Rename rackspace server ImageName, Flavor, UserData."
Jenkins [Fri, 2 Aug 2013 09:22:36 +0000 (09:22 +0000)]
Merge "Rename rackspace server ImageName, Flavor, UserData."

11 years agoAdd help option to Config Settings
Dirk Mueller [Fri, 19 Jul 2013 21:04:14 +0000 (23:04 +0200)]
Add help option to Config Settings

This way it is possible to generate the config
files from the used config values automatically
(like done e.g. in other OpenStack modules)

Change-Id: I2683743330a8d3589637d967e16b5ba130bd45e1

11 years agoMerge "Allow the Ceilometer Alarm to be used with cfn-push-stats"
Jenkins [Fri, 2 Aug 2013 03:26:34 +0000 (03:26 +0000)]
Merge "Allow the Ceilometer Alarm to be used with cfn-push-stats"

11 years agoMerge "Add the AutoScalingGroupName to the server Tags"
Jenkins [Fri, 2 Aug 2013 03:26:27 +0000 (03:26 +0000)]
Merge "Add the AutoScalingGroupName to the server Tags"

11 years agoRename rackspace server ImageName, Flavor, UserData.
Steve Baker [Sun, 28 Jul 2013 21:23:54 +0000 (09:23 +1200)]
Rename rackspace server ImageName, Flavor, UserData.

Justifications for each rename are as follows:
- ImageName -> image: the Nova API uses imageRef, however heat does
  a lookup from image name to id, so 'image' covers either name or id.
- Flavor -> flavor: the Nova API uses flavorRef, but in the future heat
  should be able to do a lookup on the flavor name as well, so calling the
  attribute 'flavor' will API future-proof that change.
- UserData -> user_data: maps directly to Nova API

Change-Id: I1327f7b33d744908714dfb7a4caeb6ec306196e7

11 years agoCall cfn-create-aws-symlinks in rackspace servers.
Steve Baker [Sun, 28 Jul 2013 22:51:23 +0000 (10:51 +1200)]
Call cfn-create-aws-symlinks in rackspace servers.

This will also be required for arch, gentoo and opensuse
when the pip install prefix is known.

Change-Id: If789c603c3677c88d30e018cf6ca71925bad9511

11 years agoStop delete polling after status == DELETED.
Steve Baker [Mon, 29 Jul 2013 22:56:52 +0000 (10:56 +1200)]
Stop delete polling after status == DELETED.

A rackspace server can be in status DELETED for some minutes
until a 404 is raised. This change speeds the deletion of a stack
by considering the resource deleted as soon as the status changes
to DELETED.

Change-Id: Id81d3099ef6b41b374973074b065b20c2acc9667

11 years agoMake Volumes work with the default AvailabilityZone
Zane Bitter [Thu, 1 Aug 2013 15:22:18 +0000 (17:22 +0200)]
Make Volumes work with the default AvailabilityZone

The most common way to specify an AvailabiltyZone for a volume is to grab
it from the Instance it is going to be attached to:

    "AvailabilityZone" : {"Fn::GetAtt": ["WikiDatabase",
                                         "AvailabilityZone"]},

But the first unit tests to check the value passed to Cinder for the AZ,
introduced in 134b11ccd145f982b7173bc9a5d0f1bc3e8eef8c, just forced the
value instead of obtaining it from the Instance.

Add a unit test to check the common case, and fix the resulting error (an
empty string is returned instead of None).

Fixes bug #1207416

Change-Id: I83ea2f3f0c417eb9e97abdf27a9eaffd441cb070

11 years agoAllow the Ceilometer Alarm to be used with cfn-push-stats
Angus Salkeld [Wed, 31 Jul 2013 11:24:26 +0000 (21:24 +1000)]
Allow the Ceilometer Alarm to be used with cfn-push-stats

This is for when:
- Ceilometer does not support the desired custom metric
- Easier migration to Ceilometer Alarms (reuse most of old templates)

A watchrule is create within the Ceilometer alarm, but it is marked
as belonging to Ceilometer. This is used in the follow situation:
- So we can figure out that we don't need to run the watch periodic task
- when we receive new sample data we can forward the data to Ceilometer

blueprint watch-ceilometer
Change-Id: I0d672e69a522a23158805d75378f4bfe631b4bf3

11 years agoAdd the AutoScalingGroupName to the server Tags
Angus Salkeld [Wed, 31 Jul 2013 11:28:46 +0000 (21:28 +1000)]
Add the AutoScalingGroupName to the server Tags

Then use that to find the correct watch rule.

blueprint watch-ceilometer
Change-Id: I11f1556c1a55a06e1bf47e0baa156e0765f711ce

11 years agoDon't use a static uuid for the stack_id in ceilometer_alarm
Angus Salkeld [Wed, 31 Jul 2013 06:11:15 +0000 (16:11 +1000)]
Don't use a static uuid for the stack_id in ceilometer_alarm

This just not necessary and is evil.

Change-Id: Ib0fbaba7f709a7aaaac987913d44e9c8481c2795

11 years agoMerge "Rackspace database resource output is null"
Jenkins [Thu, 1 Aug 2013 07:11:34 +0000 (07:11 +0000)]
Merge "Rackspace database resource output is null"

11 years agoMerge "Use dummy_context() for rackspace server test"
Jenkins [Thu, 1 Aug 2013 07:11:27 +0000 (07:11 +0000)]
Merge "Use dummy_context() for rackspace server test"

11 years agoMerge "Use subsections in resource doc generation."
Jenkins [Thu, 1 Aug 2013 00:34:15 +0000 (00:34 +0000)]
Merge "Use subsections in resource doc generation."

11 years agoMerge "Remove password auth from pyrax"
Jenkins [Thu, 1 Aug 2013 00:23:11 +0000 (00:23 +0000)]
Merge "Remove password auth from pyrax"

11 years agoMerge "Fix for bad content inside Resources element"
Jenkins [Wed, 31 Jul 2013 17:42:22 +0000 (17:42 +0000)]
Merge "Fix for bad content inside Resources element"

11 years agoMerge "Clean up the attributes module"
Jenkins [Wed, 31 Jul 2013 16:57:22 +0000 (16:57 +0000)]
Merge "Clean up the attributes module"

11 years agoRemove password auth from pyrax
Andrew Plunk [Thu, 25 Jul 2013 19:04:06 +0000 (14:04 -0500)]
Remove password auth from pyrax

Remove password auth from pyrax to conform with
the changes going through the engine regarding
not using a password.

blueprint pyrax-token-auth
Change-Id: I4ecc43d138f7cd71d41a7a3cd8ee29a821065383

11 years agoMove the random_name() function from loadbalancer to utils
Angus Salkeld [Wed, 31 Jul 2013 05:42:21 +0000 (15:42 +1000)]
Move the random_name() function from loadbalancer to utils

(handy to make a random stack_name)

Change-Id: I79055e2eba7aa2dd9ebcc09fbe4de87fe4483df5

11 years agoClean up the attributes module
Zane Bitter [Wed, 31 Jul 2013 11:04:47 +0000 (13:04 +0200)]
Clean up the attributes module

Get rid of a lot of boilerplate and dead code.

Change-Id: I3d7c1b0fc1e3754335d05bfc2e1a8e3e6c88ca8c

11 years agoMerge "Assign rackspace server name from physical_resource_name."
Jenkins [Wed, 31 Jul 2013 09:45:12 +0000 (09:45 +0000)]
Merge "Assign rackspace server name from physical_resource_name."

11 years agoMerge "Support any distribution without UserData/MetaData"
Jenkins [Wed, 31 Jul 2013 09:43:31 +0000 (09:43 +0000)]
Merge "Support any distribution without UserData/MetaData"

11 years agoMerge "Replace rackspace PublicKey property with key_name."
Jenkins [Wed, 31 Jul 2013 07:39:16 +0000 (07:39 +0000)]
Merge "Replace rackspace PublicKey property with key_name."

11 years agoMerge "Replace part_handler.py with write-files cloudinit mechanism"
Jenkins [Wed, 31 Jul 2013 06:14:59 +0000 (06:14 +0000)]
Merge "Replace part_handler.py with write-files cloudinit mechanism"

11 years agoMerge "Tolerate an actual boolean for NoEcho."
Jenkins [Wed, 31 Jul 2013 02:03:44 +0000 (02:03 +0000)]
Merge "Tolerate an actual boolean for NoEcho."

11 years agoUse dummy_context() for rackspace server test
Steve Baker [Sun, 28 Jul 2013 21:00:48 +0000 (09:00 +1200)]
Use dummy_context() for rackspace server test

Change-Id: I0576b345b85cf9ef7558f84a7df16c8d187453c1

11 years agoAssign rackspace server name from physical_resource_name.
Steve Baker [Sun, 28 Jul 2013 20:43:17 +0000 (08:43 +1200)]
Assign rackspace server name from physical_resource_name.

The default implementation of physical_resource_name() assigns a name
which includes some context and randomness.

physical_resource_name() is overridden to optionally allow the 'name'
property to specify the physical name. The same technique is used in
OS::Swift::Container, and 'name' matches the property in the underlying
Nova API.

Change-Id: I5769513a4461d5067dca516d0f03e02bb444f379

11 years agoReplace rackspace PublicKey property with key_name.
Steve Baker [Sat, 27 Jul 2013 04:06:44 +0000 (16:06 +1200)]
Replace rackspace PublicKey property with key_name.

This fetches a keypair that is registered with nova and
uses the public key, instead of having to specify the entire
public key as a launch parameter.

Tested to work on instances launched in DFW.

This shares the keypair lookup method with AWS::EC2::Instance but
adopts the property name of the underlying nova API. This property name
will align with the yet-to-be-written OS::Nova::Server.

Change-Id: I2dceb93a4544e5f99d246233f240fe99667efadf

11 years agoTolerate an actual boolean for NoEcho.
Steve Baker [Mon, 29 Jul 2013 00:54:24 +0000 (12:54 +1200)]
Tolerate an actual boolean for NoEcho.

Change-Id: Icb0242b6e3e926f6ba27946c8491eacf204d70a8

11 years agoReplace part_handler.py with write-files cloudinit mechanism
Steven Dake [Tue, 30 Jul 2013 01:18:19 +0000 (18:18 -0700)]
Replace part_handler.py with write-files cloudinit mechanism

part-handler.py was acting as a write-files mechanism.  Instead just
use the write-files mechanism directly to avoid the complexities of
the part-handler.

blueprint: use-cloudinit-write
Change-Id: I6e80c344743d6fd2fa9a49507de6d50e3d9eea73

11 years agoMerge "Initialize resources to DELETE-COMPLETE if missing during stack delete"
Jenkins [Tue, 30 Jul 2013 18:59:36 +0000 (18:59 +0000)]
Merge "Initialize resources to DELETE-COMPLETE if missing during stack delete"

11 years agoRackspace database resource output is null
Vijendar Komalla [Tue, 30 Jul 2013 18:52:17 +0000 (13:52 -0500)]
Rackspace database resource output is null

This change is a small correction to my previous change that was
already merged(bug #1204601). Below given code snippets show the
one line code change
(Please note the change in return statement in below code)

code before this change:
        for link in dbinstance.links:
            if link['rel'] == 'self':
                return dbinstance.links[0]['href']

code with this change:
        for link in dbinstance.links:
            if link['rel'] == 'self':
                return link['href']

Fixes Bug #1204601

Change-Id: Ia81722eb3877e15e1c472e94ed845f3425949b68

11 years agoFix for bad content inside Resources element
Davanum Srinivas [Wed, 24 Jul 2013 03:14:16 +0000 (23:14 -0400)]
Fix for bad content inside Resources element

In validate_template check if we have a dict before we try to
get 'Type'. We also need to check the response back from
validate_template to see if there are any 'Error'(s) and present
that back to the user.

Fixes LP# 1204157

Change-Id: I0f636a6a84f6afc9a0aff3089e2bd13a8f88a470

11 years agoInitialize resources to DELETE-COMPLETE if missing during stack delete
Randall Burt [Fri, 26 Jul 2013 16:18:23 +0000 (11:18 -0500)]
Initialize resources to DELETE-COMPLETE if missing during stack delete

If the parent stack is being deleted and a given resource cannot be found in
the data store, initialize its state to DELETE:COMPLETE instead of
INIT:COMPLETE.

fixes bug 1204268

Change-Id: I5074d63928c3b39fe6ad85dc6af1d02db777acc8

11 years agoRackspace database resource output is null
Vijendar Komalla [Mon, 29 Jul 2013 22:19:50 +0000 (17:19 -0500)]
Rackspace database resource output is null

current implementation of rackspace database resource
_resolve_attribute method assumes that clouddatabase object's
hostname and href are set to correct values and just returns
them, but that assumption is not correct. With this change,
hostname/href is retrived if it was not set already.

Fixes Bug #1204601

Change-Id: Ifca44237e20210b5ff1fc1b28f1f8408f5672ae4

11 years agoMerge "Functions documentation cleanup."
Jenkins [Mon, 29 Jul 2013 12:41:10 +0000 (12:41 +0000)]
Merge "Functions documentation cleanup."

11 years agoClarify text in heat/tests/templates/README
Clint Byrum [Mon, 15 Jul 2013 18:13:16 +0000 (11:13 -0700)]
Clarify text in heat/tests/templates/README

Fixing punctuation and re-wording to make the meaning of some sentences
more clear.

Change-Id: I3fad879e4d3c60bc0a04bc67d86d4d9866bbdaaf

11 years agoMerge "Add rest endpoints for resource template generation."
Jenkins [Mon, 29 Jul 2013 00:23:20 +0000 (00:23 +0000)]
Merge "Add rest endpoints for resource template generation."

11 years agoMerge "Add Cloud Server support for RHEL and CentOS."
Jenkins [Mon, 29 Jul 2013 00:23:13 +0000 (00:23 +0000)]
Merge "Add Cloud Server support for RHEL and CentOS."

11 years agoMerge "Print before exiting"
Jenkins [Mon, 29 Jul 2013 00:13:10 +0000 (00:13 +0000)]
Merge "Print before exiting"

11 years agoMerge "Allow template resource use outside of Environment"
Jenkins [Mon, 29 Jul 2013 00:04:41 +0000 (00:04 +0000)]
Merge "Allow template resource use outside of Environment"

11 years agoMerge "Add a Ceilometer alarm resource"
Jenkins [Mon, 29 Jul 2013 00:04:39 +0000 (00:04 +0000)]
Merge "Add a Ceilometer alarm resource"

11 years agoUse subsections in resource doc generation.
Steve Baker [Fri, 26 Jul 2013 23:40:50 +0000 (11:40 +1200)]
Use subsections in resource doc generation.

This allows any part of the resource type documentation
to be hyperlinked to.

Properties and attributes have also been moved above the syntax
examples.

Change-Id: Ie0fa2a1134be283a6c99ac2effcc869304d28f09

11 years agoFunctions documentation cleanup.
Steve Baker [Fri, 26 Jul 2013 23:37:32 +0000 (11:37 +1200)]
Functions documentation cleanup.

- Switched to definition lists for parameters to be consistent
  with generated resource docs
- Make consistent the layout of literal blocks and returns
- Other minor grammatical and layout fixes

Change-Id: I62eb179ce2a20024d2195cc7eb88e2e79bd4ae68

11 years agoPrint before exiting
Davanum Srinivas [Fri, 26 Jul 2013 11:53:54 +0000 (07:53 -0400)]
Print before exiting

Remove "break" as it is unreachable. Move the logging statement
to before we exit as well.

Change-Id: I8a5c3e8fd2cf0532e15cc7eb9920a2ca7428b28f

11 years agoAdd Cloud Server support for RHEL and CentOS.
Jason Dunsmore [Fri, 26 Jul 2013 19:31:12 +0000 (14:31 -0500)]
Add Cloud Server support for RHEL and CentOS.

Fixes bug #1205465

Change-Id: Iebe182680a3504eb6c918421d1433475bb3da8c5

11 years agoSupport any distribution without UserData/MetaData
Jason Dunsmore [Wed, 24 Jul 2013 20:07:41 +0000 (15:07 -0500)]
Support any distribution without UserData/MetaData

A template without UserData or MetaData sections should work with any
distribution, regardless of whether or not a setup script exists for
it in the Cloud Servers resource. The setup script only exists so that
the UserData and MetaData sections will configure the server.

Bug 1204650

Change-Id: Ie795ff63a5a15916c67d96782ea01d604d4768b0

11 years agoAllow template resource use outside of Environment
Randall Burt [Wed, 10 Jul 2013 18:19:32 +0000 (13:19 -0500)]
Allow template resource use outside of Environment

In addition to using TemplateResource as a means to override another Resource
implementation, this allows template authors to specify a template url
as the Type of resource directly. This allows a user to define new Resource
implementations in addition to overriding existing ones via Environments.

implements blueprint provider-resource

Change-Id: I11cf94dc062fcce0e4ff08765696447fc2411a7f

11 years agoAdd rest endpoints for resource template generation.
Andrew Plunk [Fri, 12 Jul 2013 14:56:07 +0000 (09:56 -0500)]
Add rest endpoints for resource template generation.

Add api endpoints for generating a template based
on a resource implementation.

blueprint resource-template

Change-Id: Iebebad70befd1df6cd8989538cbb61350a17bc23

11 years agoAdd a Ceilometer alarm resource
Angus Salkeld [Fri, 26 Jul 2013 06:13:25 +0000 (16:13 +1000)]
Add a Ceilometer alarm resource

Note: this gets the signed url from the resources capable of getting
signals by calling Fn::GetAtt('AlarmUrl')

blueprint watch-ceilometer
Change-Id: If8822f7c9bfc2113b6ee57e1faff2ab4f8ff3b16

11 years agoFix a timing sensive cloudwatch testcase
Angus Salkeld [Fri, 26 Jul 2013 02:34:09 +0000 (12:34 +1000)]
Fix a timing sensive cloudwatch testcase

This was leaving a watchrule in the db and causing
a test case in test_engine_service.py to fail.
Also cleanup the created stacks.

Change-Id: If8451291b4f17c797b72fd3ab51793d51c2c97ad

11 years agoMerge "Auto-document all resource types."
Jenkins [Fri, 26 Jul 2013 02:13:33 +0000 (02:13 +0000)]
Merge "Auto-document all resource types."

11 years agoMerge "Sphinx extension to generate resource documentation."
Jenkins [Fri, 26 Jul 2013 02:00:25 +0000 (02:00 +0000)]
Merge "Sphinx extension to generate resource documentation."