]> review.fuel-infra Code Review - openstack-build/heat-build.git/log
openstack-build/heat-build.git
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 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 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 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 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."

11 years agoMerge "Enable service validate-template for hot template"
Jenkins [Fri, 26 Jul 2013 01:18:47 +0000 (01:18 +0000)]
Merge "Enable service validate-template for hot template"

11 years agoMerge "Fix cloud_watch delete when the watchrule is not found."
Jenkins [Thu, 25 Jul 2013 23:05:13 +0000 (23:05 +0000)]
Merge "Fix cloud_watch delete when the watchrule is not found."

11 years agoMerge "Skip RSA generation during tests"
Jenkins [Thu, 25 Jul 2013 23:05:06 +0000 (23:05 +0000)]
Merge "Skip RSA generation during tests"

11 years agoAuto-document all resource types.
Steve Baker [Thu, 25 Jul 2013 21:04:12 +0000 (09:04 +1200)]
Auto-document all resource types.

There are separate pages for OpenStack, AWS and Rackspace resources.

Currently the following sources are used for resource type documentation:
- the docstring for the resource class
- properties_schema
- attributes_schema

Change-Id: I901d227e8bc2a7209f216b57653da77a4f500e47

11 years agoSphinx extension to generate resource documentation.
Steve Baker [Thu, 25 Jul 2013 20:52:13 +0000 (08:52 +1200)]
Sphinx extension to generate resource documentation.

Implements a resourcepages directive which generates resource type
documentation for any type that matches the specified type prefix.

For example:
.. resourcepages:: OS::

Implements blueprint generate-resource-docs

Change-Id: I3b2c94a766686e17e2bdbe8be27657decd65bb3e

11 years agoMerge "Always convert AllowedValues to a list"
Jenkins [Thu, 25 Jul 2013 15:49:51 +0000 (15:49 +0000)]
Merge "Always convert AllowedValues to a list"

11 years agoEnable service validate-template for hot template
JUN JIE NAN [Wed, 24 Jul 2013 05:48:02 +0000 (13:48 +0800)]
Enable service validate-template for hot template

Get `Resources' and `Description' for hot or cfn template instead of
the raw one.

Change-Id: I54ac8a9905634529b641fe322eee4c10e587bac3
Fixes: bug #1204061
11 years agoMerge "Teach ScalingPolicy and Restarter to create signed urls"
Jenkins [Thu, 25 Jul 2013 12:36:58 +0000 (12:36 +0000)]
Merge "Teach ScalingPolicy and Restarter to create signed urls"

11 years agoSkip RSA generation during tests
Thomas Herve [Thu, 25 Jul 2013 11:19:46 +0000 (13:19 +0200)]
Skip RSA generation during tests

Use a static key in Rackspace cloud server tests, to remove the overhead
of the SSH keys generation.

Change-Id: Ief14f034fb86e42ecbb801b9d4f82ff27fb35588

11 years agoMerge "Generate a template from a resource implementation."
Jenkins [Thu, 25 Jul 2013 11:03:44 +0000 (11:03 +0000)]
Merge "Generate a template from a resource implementation."

11 years agoMerge "Make the current alarms use the signal action"
Jenkins [Thu, 25 Jul 2013 10:29:02 +0000 (10:29 +0000)]
Merge "Make the current alarms use the signal action"

11 years agoMerge "Add an API for passing a signal through to a resource"
Jenkins [Thu, 25 Jul 2013 10:28:55 +0000 (10:28 +0000)]
Merge "Add an API for passing a signal through to a resource"

11 years agoAlways convert AllowedValues to a list
Zane Bitter [Thu, 25 Jul 2013 09:33:41 +0000 (11:33 +0200)]
Always convert AllowedValues to a list

Passing e.g. a string as the AllowedValues list can appear to work, since
str.__contains__() performs a substring match. It's better to fail fast, so
convert AllowedValues to a list regardless of its initial type.

Change-Id: I74783e6a7c1743ead3f086116dd3850afeb7a028

11 years agoAdd some docs for intrinsic functions.
Angus Salkeld [Thu, 25 Jul 2013 04:53:51 +0000 (14:53 +1000)]
Add some docs for intrinsic functions.

And start the template guide.

DocImpact
Change-Id: I4dc32dfc20b464e09b78f192b6f4931ce812fd4b

11 years agoFix cloud_watch delete when the watchrule is not found.
Angus Salkeld [Thu, 25 Jul 2013 04:30:39 +0000 (14:30 +1000)]
Fix cloud_watch delete when the watchrule is not found.

Also start using mock instead of mox.

Change-Id: Ia3baf510ffeafc73c42da7e2830819055c244c51

11 years agoMerge "Replace urllib2 with requests in urlfetch module"
Jenkins [Thu, 25 Jul 2013 00:59:13 +0000 (00:59 +0000)]
Merge "Replace urllib2 with requests in urlfetch module"

11 years agoTeach ScalingPolicy and Restarter to create signed urls
Angus Salkeld [Tue, 23 Jul 2013 12:55:43 +0000 (22:55 +1000)]
Teach ScalingPolicy and Restarter to create signed urls

This is so they will be able to support ceilometer webhooks

blueprint watch-ceilometer
Change-Id: I18b0dc22f95957a66f2287a7bd70613c8c8db3d6

11 years agoMake the current alarms use the signal action
Angus Salkeld [Fri, 5 Jul 2013 00:35:36 +0000 (10:35 +1000)]
Make the current alarms use the signal action

blueprint watch-ceilometer
Change-Id: I7560650f207411ffaf14242bb74cdaf8acd0cf4b

11 years agoAdd an API for passing a signal through to a resource
Angus Salkeld [Thu, 25 Jul 2013 00:36:50 +0000 (10:36 +1000)]
Add an API for passing a signal through to a resource

Reuse the /waitcondition functionality to provide a
/signal pathway.
a signal could be a waitcondition or an alarm.

blueprint watch-ceilometer
Change-Id: Ia9da222b8072ee0dc65bf137e7d3eb7fa4d944f5

11 years agoGenerate a template from a resource implementation.
Andrew Plunk [Fri, 12 Jul 2013 14:56:07 +0000 (09:56 -0500)]
Generate a template from a resource implementation.

Using the properties and attributes schema in a
specified resource, generate a template where
all properties have been mapped as parameters,
and all attributes have beeen mapped as outputs.

blueprint resource-template

Change-Id: I0f494f039e91daf482385f225f8551826cace485

11 years agoMerge "Fix loguserdata output to file issue"
Jenkins [Wed, 24 Jul 2013 18:15:16 +0000 (18:15 +0000)]
Merge "Fix loguserdata output to file issue"

11 years agoMerge "HOT parameter validation model translation"
Jenkins [Wed, 24 Jul 2013 07:58:28 +0000 (07:58 +0000)]
Merge "HOT parameter validation model translation"

11 years agoremove remote_error and corresponding try...catches.
Jianing YANG [Fri, 19 Jul 2013 14:08:41 +0000 (22:08 +0800)]
remove remote_error and corresponding try...catches.

Implements blueprint exception-formatting

Change-Id: I94306e2b70c7fa77d1b5a1177fede88262f8bbc9

11 years agoReplace urllib2 with requests in urlfetch module
Davanum Srinivas [Wed, 24 Jul 2013 02:08:20 +0000 (22:08 -0400)]
Replace urllib2 with requests in urlfetch module

simple replacement of urllib2.urlopen with requests.get

Fixes LP# 1201534

Change-Id: Ia0a2ed3b092e22246339a42f432086dd05f788fa

11 years agoHOT parameter validation model translation
JUN JIE NAN [Tue, 23 Jul 2013 00:47:38 +0000 (08:47 +0800)]
HOT parameter validation model translation

Translate hot parameters into heat parameter model.

Change-Id: I6733be7c13e2e9fdbed27d5c21044fb5f457ed17
Implements: blueprint hot-parameters

11 years agoMerge "Only use a token for openstack client operations."
Jenkins [Wed, 24 Jul 2013 00:40:28 +0000 (00:40 +0000)]
Merge "Only use a token for openstack client operations."

11 years agomake heat-api return a parsable error
Jianing YANG [Thu, 11 Jul 2013 15:17:52 +0000 (23:17 +0800)]
make heat-api return a parsable error

add a wsgi middleware (faultwrap) that catches exceptions
and transform those exceptions into a parsable format
according to 'Content-Type' of the request.

Fixes bug 1158598
Implements blueprint exception-formatting

Change-Id: Iacdb8cc119b250ff1e39c99b7a7f66fd4c35e7d9

11 years agoMerge "api : Implement OnFailure option to cfn API CreateStack call"
Jenkins [Tue, 23 Jul 2013 12:35:33 +0000 (12:35 +0000)]
Merge "api : Implement OnFailure option to cfn API CreateStack call"

11 years agoFix loguserdata output to file issue
guohliu [Tue, 23 Jul 2013 10:08:03 +0000 (18:08 +0800)]
Fix loguserdata output to file issue

Fixes bug #1191685

Change-Id: I2a02b490e45c3cb838243b9dad62cc52b609b336

11 years agoMerge "Use new style classes"
Jenkins [Tue, 23 Jul 2013 09:43:19 +0000 (09:43 +0000)]
Merge "Use new style classes"

11 years agoMerge "Add resource for Rackspace Cloud Servers."
Jenkins [Tue, 23 Jul 2013 05:00:29 +0000 (05:00 +0000)]
Merge "Add resource for Rackspace Cloud Servers."

11 years agoUse new style classes
Angus Salkeld [Tue, 23 Jul 2013 01:26:05 +0000 (11:26 +1000)]
Use new style classes

Change a couple of old style classes into the newer styled ones.

Change-Id: Ide3bbcd2d24f949a2a550fcc2210617f34c8cd0b

11 years agoMerge "Add `default` attribute in hot parameter definition"
Jenkins [Mon, 22 Jul 2013 18:27:40 +0000 (18:27 +0000)]
Merge "Add `default` attribute in hot parameter definition"

11 years agoMerge "Add missing Aapche 2.0 license headers (H102)"
Jenkins [Mon, 22 Jul 2013 18:20:58 +0000 (18:20 +0000)]
Merge "Add missing Aapche 2.0 license headers (H102)"

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 agoapi : Implement OnFailure option to cfn API CreateStack call
Steven Hardy [Fri, 5 Jul 2013 11:25:50 +0000 (12:25 +0100)]
api : Implement OnFailure option to cfn API CreateStack call

blueprint createstack-onfailure

Change-Id: I8466493fbeba2023916f2d92814c1cc8f2827e51

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 agoAdd `default` attribute in hot parameter definition
JUN JIE NAN [Mon, 22 Jul 2013 04:22:12 +0000 (12:22 +0800)]
Add `default` attribute in hot parameter definition

So `default' in hot is translated to `Default' in cfn

Change-Id: Ifd50dbb993dd0cb177b0e16652c6ef17d12cd2e5
Fixes: bug #1199311
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