]> review.fuel-infra Code Review - openstack-build/heat-build.git/log
openstack-build/heat-build.git
11 years agoMerge "Revert "Implement an "Action in progress" error.""
Jenkins [Mon, 19 Aug 2013 15:38:59 +0000 (15:38 +0000)]
Merge "Revert "Implement an "Action in progress" error.""

11 years agoMerge "Add code from Oslo DB 96d1f887dda Part 2"
Jenkins [Mon, 19 Aug 2013 14:36:02 +0000 (14:36 +0000)]
Merge "Add code from Oslo DB 96d1f887dda Part 2"

11 years agoUse nova_utils for keypair validation
Steve Baker [Thu, 15 Aug 2013 23:39:42 +0000 (11:39 +1200)]
Use nova_utils for keypair validation

This removes unnecessary code.

Change-Id: Ide1d12a44213ffd8b7bd414eb00a4d12e3f6cc2a

11 years agoMove _check_resize to nova_utils
Steve Baker [Thu, 15 Aug 2013 23:38:19 +0000 (11:38 +1200)]
Move _check_resize to nova_utils

Refactoring as part of blueprint native-nova-instance.

Change-Id: Ice9a4541316ad04ac04b24ac877e0fc3fbeae9c8

11 years agoMove _deferred_server_statuses to nova_utils
Steve Baker [Thu, 15 Aug 2013 23:37:27 +0000 (11:37 +1200)]
Move _deferred_server_statuses to nova_utils

Refactoring as part of blueprint native-nova-instance.

Change-Id: I91234905a2647ed03fd105b0fe5964ce2319248b

11 years agoMove _delete_server to nova_utils
Steve Baker [Thu, 15 Aug 2013 23:23:49 +0000 (11:23 +1200)]
Move _delete_server to nova_utils

Refactoring as part of blueprint native-nova-instance.

Change-Id: Iaf3ab0333d891e6ac3bb07832a1acffd3e5ba43e

11 years agoMerge "Translate user-facing exception messages"
Jenkins [Sun, 18 Aug 2013 20:01:26 +0000 (20:01 +0000)]
Merge "Translate user-facing exception messages"

11 years agoMerge "Catch "FloatingIpPoolNotFound" in eip.py"
Jenkins [Sun, 18 Aug 2013 15:11:26 +0000 (15:11 +0000)]
Merge "Catch "FloatingIpPoolNotFound" in eip.py"

11 years agoMerge "Adding HOT str_replace and get_resource functions"
Jenkins [Sun, 18 Aug 2013 14:27:03 +0000 (14:27 +0000)]
Merge "Adding HOT str_replace and get_resource functions"

11 years agoRevert "Implement an "Action in progress" error."
Jason Dunsmore [Fri, 16 Aug 2013 18:05:38 +0000 (13:05 -0500)]
Revert "Implement an "Action in progress" error."

This reverts commit faf984cbb5e62980e025191450a02d30aae8e02d.

Multi-engine support is being re-designed to account for the use-case in
bug #1211276.

Fixes bug #1211276

Change-Id: Ief89dd6a9c5014752db8065037dd1dd03efe789e

11 years agoMerge "Make Event object independent of resource object"
Jenkins [Fri, 16 Aug 2013 14:46:29 +0000 (14:46 +0000)]
Merge "Make Event object independent of resource object"

11 years agoMerge "Updated LaunchConfig for AutoScaling UpdatePolicy"
Jenkins [Fri, 16 Aug 2013 14:29:43 +0000 (14:29 +0000)]
Merge "Updated LaunchConfig for AutoScaling UpdatePolicy"

11 years agoMerge "Tests for s3 and swift resources were extended"
Jenkins [Fri, 16 Aug 2013 14:28:28 +0000 (14:28 +0000)]
Merge "Tests for s3 and swift resources were extended"

11 years agoAdd code from Oslo DB 96d1f887dda Part 2
Alexander Gordeev [Thu, 1 Aug 2013 13:55:12 +0000 (17:55 +0400)]
Add code from Oslo DB 96d1f887dda Part 2

Oslo version 96d1f887dda21b43ba4376187f31953dee6f5273

This commit just adds new db related code from Oslo
into Heat without additional changes

Partially implements blueprint oslo-db-support

Change-Id: I97515beaf0713f409405bdc27590e216f6ed1937

11 years agoMake Event object independent of resource object
Liang Chen [Tue, 13 Aug 2013 07:47:58 +0000 (15:47 +0800)]
Make Event object independent of resource object

The event table is pretty much self contained. So we actually don't
need to referece the corresponding resources to retrieve information.

Fixes bug #1204506

Change-Id: If0b88e0f9e243cf3cc6d747ffa04b9a429ea83a2

11 years agoMerge "Store owner_id on Stack so updates maintain it"
Jenkins [Thu, 15 Aug 2013 18:04:31 +0000 (18:04 +0000)]
Merge "Store owner_id on Stack so updates maintain it"

11 years agoTranslate user-facing exception messages
Ben Nemec [Thu, 15 Aug 2013 17:02:46 +0000 (12:02 -0500)]
Translate user-facing exception messages

Exception messages should be translated because they can be
visible to users.  Also convert these strings to use named
format parameters in case translation reorders them.

Change-Id: Ife6de17890ba153b8124e91edce6e6d540da3cac

11 years agoMerge "Tolerate missing user on signal responder delete"
Jenkins [Thu, 15 Aug 2013 17:08:19 +0000 (17:08 +0000)]
Merge "Tolerate missing user on signal responder delete"

11 years agoUpdated LaunchConfig for AutoScaling UpdatePolicy
Winson Chan [Tue, 13 Aug 2013 07:37:48 +0000 (00:37 -0700)]
Updated LaunchConfig for AutoScaling UpdatePolicy

This is the first part of a series to implement support
for AutoScaling UpdatePolicy.

Updated LaunchConfiguration resource type to return
self.physical_resource_name() in FnGetRefId(). For both
InstanceGroup and AutoScalingGroup, the property
LaunchConfigurationName is added to the list of update allowed
properties. With this change, any property change to the
LaunchConfiguration resource will be result in a different
LaunchConfigurationName on reference resolution and thus will
trigger InstanceGroup and AutoScalingGroup to handle the update.

Change-Id: I94da8f7083b64873c511b953c6bc63dba2b51034
blueprint: as-update-policy

11 years agoCatch "FloatingIpPoolNotFound" in eip.py
Hui HX Xiang [Mon, 5 Aug 2013 05:30:32 +0000 (22:30 -0700)]
Catch "FloatingIpPoolNotFound" in eip.py

This patchset catch the "FloatingIpPoolNotFound" exception in eip
of heat, the floatingippool cannot be configured by heat currently
but it can be assigned by setting 'default_floating_pool' in
nova.conf

Fixes bug #1206865

Change-Id: Idd0fd39f5470904dd351a39f66a57781d9f7c444

11 years agoMerge "Extract failure reason before deleting nova server"
Jenkins [Thu, 15 Aug 2013 04:43:49 +0000 (04:43 +0000)]
Merge "Extract failure reason before deleting nova server"

11 years agoTests for s3 and swift resources were extended
Maksym Iarmak [Wed, 14 Aug 2013 15:20:12 +0000 (18:20 +0300)]
Tests for s3 and swift resources were extended

According to the description of the bug, the problem
is in the mechanism of dependencies. That is an internal
function Ref is not working properly. To repeat it, check
was added to the test templates (s3_test, swift_test). Thus,
the bug has not been reproduced.

Also, the method FnGetRefId in s3 and swift resources,
despite its name, returns the resource name in the format
'stack_name-resource_name-resource_id'. This is achieved
by the method physical_resource_name, that implemented in
superclass resource.Resource.

Bug 1202987

Change-Id: I0f85c39e10e8b455f93fdd768cd5e6ee14497277

11 years agoStore owner_id on Stack so updates maintain it
Christopher Armstrong [Tue, 13 Aug 2013 23:40:12 +0000 (23:40 +0000)]
Store owner_id on Stack so updates maintain it

Instead of passing owner to the store() method of parser.Stack,
it is now maintained as an attribute of the Stack instance,
and store() will use that saved attribute when saving.

This fixes the problem of losing the owner_id on updates to
a stack.

Fixes bug 1212013

Change-Id: I1e3b7832291ca0f5cda24c1995ab782824e48943

11 years agoMerge "Handle heat with SQLAlchemy >= 0.8"
Jenkins [Wed, 14 Aug 2013 12:07:01 +0000 (12:07 +0000)]
Merge "Handle heat with SQLAlchemy >= 0.8"

11 years agoMerge "Do validation in parameter schema"
Jenkins [Wed, 14 Aug 2013 10:06:50 +0000 (10:06 +0000)]
Merge "Do validation in parameter schema"

11 years agoMerge "Differentiate resource types in test_update_rollback_remove"
Jenkins [Wed, 14 Aug 2013 06:33:19 +0000 (06:33 +0000)]
Merge "Differentiate resource types in test_update_rollback_remove"

11 years agoMerge "Stub ResourceWithProps instead of GenericResource"
Jenkins [Wed, 14 Aug 2013 06:33:17 +0000 (06:33 +0000)]
Merge "Stub ResourceWithProps instead of GenericResource"

11 years agoMerge "Update test requirements"
Jenkins [Wed, 14 Aug 2013 06:33:04 +0000 (06:33 +0000)]
Merge "Update test requirements"

11 years agoMerge "Derive keystone_ec2_uri from auth_uri"
Jenkins [Wed, 14 Aug 2013 06:21:03 +0000 (06:21 +0000)]
Merge "Derive keystone_ec2_uri from auth_uri"

11 years agoMerge "Not to eat Metadata parsing error"
Jenkins [Wed, 14 Aug 2013 03:49:15 +0000 (03:49 +0000)]
Merge "Not to eat Metadata parsing error"

11 years agoMerge "Revert "Add missing _ imports to allow doc generation""
Jenkins [Wed, 14 Aug 2013 03:49:01 +0000 (03:49 +0000)]
Merge "Revert "Add missing _ imports to allow doc generation""

11 years agoMerge "Hot SoftwareConfig model part"
Jenkins [Wed, 14 Aug 2013 03:45:51 +0000 (03:45 +0000)]
Merge "Hot SoftwareConfig model part"

11 years agoMerge "Fixes files with wrong bitmode"
Jenkins [Wed, 14 Aug 2013 03:43:54 +0000 (03:43 +0000)]
Merge "Fixes files with wrong bitmode"

11 years agoMerge "Ensure all REST API error responses are consistent"
Jenkins [Wed, 14 Aug 2013 03:43:44 +0000 (03:43 +0000)]
Merge "Ensure all REST API error responses are consistent"

11 years agoDerive keystone_ec2_uri from auth_uri
Steve Baker [Mon, 12 Aug 2013 21:25:03 +0000 (09:25 +1200)]
Derive keystone_ec2_uri from auth_uri

ec2token auth_uri must be correctly configured for heat to work.
The /ec2tokens path is not an endpoint in its own right, it is
part of the keystone v2.0 API. The keystone_ec2_uri configuration
parameter was only used for ec2 style credentials validation in
the ec2token middleware.  It might have also propagated all the
way into the user_creds table to be stored for each stack were it
not for this chain of failures (removed in this commit):
- X-Auth-EC2_URL header is set in ec2token, but header X-Auth-EC2-Url
  is read by RequestContext
- RequestContext stores the ec2 uri in aws_auth_uri, but UserCreds
  expects aws_auth_url

Change-Id: I9908e17bed33fdc64d058a6d6db7b29f9c8d53d6

11 years agoExtract failure reason before deleting nova server
Steve Baker [Wed, 14 Aug 2013 03:31:01 +0000 (15:31 +1200)]
Extract failure reason before deleting nova server

If a nova server create fails, the server is deleted
leaving no indication of the source of the failure.

This change extracts the failure reason from the nova
server fault attribute and includes that in the raised
error.

Change-Id: I7a4618d9e3fded3cde1c15d5322b52eaf63a68f5

11 years agoUpdate test requirements
Steve Baker [Wed, 14 Aug 2013 03:27:26 +0000 (15:27 +1200)]
Update test requirements

As modified by auto-run of requirements/update.py

Change-Id: I150a56dd7956ea2a3b01c1921dc35e51ccd35afe

11 years agoMerge "Use correct actions for StackResource"
Jenkins [Wed, 14 Aug 2013 02:49:51 +0000 (02:49 +0000)]
Merge "Use correct actions for StackResource"

11 years agoMerge "Validate created/updated stacks in StackResource"
Jenkins [Wed, 14 Aug 2013 02:49:44 +0000 (02:49 +0000)]
Merge "Validate created/updated stacks in StackResource"

11 years agoMerge "Tidy up a few places in test_engine_serivce.py"
Jenkins [Wed, 14 Aug 2013 02:31:20 +0000 (02:31 +0000)]
Merge "Tidy up a few places in test_engine_serivce.py"

11 years agoMerge "Update Oslo to 96d1f887dda Part 1"
Jenkins [Wed, 14 Aug 2013 02:28:30 +0000 (02:28 +0000)]
Merge "Update Oslo to 96d1f887dda Part 1"

11 years agoHandle heat with SQLAlchemy >= 0.8
Zhang Lei (Sneeze) [Wed, 14 Aug 2013 02:07:52 +0000 (10:07 +0800)]
Handle heat with SQLAlchemy >= 0.8

Lots of unit tests failed with the new SQLAlchemy(0.8.2)
which makes build failed, this patch will fix all the related
bug like no MutableType and changed module name in SQLAlchemy(0.8.2)

Fixes bug #1199435

Change-Id: I67d7588db088dd3dd88d44c32e78c6b8a4708bff

11 years agoTolerate missing user on signal responder delete
Steve Baker [Tue, 13 Aug 2013 23:15:38 +0000 (11:15 +1200)]
Tolerate missing user on signal responder delete

SignalResponder delete fails if the created user
has already been deleted.

This change catches the 404 as for the User resource.

Change-Id: I55034469d10f2742296f0415fe26272d3683530d
Closes-bug: #1211633

11 years agoFixes files with wrong bitmode
lawrancejing [Tue, 13 Aug 2013 13:36:19 +0000 (21:36 +0800)]
Fixes files with wrong bitmode

Some modules have bitmode 755. Changed to 644.

Change-Id: I4cb86987f1e2dd8420d511cb403228ba908d056b

11 years agoFix syntax description of HOT get_attr function
Thomas Spatzier [Tue, 13 Aug 2013 13:58:53 +0000 (15:58 +0200)]
Fix syntax description of HOT get_attr function

Fix syntax description of get_attr function in HOT specification.
Colon instead of comma was used in array.

Contributes to blueprint hot-specification

Change-Id: I8007d476093ecd5be41020025b486147a5ac038b

11 years agoDifferentiate resource types in test_update_rollback_remove
Zane Bitter [Tue, 13 Aug 2013 13:18:17 +0000 (15:18 +0200)]
Differentiate resource types in test_update_rollback_remove

Ensure that the operations really are happening on the resource we think.

Change-Id: Ie0c85853378e3f0ef3eab4cd0714af0e94108406

11 years agoStub ResourceWithProps instead of GenericResource
Zane Bitter [Tue, 13 Aug 2013 13:18:17 +0000 (15:18 +0200)]
Stub ResourceWithProps instead of GenericResource

Stubbing methods in a superclass is an all-or-nothing affair: once a stub
in the subclass is unset, the subclass will no longer inherit changes in
the superclass (i.e. if you then stub out the same method in the
superclass, the subclass will be unaffected).

Previously, we always set the stubs in the superclass (for historical
reasons, to avoid making this change). This would lead to tests that want
to differentiate between types (by stubbing in the derived class)
interfering with the operation of other tests. This patch changes to always
setting the stubs in the derived class.

Change-Id: I2c8dbd22826da14611a6a3f55321f0016446580a

11 years agoMerge "Add debug option to run_tests.sh"
Jenkins [Tue, 13 Aug 2013 11:22:56 +0000 (11:22 +0000)]
Merge "Add debug option to run_tests.sh"

11 years agoMerge "Move heat-cfn, heat-boto, heat-watch to new repo"
Jenkins [Tue, 13 Aug 2013 11:22:54 +0000 (11:22 +0000)]
Merge "Move heat-cfn, heat-boto, heat-watch to new repo"

11 years agoMerge "Fix intermittent failure in autoscaling tests"
Jenkins [Tue, 13 Aug 2013 10:30:25 +0000 (10:30 +0000)]
Merge "Fix intermittent failure in autoscaling tests"

11 years agoHot SoftwareConfig model part
JUN JIE NAN [Wed, 7 Aug 2013 06:35:13 +0000 (14:35 +0800)]
Hot SoftwareConfig model part

Provide components model and related methods

Implements blueprint hot-software-config

Change-Id: I251d10f25943513ef346883263a4dd2e0f6fb7a6

11 years agoUpdate Oslo to 96d1f887dda Part 1
Alexander Gordeev [Thu, 1 Aug 2013 13:22:20 +0000 (17:22 +0400)]
Update Oslo to 96d1f887dda Part 1

Oslo version 96d1f887dda21b43ba4376187f31953dee6f5273

This commit just injects fresh portion of code from Oslo
into Heat and fixes all the issues with new code

Partially implements blueprint oslo-db-support

Change-Id: I7e98c12ddf6689efc6ea6a4deab0b1c840297730

11 years agoMove property constraints validation to Schema
Zane Bitter [Tue, 13 Aug 2013 08:48:16 +0000 (10:48 +0200)]
Move property constraints validation to Schema

Change-Id: I6e296dfc2243da7cabd24d65799036fc245f0f7a

11 years agoRemove unneccessary Property constraints from unit tests
Zane Bitter [Tue, 13 Aug 2013 08:48:15 +0000 (10:48 +0200)]
Remove unneccessary Property constraints from unit tests

It doesn't really make a lot of sense to have constraints on the number of
keys in a Map Property, or on the allowed values in a List Property. In
both cases, we can and should define the Schema for each item. Neither is
used anywhere in the code, since the new Schema/Constraints do not allow
it, and SchemaTest.test_all_resource_schemata() tests that all existing
schemata are valid.

Change-Id: I24e11ec59c75ef770bf040ee8151bbe061f4a864

11 years agoAdd constraint checking to Property schema
Zane Bitter [Tue, 13 Aug 2013 08:48:15 +0000 (10:48 +0200)]
Add constraint checking to Property schema

Change-Id: Ibec4068a0497ca6ac1dd25decd27fa87585b18a3

11 years agoTidy up a few places in test_engine_serivce.py
Liang Chen [Tue, 13 Aug 2013 07:36:28 +0000 (15:36 +0800)]
Tidy up a few places in test_engine_serivce.py

Change-Id: I3ce32f5057cd074f55466de3a78d8783ab161943

11 years agoAdding HOT str_replace and get_resource functions
Thomas Spatzier [Mon, 12 Aug 2013 16:10:48 +0000 (18:10 +0200)]
Adding HOT str_replace and get_resource functions

This patch adds support for two functions, get_resource and str_replace to HOT
to enable the definition of new HOT samples. Especially str_replace aims to
simplify the definition of scripts in HOT templates.

Change-Id: Ic14fee36bdc0b9c5d79ade7ece5fa1b5331c864a

11 years agoRevert "Add missing _ imports to allow doc generation"
Luis A. Garcia [Mon, 12 Aug 2013 21:45:46 +0000 (21:45 +0000)]
Revert "Add missing _ imports to allow doc generation"

This change reverts commit 0453785f3f7b2a578b433cb0544394aac9bcfb95 and
fixes a bug where the _() was not being recognized when building the
documentation while preserving the delayed translation of error
messages.

Closes-Bug: #1211507
Related-Bug: #1209413

Change-Id: I5d52941e1f08ec656f7279efb6cdf496d81861da

11 years agoMerge "Introduce new resource_data_delete db api"
Jenkins [Tue, 13 Aug 2013 00:53:16 +0000 (00:53 +0000)]
Merge "Introduce new resource_data_delete db api"

11 years agoMove heat-cfn, heat-boto, heat-watch to new repo
Steve Baker [Mon, 22 Jul 2013 04:01:44 +0000 (16:01 +1200)]
Move heat-cfn, heat-boto, heat-watch to new repo

The new home for these tools is
https://github.com/openstack-dev/heat-cfnclient

These tools are now aimed at heat developers only
and they will not be released or packaged.

Change-Id: I1ea62ef17e81ab53cacb5e4940f0c4e2516ed383

11 years agoMerge "ReST API: Add an API for retrieving resource schemata"
Jenkins [Mon, 12 Aug 2013 23:59:49 +0000 (23:59 +0000)]
Merge "ReST API: Add an API for retrieving resource schemata"

11 years agoAdd debug option to run_tests.sh
guohliu [Mon, 12 Aug 2013 18:33:50 +0000 (02:33 +0800)]
Add debug option to run_tests.sh

Change-Id: Ie21cb8b7a370d5e62c7ac75d37affd62f761765a

11 years agoIntroduce new resource_data_delete db api
Thomas Herve [Mon, 12 Aug 2013 14:51:36 +0000 (16:51 +0200)]
Introduce new resource_data_delete db api

This allows removing data associated during to resources during its
lifecycle.

Change-Id: Id45e7cb9129a8187229c708e0d3f6cb2a591bb39

11 years agoMerge "Fail fast if Resource action methods are missing"
Jenkins [Mon, 12 Aug 2013 15:41:29 +0000 (15:41 +0000)]
Merge "Fail fast if Resource action methods are missing"

11 years agoNot to eat Metadata parsing error
Liang Chen [Mon, 12 Aug 2013 15:21:18 +0000 (23:21 +0800)]
Not to eat Metadata parsing error

Exception raised while resolving metadata is treated as database
exception and eaten.

A few testing errors are revealed after metadata parsing error is
propagated to callers.

Fixes bug #1207193

Change-Id: I3b5cc5fed3896b7fe59533c7d09f0226e5cf5ad9

11 years agoFix intermittent failure in autoscaling tests
Thomas Herve [Mon, 12 Aug 2013 15:04:00 +0000 (17:04 +0200)]
Fix intermittent failure in autoscaling tests

Tests for autoscaling suspend and resume sometimes fail because of an
order issue. The branch changes the mock calls to not rely on order.

Change-Id: I74bcde5c6b486fecbb2c2ed0685ce18c786aa974

11 years agoUse correct actions for StackResource
Zane Bitter [Mon, 12 Aug 2013 14:55:36 +0000 (16:55 +0200)]
Use correct actions for StackResource

To perform actions on a stack, we should use the action constants defined
in the Stack, not in another object (and especially not in a Resource).

Change-Id: I3044f6286fc2690c121a3446f42a6896b3ed3271

11 years agoMerge "Get rid of unused greenlet things in test_resource"
Jenkins [Mon, 12 Aug 2013 12:11:47 +0000 (12:11 +0000)]
Merge "Get rid of unused greenlet things in test_resource"

11 years agoMerge "Resolve LaunchConfig references"
Jenkins [Mon, 12 Aug 2013 11:59:58 +0000 (11:59 +0000)]
Merge "Resolve LaunchConfig references"

11 years agoMerge "Initial input for HOT template guide and spec"
Jenkins [Mon, 12 Aug 2013 11:02:36 +0000 (11:02 +0000)]
Merge "Initial input for HOT template guide and spec"

11 years agoMerge "Don't raise ResourceFailure directly in Instance"
Jenkins [Mon, 12 Aug 2013 11:02:29 +0000 (11:02 +0000)]
Merge "Don't raise ResourceFailure directly in Instance"

11 years agoMerge "Enable multi-cloud standalone mode"
Jenkins [Mon, 12 Aug 2013 11:02:22 +0000 (11:02 +0000)]
Merge "Enable multi-cloud standalone mode"

11 years agoResolve LaunchConfig references
Angus Salkeld [Mon, 12 Aug 2013 10:50:52 +0000 (20:50 +1000)]
Resolve LaunchConfig references

Autoscaling was not working if there were references in the launchconfig.

bug 1211125
Change-Id: Ie3be79d579e87a8026690cbe40c9056591c00e31

11 years agoGet rid of unused greenlet things in test_resource
Alexander Gordeev [Fri, 9 Aug 2013 13:25:58 +0000 (17:25 +0400)]
Get rid of unused greenlet things in test_resource

Removing useless test cases containing greenlet.GreenletExit
for the sake of 56d5fb9f83b647d27a00d56cb4dad8aad9e1169f

Change-Id: I6a1463c8467ee1750a66b00758428bc74f9371eb

11 years agoFail fast if Resource action methods are missing
Zane Bitter [Mon, 12 Aug 2013 09:12:33 +0000 (11:12 +0200)]
Fail fast if Resource action methods are missing

If a resource is not actually a Resource with create(), delete() &c.
methods then something has gone horribly, horribly wrong. This is not a
priority for handling gracefully at runtime.

Change-Id: Iafce8e4a222677fc590bb579654e195dc4252a9e

11 years agoDon't raise ResourceFailure directly in Instance
Zane Bitter [Mon, 12 Aug 2013 08:50:57 +0000 (10:50 +0200)]
Don't raise ResourceFailure directly in Instance

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

11 years agoReST API: Add an API for retrieving resource schemata
Zane Bitter [Mon, 12 Aug 2013 07:51:39 +0000 (09:51 +0200)]
ReST API: Add an API for retrieving resource schemata

blueprint resource-properties-schema

Change-Id: I07523a5996eea37a414310c21414be6454d08bfe

11 years agoRPC: Add an RPC call to get a resource type schema
Zane Bitter [Mon, 12 Aug 2013 07:51:39 +0000 (09:51 +0200)]
RPC: Add an RPC call to get a resource type schema

blueprint resource-properties-schema

Change-Id: Id316393d84b6f1112b80caf14ffb98c937597f40

11 years agoRPC Client: Add missing unit tests
Zane Bitter [Mon, 12 Aug 2013 07:51:39 +0000 (09:51 +0200)]
RPC Client: Add missing unit tests

Change-Id: I6b54a6a2191d094f539045567260e84b962b961b

11 years agoMerge "Port policy from oslo and refactor heat policy"
Jenkins [Mon, 12 Aug 2013 06:09:51 +0000 (06:09 +0000)]
Merge "Port policy from oslo and refactor heat policy"

11 years agoPort policy from oslo and refactor heat policy
guohliu [Wed, 31 Jul 2013 16:28:56 +0000 (00:28 +0800)]
Port policy from oslo and refactor heat policy

This patch is to refactor Heat's usage to allow bringing the
policy code from oslo up to the current version to address
many fixed bugs which affect Heat.

    1. Refactor the heat wrapper policy.
    2. Add netaddr in requirement.txt.
    3. Add necessary unit test to cover the refactor part code.

Oslo commit: 3626b6db91ce1e897d1993fb4e13ac4237d04b7f
Fixes bug #1192551

Change-Id: Ia71d14b2cfde9110216ba38a515fee16d0f0c35e

11 years agoEnable multi-cloud standalone mode
Ben Nemec [Sun, 11 Aug 2013 23:15:17 +0000 (18:15 -0500)]
Enable multi-cloud standalone mode

Adds a multi_cloud configuration parameter for auth_password that
tells a standalone Heat installation to look for its auth_url in
the request headers instead of the configuration file.  Also adds
an allowed_auth_uris configuration option to specify which
auth_urls are allowed as targets.

bp heat-multicloud

Change-Id: Ic0929586ac3b57c7f9f3335e0dbd5e14e6b56067

11 years agoMerge "Fix problem creating ResourceFailure"
Jenkins [Mon, 12 Aug 2013 02:39:47 +0000 (02:39 +0000)]
Merge "Fix problem creating ResourceFailure"

11 years agoMerge "Tidy up RPC API definitions"
Jenkins [Sun, 11 Aug 2013 07:10:13 +0000 (07:10 +0000)]
Merge "Tidy up RPC API definitions"

11 years agoMerge "Define a Schema format for properties"
Jenkins [Sun, 11 Aug 2013 07:10:06 +0000 (07:10 +0000)]
Merge "Define a Schema format for properties"

11 years agoFix problem creating ResourceFailure
Ben Nemec [Sat, 10 Aug 2013 01:12:23 +0000 (20:12 -0500)]
Fix problem creating ResourceFailure

The ResourceFailure exception is being instantiated improperly in
a couple of places.  This changes fixes the problem and adds tests
to cover the problem cases.

Change-Id: I2662a3abde1fd00d275e2190401c20166256cae0
Closes-Bug: 1210681

11 years agoDo validation in parameter schema
JUN JIE NAN [Sun, 11 Aug 2013 03:24:38 +0000 (11:24 +0800)]
Do validation in parameter schema

Provide validate method in parameter schema and call it in each
parameter object.

Implements blueprint hot-parameters

Change-Id: Ia85c5fe9eb777bc1e5f76f9ddb08a6ec96100c38

11 years agoValidate created/updated stacks in StackResource
Christopher Armstrong [Thu, 8 Aug 2013 23:00:29 +0000 (23:00 +0000)]
Validate created/updated stacks in StackResource

StackResource.create_with_template and update_with_template now validate
the resulting stacks.

Change-Id: I52a81edb2af6bee70146f6dbd2179900e580d69b

11 years agoMerge "Tolerance for modified ceilometer alarm notification"
Jenkins [Fri, 9 Aug 2013 20:34:04 +0000 (20:34 +0000)]
Merge "Tolerance for modified ceilometer alarm notification"

11 years agoTidy up RPC API definitions
Zane Bitter [Fri, 9 Aug 2013 18:19:50 +0000 (20:19 +0200)]
Tidy up RPC API definitions

Ensure that the layouts of names and values match.

Change-Id: I8cea3dc7ea1fd2a1b722ddd7058564d5195b738b

11 years agoDefine a Schema format for properties
Zane Bitter [Fri, 9 Aug 2013 18:19:50 +0000 (20:19 +0200)]
Define a Schema format for properties

Define a Schema class for properties and their constraints that is easily
serialisable to a JSON schema format that matches the proposed Parameter
input syntax for HOT. Since resource properties have not been exposed to
the user before, this format will make the most sense to a user in the long
term.

A future patch will switch the Property validation code over to using
Schema objects instead of the dictionary-based schemata currently in use.

blueprint resource-properties-schema

Change-Id: I79fa5927bdffeaf103a1c2ba58b709b4ba72b551

11 years agoRemove meaningless property set in models.HeatBase
Liang Chen [Fri, 9 Aug 2013 15:52:36 +0000 (23:52 +0800)]
Remove meaningless property set in models.HeatBase

Seems this was originally ported from Glance.

Change-Id: I8124e9495a5c7585052e149481db44d1e180ac7d

11 years agoTolerance for modified ceilometer alarm notification
Eoghan Glynn [Fri, 9 Aug 2013 09:42:53 +0000 (09:42 +0000)]
Tolerance for modified ceilometer alarm notification

Changes to the ceilometer alarm notification payload are
proposed here:

  https://review.openstack.org/40955
  https://review.openstack.org/41056

i.e. field names in the JSON payload are changed with:

  s/state/current/
  s/alarm/alarm_id/

Tolerance is added to the autoscaling logic for the new
field names.

Change-Id: I19f36d9331b6f28a3195fb5012ea0b9ee274ade3

11 years agoMerge "Use openstack rpc functions to generate _Remote exceptions"
Jenkins [Fri, 9 Aug 2013 10:24:07 +0000 (10:24 +0000)]
Merge "Use openstack rpc functions to generate _Remote exceptions"

11 years agoMerge "HOT parameter validator part"
Jenkins [Fri, 9 Aug 2013 10:10:18 +0000 (10:10 +0000)]
Merge "HOT parameter validator part"

11 years agoInitial input for HOT template guide and spec
Thomas Spatzier [Thu, 8 Aug 2013 16:59:11 +0000 (18:59 +0200)]
Initial input for HOT template guide and spec

This patch adds initial input for the HOT template guide and the HOT
specification.
Note that content so far is based on features implemented so far and
not forward-looking in any way. Whenever new features get implemented,
the guide and spec will be extended appropriately.

Contributes to blueprint hot-specification

Change-Id: I63d29ab0a1db6703b39f981161063d4fd9f97126

11 years agoMerge "Implement neutron pool resource"
Jenkins [Fri, 9 Aug 2013 03:58:27 +0000 (03:58 +0000)]
Merge "Implement neutron pool resource"

11 years agoMerge "Implement neutron health monitor resource"
Jenkins [Fri, 9 Aug 2013 03:58:20 +0000 (03:58 +0000)]
Merge "Implement neutron health monitor resource"

11 years agoMerge "db: Remove deprecated assert_unicode attribute"
Jenkins [Fri, 9 Aug 2013 03:02:37 +0000 (03:02 +0000)]
Merge "db: Remove deprecated assert_unicode attribute"

11 years agoMerge "Add unittests for faultwrap middleware"
Jenkins [Fri, 9 Aug 2013 03:02:30 +0000 (03:02 +0000)]
Merge "Add unittests for faultwrap middleware"